IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1822.57 MB
Powered by
Channel Info
Network: freenodeChannel: #php |
Search in www.irclog.org
Log from #php at freenode 2006-05-11
Pages: < Prev
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
Next >
[07:00]<rjrunjnmy>auto-renewal?
[07:01]<fyvx>that will work
[07:03]<zufn>Has support for php4 more or less ceased?
[07:03]<rjrunjnmy>Zule: I wish, maybe more hosts will go for php 5 -_-
[07:04]<zufn>I still like php4 personally, I'm not updating...
[07:04]<rjrunjnmy>..
[07:04]<fyvx>Zule: what is it about 4 that you prefer over 5?
[07:04]<zufn>Classes for starters :)
[07:04]<rjrunjnmy>..
[07:05]<rjrunjnmy>PHP5s classes are much better structured and more powerful then PHP4
[07:05]<zufn>I know, I just don't like them, that simple :D
[07:05]<rjrunjnmy>Not to mention php5 itself is faster overall
[07:05]<zufn>That and php4 has been around and tested a lot longer than php5. Just in the same way Apache 1 is still used over Apache 2.
[07:05]<fyvx>Zule: really? I like 5 for that. But i agree that if your used to 4 then changing seems like a hill to climb
[07:05]<jddddd>Some how you ppl think PHP has OOP
[07:05]<jddddd>it never has, and never will.
[07:06]<zufn>Jymmmm: ?! Some how you people think?
[07:06]<jddddd>Zule (I was being kind)
[07:06]<fyvx>jymmmmm: www.php.net/oop
[07:06]<zufn>You are very kind.
[07:06]<fyvx>heheh
[07:06]<nrvyvnphp>there's enough OOP to be useful
[07:06]<jddddd>lith snakeoil
[07:06]<zufn>Jymmmm: Are you still using php4?
[07:06]<fyvx>*bewilderment*
[07:07]<fyvx>jymmmm uses php 8
[07:07]<zufn>lol
[07:07]<rjrunjnmy>Jymmmm: Are you a C++ programmer?
[07:07]<djjsnd>how do i stop warning output of a 404 found using getimagesize() in a remote situation?
[07:08]<fyvx>Jymmm doesnt even program, hes just here for the chicks
[07:08]<fyvx>shit, thats why im here :/
[07:08]<djjsnd>coder chicks rawk
[07:08]<nrvyvnphp>moosey; possibly put an @ in there, not sure though
[07:08]<jddddd>!+@
[07:08]<lxl-2jv>[@] The PHP error control operator that suppresses errors (@foo()), see: http://php.net/operators.errorcontrol - Don't use it. Think I'm wrong? Ask me about "GO".
[07:08]<jddddd>NativePHP dont give out poor advice
[07:08]<djjsnd>thanks
[07:09]<jddddd>You resolve errors, not hide them.
[07:09]<djjsnd>yeah but its not an error it shoots a warning
[07:09]<nrvyvnphp>well it would be better to check if the location is valid or not, and if not do something else
[07:09]<jddddd>moosey symantics
[07:09]<djjsnd>i cant have my script output these warnings of my system path just cuz someone submits a bogus image
[07:09]<zufn>Hypothetical question not to be irritating: Is it okay to hide errors so long as you're checking to see if something was/wasn't successful either, or is that still considered bad practice?
[07:09]<fyvx>moosey: if your in error_reporting(E_ALL) / strict either fix it or take your error reporting down. but @ gets confusing for debuging
[07:10]<fyvx>zule: hiding the error doesnt remove it
[07:10]<zufn>Of course it doesn't :)
[07:10]<zufn>But I'm thinking in cases where it's not in your control as such.
[07:10]<djjsnd>how would simply check status on a url call then? i know scan for /200/
[07:10]<jddddd>Zule There are RARE exceptions to usign @, In all the years I've been here, I've only seen one.
[07:10]<djjsnd>but im not aware of a function that does that
[07:11]<nrvyvnphp>hm, does file_exists work with a URL? never tried it
[07:11]<jddddd>NativePHP in the manual
[07:12]<djjsnd>i can't use no fopen_url that i know
[07:13]<rjrunjnmy>moosey: Are you using php5?
[07:13]<djjsnd>no
[07:13]<djjsnd>4.2.2
[07:13]<djjsnd>err 4.4.2?
[07:14]<rjrunjnmy>NativePHP: Then not for him it doesn't.
[07:14]<xracnm`>guys
[07:14]<xracnm`>i just set the external smtp server in my php.ini, but doesnt work
[07:14]<nrvyvnphp>RogueJedi: well double checking, file_exists doesn't work with the HTTP wrapper anyway
[07:14]<nrvyvnphp>can just use curl I suppose
[07:14]<rjrunjnmy>NativePHP: Heh was still looking for that =)
[07:15]<djjsnd>yeah i can use curl i guess, figured since php was scripting languge it would have that hehe
[07:15]<nrvyvnphp>i don't usually do image stuff, but i'm suprised there isn't an is_image type of function somewhere that validates an image exists at a path
[07:16]<djjsnd>i thought getimagesize() would have that but it doesnt
[07:16]<djjsnd>that's what im playing with now
[07:16]<gnzzd>NativePHP, http://jp.php.net/file%20exists
[07:16]<rjrunjnmy>Gerry: We just went over that
[07:16]<gnzzd>sorry
[07:17]<gnzzd>I don't like reading. =D
[07:17]<djjsnd>oh god, that function for url_exists looks insane
[07:17]<nrvyvnphp>and the http wrapper doesn't support stat() either, so file_exists wouldn't do any good for the remote images
[07:19]<nrvyvnphp>there's also the PEAR HTTP packages, may have a better (higher level) API to use for validating a URL
[07:20]<fxyfjvyzus>How do I tell a function to add content to the header?
[07:20]<gnzzd>snoopy
[07:20]<djjsnd>$header .= heh
[07:20]<gnzzd>philovirus, do you mean header();
[07:20]<fxyfjvyzus>wow. color me stupid
[07:20]<fxyfjvyzus>lol
[07:21]<eyzau>ers*
[07:21]<nrvyvnphp>could use HTTP_Header from PEAR ;)
[07:22]<fxyfjvyzus>I'm in the midst of writing a wordpress plugin but I need to have the plugin that you call via function wp_plug() also echo 3 javascripts into the header
[07:22]<fyvx>philovirus: dynamic? or static?
[07:22]<fxyfjvyzus>static.
[07:23]<fxyfjvyzus>Basically due to the way wordpress handles php it reuires an external page to do what I want.
[07:23]<gnzzd>:)
[07:23]<fyvx>philovirus: ah, that sucks...
[07:23]<djjsnd>$response_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);
[07:23]<fxyfjvyzus>http://cdcstudios.com/archive.php is what the plugin does but I'm trying to make it far easier for new users with no real coding experience to be able to use the plugin
[07:24]<djjsnd>that should do the job for me, in case anyone cared
[07:25]<fyvx>_clean_ layout
[07:26]<fxyfjvyzus>lith: yep
[07:29]<fxyfjvyzus>i'm just curious how to make a function write to the header
[07:29]<eyzau>philovirus: i'm not sure what you mean by that
[07:30]<fumygnzm>Thanks for the help :)
[07:30]<fxyfjvyzus>I have a function that is to be added into a php file. That function writes the archives portion of my wordpress/php site. I'd also like to have the function echo some data to the header
[07:31]<2r2j>was i just imagining it or was there a date format that included string like 'today', 'yesterday' ... that kinda thing ...?
[07:31]<zufn>You mean a way to turn 'yesterday' into a day?
[07:31]<zufn>date*







