Re: [PHP] problem with front page files downloaded to dev machine OT

2004-08-26 Thread John Nichel
John Holmes wrote: Curt Zirzow wrote: Top posting is like this. How about middle posting? Please don't top post. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Oficial Certification

2004-08-26 Thread John Nichel
John Holmes wrote: Yann Larrivee wrote: If you wanna show if you can programme well, sun would do the job. I burn easily. HTF is a Sun certification going to help you get a PHP job? Like Curt said, take the practice test and then decide. Know what helps me get php jobs? A resume that details

Re: [PHP] Include if file exists?

2004-08-27 Thread John Nichel
Jay wrote: Hi! Is there a ready to use PHP function for including ONLY if the file exists? I tried it like this: [main.php] include_once("lib.php"); later includeIf("somefile.php"); [lib.php] function includeIf($filename) { if (!file_exists($filename)) { include_once($filename);

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread John Holmes
From: "Dan Joseph" <[EMAIL PROTECTED]> I just saw that: http://www.phparch.com/cert/ Hmm... there are no practice exams posted... See here: http://www.phparch.com/discuss/index.php/t/710/235/ ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread John Nichel
Dan Joseph wrote: Hi, Know what helps me get php jobs? A resume that details almost 6 years of php programming. That's what most employers want. Certifications are a lot of times looked at as watered down, and over-issued. A lot of companies also use them as training pieces with their

Re: [PHP] PHP Oficial Certification

2004-08-27 Thread John Nichel
John Holmes wrote: From: "Dan Joseph" <[EMAIL PROTECTED]> I just saw that: http://www.phparch.com/cert/ Hmm... there are no practice exams posted... See here: http://www.phparch.com/discuss/index.php/t/710/235/ ---John Holmes... Cool...I was wondering why we haven't s

Re: [PHP] PHP Oficial Certification OT

2004-08-27 Thread John Holmes
From: "Jay Blanchard" <[EMAIL PROTECTED]> Probably Holmes. Not officially. Might look into it, though, but this is really just a hobby for me. :) I think that if you've been on the list for over a year, you should be certified automatically. heh... ---John Holmes... -

Re: [PHP] PHP Oficial Certification OT

2004-08-27 Thread John Nichel
Jay Blanchard wrote: [snip] ...certification stuff... [/snip] I am certified. So they tell me. And Nichel too. Probably Holmes. Defiinitely Wong, maybe wight. I don't think *THAT* 'cert' will help us in the job market. ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General

Re: [PHP] PHP Oficial Certification OT

2004-08-27 Thread John Nichel
John Holmes wrote: From: "Jay Blanchard" <[EMAIL PROTECTED]> Probably Holmes. Not officially. Might look into it, though, but this is really just a hobby for me. :) I think that if you've been on the list for over a year, you should be certified automatically. heh... ---

Re: [PHP] Newbie Question: DHTML client Http Post to PHP running under Apache/Win XP

2004-08-27 Thread John Holmes
your PHP script needs watering around line 45. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread John Nichel
Chris Shiflett wrote: --- John Nichel <[EMAIL PROTECTED]> wrote: I'm not big on certs myself. How many MCSE's have we seen who can't find the power switch? ;) This was a big concern for me when working with Zend on their certification. Especially in the open source commun

Re: [PHP] Why won't my echo won't work? [newbie question]

2004-08-28 Thread John Nichel
[EMAIL PROTECTED] wrote: The first two of these 3 echo statements work. But my last echo doesn't. 'username' is the name of the element I want to echo. To the right of each is what I see echoed. echo $_SERVER['REQUEST_METHOD']; echos -> POST echo $_POST; echos -> Array echo $

Re: [PHP] Why won't my echo won't work? [newbie question]

2004-08-28 Thread John Nichel
[EMAIL PROTECTED] wrote: John, Thanks for the reply. It is done in software called ToolBook, runs in windows. The toolbook translates to dhtml and then is executed froma browser. The command in toolbook for the data is: Set HTTP POST parameter username to "ahttptest" I don't e

Re: [PHP] PHP Oficial Certification

2004-08-28 Thread John Nichel
Chris Shiflett wrote: --- John Nichel <[EMAIL PROTECTED]> wrote: I understand where you're coming from, and I'm sure with your involvement in the project it will be top notch. I've always been impressed with your work, and am eagerly awaiting your O'Reilly book. ;)

Re: [PHP] Fatal error: Call to undefined function

2004-08-28 Thread John Nichel
gc wrote: It's been awhile since I've done php on Windows, but I think you have to uncomment the mysql dll in the php.ini file (make sure you're editing the right one as per phpinfo), and restart your web server. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing

Re: [PHP] strcasecmp()

2004-08-29 Thread John Holmes
Anthony Ritter wrote: if(strcasecmp($first_name,$second_name)) { echo "words are equal"; } else { echo "words are not equal."; } ?> if(strcasecmp($first_name,$second_name)===0) { echo 'words are equal'; } else { echo 'words are not equal'; } -- ---Joh

Re: [PHP] print a element of a column

2004-08-29 Thread John Nichel
devil_online wrote: Hi, I want to print each element of a column of a mysql database. For exemple to print the first element could we do like this: Code: $result = mysql_query( "SELECT username FROM users" ); $column = mysql_fetch_array($result); print $column[1]; prin

Re: [PHP] Why won't my echo won't work? [newbie question]

2004-08-29 Thread John Nichel
FrzzMan wrote: John Nichel wrote: [EMAIL PROTECTED] wrote: The first two of these 3 echo statements work. But my last echo doesn't. 'username' is the name of the element I want to echo. To the right of each is what I see echoed. echo $_SERVER['REQUEST_METHOD'];

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: Since posting the original copy of this message -- which, in 10 hours, never appeared on this newsgroup -- I upgraded from PHP version 4.3.4 to 5.0.1. Unfortunately, the same exact problem persists. I'm starting to believe this is a bug in PHP's MySQL memory management functions.

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: I can accept that as a workaround, but I was hoping to do more than merely mute the warnings. Is there a way to truly use the connection and result set handles? Can PHP truly utilize it's own connection resource handles in code? Bottom Line: This is going to make a real mess whe

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
h e & with o [foo] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Hire a developer

2004-08-29 Thread John Nichel
John Holmes wrote: I am interested. Can you please contact me at *&hn[foo]h&l!$s(_2_)littler$dpsar%[foo]c&! replacing: $ with e & with o [foo] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ;) There's got to be a regular expression in there somewhe

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
John Nichel wrote: John Holmes wrote: I am interested. Can you please contact me at *&hn[foo]h&l!$s(_2_)littler$dpsar%[foo]c&! replacing: $ with e & with o [foo] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ;) There's got to be a regular expressi

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: If you read the code I posted, you'd see that I am sending valid resources. :) As I explained, I lifted the technique directly from the PHP documentation. Now, if you can see a bug in my implementation of this technique, by all means, please point it out. "Please limit replies t

Re: [PHP] Hire a developer

2004-08-29 Thread John Holmes
Jim Grill wrote: Incase anyone was wanting to hire John, I've cracked the code. Phear me, I great H4x0r. $rplc = array ( '$' => 'e', '&' => 'o', '[foo]' => '.', '(_2_)' => '@'

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Holmes
problem, then maybe it's a bug. I have 5.0.0 installed and will install 5.0.1 just for you if you can give me the smallest amount of code that reproduces this problem to help you test. Otherwise, use @ and turn a blind eye... ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registr

[PHP] Binary refresher needed

2004-08-29 Thread John Holmes
value & TEST2) == TEST2) { echo 'TEST2 flag was set.'; } I know that works, but is that the best way? Been a while since I played with this... :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.ph

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: Why waste time by turning this into an attack? (A rhetorical question, please don't bother addressing it.) I'm pressing for a better answer now because the workaround you posted simply ignores the problem and because you implied that you got these functions to work -- presumably w

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
John Holmes wrote: Programming languages do not make things up. If you say mysql_close($anyvariable) and PHP says that $anyvariable is not a MySQL connection resource, then it's not. No, it's not. Shh. It's not. If you can reduce what you're seeing to the smallest amount o

Re: [PHP] Hire a developer

2004-08-29 Thread John Coggeshall
0x19)?chr(${0x32}):${ chr(0xD)}[${0x32}];++${0x0};}echo "{${""}}\n"?> :-D John On Sun, 2004-08-29 at 18:57, John Holmes wrote: > Jim Grill wrote: > > > Incase anyone was wanting to hire John, I've cracked the code. Phear me, I > > great H4x0r.

Re: [PHP] Hire a developer

2004-08-29 Thread John Nichel
John Coggeshall wrote: 0x19)?chr(${0x32}):${ chr(0xD)}[${0x32}];++${0x0};}echo "{${""}}\n"?> :-D John Congrats dad!! :) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mysql_close() and mysql_free_result() don't seem to work in PHP 4.3.4 or 5.0.1. A bug?

2004-08-29 Thread John Nichel
William wrote: Please keep your responses professional; this newsgroup/list is the first contact for people needing help with PHP -- even if it's their own fault. Your enflamed, emotionally charged reactions help no one and seem only to serve your own ego. This matter is closed. Good day. When

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Nichel
Francisco Javier Escoppinichi Fernández wrote: Hello people... I have a little problem here... I hope you can help me... I'm building a simple template system for a web site, and I created some "tags" in a .html file that I read using the file_get_contents() function. The "tags" I created are somet

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Holmes
ring back to you... $this->html = str_replace(...); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Nichel
Francisco Javier Escoppinichi Fernández wrote: function Show() // This function outputs the final HTML. It's called by another module. { str_replace("{contenido}", $this->buffer, $this->html); str_replace("{tituloSeccion}", $this->titulo, $this->html

Re: [PHP] Problem with str_replace

2004-08-29 Thread John Nichel
John Holmes wrote: Francisco Javier Escoppinichi Fernández wrote: str_replace("{contenido}", $this->buffer, $this->html); str_replace("{tituloSeccion}", $this->titulo, $this->html); You have to capture the results of str_replace()... it returns t

[PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-29 Thread John Holmes
read(): supplied argument is not a valid stream resource in c:\program files\apache group\Apache\htdocs\zorin\streamtest.php on line 31 bool(true) string(13) " Test String " Warning: feof(): supplied argument is not a valid stream resource in c:\program files\apache group\Apach

[PHP] Bug with mktime??

2004-08-30 Thread John Clegg
2005 6 : 03 : 2005 7 : 03 : 2005 8 : 05 : 2005 9 : 05 : 2005 10 : 07 : 2005 11 : 07 : 2005 This output has a problem. Does anyone have any suggestions on what other functions I could use other than mktime to build dates ??? Cheers John Clegg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Time consumed in microseconds

2004-08-30 Thread John Holmes
otime(TRUE); to get the float value. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] [Newbie Guide] For the benefit of new members

2004-08-30 Thread John Nichel
Jason Wong wrote: On Tuesday 31 August 2004 07:06, Brent Clements wrote: Damn, I just felt the wrath of the list even though I completely agree with you guys, I was just pointing out some employers requirements. Wrath? What wrath? You ain't seen nuthin yet. Hell hath no fury like Jason scorned. ;

Re: [PHP] Problems with writing a stream wrapper to regular fopen/close functions...

2004-08-31 Thread John Holmes
ot;this method should return TRUE or FALSE" would come back to bite me on the ass... Thanks for the tip, it works now, of course. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help with Strings Please

2004-08-31 Thread John Holmes
From: "Marek Kilimajer" <[EMAIL PROTECTED]> $handle = fopen("page.php", "r"); while (!feof($handle)) { $buffer .= fgets($handle, 4096); } fclose($handle); file_get_contents() could be helpful here, too... ---John Holmes... -- PHP General M

Re: [PHP] Authors and Instructors Needed

2004-08-31 Thread John Holmes
at: *&hn[foo]h&l!$s(_2_)littler$dpsar%[foo]c&! replacing: $ with e & with o [foo] with . (_2_) with @ ps with sp little with big % with k ! with m * with j ---John Holmes... - Original Message - From: "Keystone Learning Systems" <[EMAIL PROTECTED]> To:

Re: [PHP] Re: $_SERVER['HTTP_HOST'] without the 'www.'

2004-08-31 Thread John Nichel
Torsten Roehr wrote: Does your Apache provide $_SERVER['SERVER_NAME']? For me it outputs the domain like "google.com". Regards, Torsten Roehr Server name from Apache is not guaranteed to be sans 'www'. Server name will return whatever the web server is configured a

[PHP] Re: Please, Refresh Your Paypal Account

2004-08-31 Thread John Swartzentruber
On 8/31/2004 7:09 PM Jasper Howard wrote: is this a joke?... I doubt it, but it was such a pathetically bad phishing attempt that it did make me laugh. You'd think they could at least update their copyright date. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www

Re: [PHP] stream wrappers

2004-08-31 Thread John Holmes
check for only one download if($this->fp = fopen($path,$mode)) { return TRUE; } else { return FALSE; } } stream_read($bytes) { return fread($this->fp,$bytes); } stream_eof() { return feof($this->fp); } stream_close() { return fclose($this->fp); } } -- ---John

Re: [PHP] Cannot load modules

2004-08-31 Thread John Holmes
bled. Check the documentation. The mysql extension requires libmysql.dll to be in the correct place, for example. RTD. -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals – www.phparch.com -- PHP General Mailing List (

Re: [PHP] Parsing large file

2004-09-01 Thread John Holmes
how we could do this? Don't read the entire file into memory, just a line at a time, for example. Use set_time_limit() to ensure you have enough time to complete everything. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing my Window after Download

2004-09-01 Thread John Holmes
If anyone thinks I'm wrong, I'm more than happy to admit it; just show me how. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Closing my Window after Download

2004-09-01 Thread John Holmes
e same thing as I did somewhere in this thread. Maybe I just explained it better or something. Either way... glad you're all straightened out or whatever. I really can't believe the thread went on as long as it did ;) ---John Holmes... -- PHP General Mailing List (http://www.

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
nect to the HTTP site. you're sure the site is up, right? PHP is running as the web server, does that have access to the http:// site you're requesting? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] mail functions help

2004-09-01 Thread John Holmes
you're running. I haven't been following this thread, but setting the SMTP server in php.ini to your ISPs SMTP server did not work for you? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
ude. So is there any reason you're not using the above method? You realize that by including it through HTTP, you're only getting the _result_ of the PHP file? If you're PHP file does not produce any output, maybe that's the source of this problem... ---John Holmes... -- PH

Re: [PHP] Re: Mail Functions help

2004-09-01 Thread John Holmes
r webserver after the php.ini change, of course. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] problem with using include to a URL

2004-09-01 Thread John Holmes
#x27;http://www.google.com'), does that work? Is there any kind of weird redirection in the page you're requesting? (obviously not if it's really just that sample code, though.) If all else fails, search Google for your error message and see what pops up. ---John Holmes...

Re: [PHP] usmap won't do it, ismap won't do it. What can I do?

2004-09-01 Thread John Holmes
d $_REQUEST['myimage_y'] as the coordinates that the user clicked. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MSSQL, PHP and Linux

2004-09-01 Thread John Holmes
yet I still get the errors "called to undefined function mssql_pconnect()"...what can I try next? Are you using the dbx functions and not mssql_connect/pconnect()?? http://www.php.net/manual/en/ref.dbx.php ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe,

Re: [PHP] stream wrappers

2004-09-01 Thread John Holmes
- Original Message - From: "jarell" <[EMAIL PROTECTED]> To: "John Holmes" <[EMAIL PROTECTED]> Sent: Wednesday, September 01, 2004 2:05 PM Subject: Re: [PHP] stream wrappers Does the stream_open function in your example actually check if the file has

Re: [PHP] register global off

2004-09-01 Thread John Holmes
not the Master Value column. If that still shown ON, also, then ensure your host allows you to use an .htaccess file to change this configuration directive. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: xml tags interfere with php tags

2004-09-01 Thread John Holmes
at). or echo ''; or '?> ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: register global off

2004-09-01 Thread John Holmes
From: "Afan Pasalic" <[EMAIL PROTECTED]> After submitting $HTTP_POST_VARS['SubmitForm'] has value 'Submit' and $POST['SubmitForm'] is empty. Because it's $_POST and not $POST? If that's just at typo, check your code for typos, too. Did you

Re: [PHP] usmap won't do it, ismap won't do it. What can I do?

2004-09-01 Thread John Holmes
ou're hiding the URL from users with it? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] stream wrappers

2004-09-01 Thread John Holmes
stream here or what you're hoping to accomplish. you're incrementing the download count, but not really checking it for any limit. It wouldn't really make sense to put the checks in the stream. Check them outside of it and either show an error message in HTML or send the f

Re: [PHP] Re: register global off

2004-09-01 Thread John Nichel
esn't work: name After submitting $HTTP_POST_VARS['SubmitForm'] has value 'Submit' and $POST['SubmitForm'] is empty. It's $_POST You're missing the underscore. -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing

Re: [PHP] print at a specific time

2004-09-01 Thread John Holmes
devil_online wrote: Hi, I want to print or echo something in a specific time like 9.pm. how can i do it? if(date('H')==21) { echo "'tis 9pm and all is well?"; } -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magaz

Re: [PHP] print at a specific time

2004-09-01 Thread John Holmes
Brent Clements wrote: $minute = 01; Be careful with the leading zeros... that's interpreted as an Octal number by PHP, but Octal 1 == Decimal 1 in this case. :) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professi

Re: [PHP] new line function

2004-09-01 Thread John Holmes
Tonny Robertus wrote: is there any function to replace \n to that we can see the results in html source code (not in preview)? $fixed = preg_replace("/(\r?\n)|\r/",'',$oldstring); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect:

Re: [PHP] new line function

2004-09-01 Thread John Holmes
seems OS's can simply be described on how they treat EOL, all the rest of the differences are side effects of this behaviour. Yeah, of course... Think of how secure windows would be if they just used \n! ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|a

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
(),]|(?:%[a-fA-F\d]{2}))|[&=~:@/])+)))?)) )?)|(?:nfs:(?:(?://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA- Z\d])?)\.)*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?))|(?:(?:\d+)(?: \.(?:\d+)){3}))(?::(?:\d+))?)(?:(?:/(?:(?:(?:(?:(?:[a-zA-Z\d\$\-_.!~*' (),])|(?:%[a-fA-F\d]{2})|[:@&=+

Re: [PHP] Assign null value using php

2004-09-02 Thread John Nichel
T UmaShankari wrote: Hello, Can any one tell me how to assign a null value to a php string?. I tried assigning empty single quote,backslash with zero,double quotes also. but nothing works.. Regards, Uma Use the manual, Luke. http://us4.php.net/manual/en/language.types.null.php -- By-Tor.com It'

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Nichel
John Holmes wrote: From: "Nick Wilson" <[EMAIL PROTECTED]> Does anyone have the regex to make sure an http address is full and without error? like http://www.example.com (?:http://(?:(?:(?:(?:(?:[a-zA-Z\d](?:(?:[a-zA-Z\d]|-)*[a-zA-Z\d])?)\. )*(?:[a-zA-Z](?:(?:[a-zA-Z\d]|-)*[a-zA-Z

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
)|(?:(?:\d+)(?:\.(?:\d+) [snip] Did you just pulled it out of your ***[1] or did you copy-n-paste it from somewhere? Some "best of the internet" site... I had to pull it from the Google cache since work wouldn't let me get to the site. I don't even know if it really works or not

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
stions. That's for me to know and for you to pry out of me over the course of 20 emails only to determine that "wait, you have to install PHP?"... Got it? Seriously, I hope you were being sarcastic or something, Nick. Otherwise the smart people on the list know how to use filters

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Nichel
Nick Wilson wrote: * and then Jason Wong declared It would be nice when asking a question to summarise what research you have done. Instead of just saying I've looked and found nothing (or words to that effect). bugger off jason, if you dont understand the question dont bore me with your sil

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Nichel
Jason Wong wrote: On Thursday 02 September 2004 21:08, John Nichel wrote: What about NFS mounts? ;) What about them? Look carefully. I don't know if I have that much time. :) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.ph

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Nichel
Jay Blanchard wrote: Easy gentlemen...easy Who you callin' a gentleman?!?! -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session understanding

2004-09-02 Thread John Holmes
need to know if a new window is opened or not? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] trying to do too much with functions?

2004-09-02 Thread John Holmes
ked at the "Function Handling Functions"? http://www.php.net/manual/en/ref.funchand.php An array is probably your best bet, though, since you want to have mixed orders. The only way you'd be able to identify what parameter is which is by using the keys of the array, then. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session understanding

2004-09-02 Thread John Holmes
erent windows apart. The user could have 100 windows open and you can't really tell. All you do is recieve POST or GET requests and handle them accordingly. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Nichel
hat a joke! How does a beginner know that a stupid question will get them flamed? They are beginners afterall. There are many other places to go and get good answers without the bull shit that you get here. Hmmm...since the grass is greener in those many other places, why do they (you) come here?

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
delines (not rules, because in the end, there are none). I don't know what camp most of you consider me in and it doesn't really matter. I try to help everyone I can. Sometimes I give well thought out answers, sometimes I'm in a bad mood and will give a RTFM type answer and

Re: [PHP] Statistics

2004-09-02 Thread John Holmes
From: "Daniel Schierbeck" <[EMAIL PROTECTED]> Is there a simpler way of approaching this? Use an already written program that parses your web logs and already gives you this information? ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Holmes
From: "Jason Wong" <[EMAIL PROTECTED]> I usually reserve my more elegant prose for my sweetheart. Please stop call me that... it creeps me out. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] List Slow?

2004-09-02 Thread John Nichel
Is the list about two hours behind in delivering email today for everyone, or is it just me? Of course, if it is just me, I'll have to wait two hours to find out. ;) -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Nichel
John Holmes wrote: I don't know what camp most of you consider me in and it doesn't really matter. Summer's over. School's back in. What are you still doing at camp? ;) -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www

Re: [PHP] Regex for Validating URL

2004-09-02 Thread John Nichel
Nick Wilson wrote: So chill the fuck out and be nice okay` I'll do you one better, and just filter you outhow's that? And when you say something like this to one of the most respected (not to mention one of the nicest) members of this list, I'm sure I won't be the only one. Welcome to /dev

Re: [PHP] List Slow?

2004-09-03 Thread John Nichel
raditha dissanayake wrote: John Nichel wrote: Is the list about two hours behind in delivering email today for everyone, or is it just me? Of course, if it is just me, I'll have to wait two hours to find out. ;) The servers are probably clogged wiht mysql questions and flames at peopl

Re: [PHP] Is a PECL a black whole?

2004-09-03 Thread John Coggeshall
l that is not in the php core. Not true. In the future there are hopes of moving all PHP extensions to PECL and simply bundling the latest stable release of a extension from PECL as part of the main PHP distribution. For instance, Tidy is a part of the standard PHP 5.0 distribution although it

Re: [PHP] I need to execute PHP scripts from Apache/mod_php using the owner of scripts as user/group for execution.

2004-09-03 Thread John Nichel
with user/group from Apache. Urgent help needed. Thanks. Qkidamon. http://www.google.com/search?hl=en&ie=UTF-8&q=suexec&btnG=Google+Search -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] how can I get the fileversion?

2004-09-03 Thread John Nichel
On this page, there is a Spanish PHP Mailing list which may be of more help to you. Good luck! http://us4.php.net/mailing-lists.php -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP Linux "locate" to html script?

2004-09-03 Thread John Nichel
BOOT wrote: Does anyone have a script that can be used to call linux's locate command and display the results in a browser? I don't think it would be that hard and will make an effort today... Thanks! http://us4.php.net/manual/en/function.exec.php -- John C. Nichel ÜberGeek Ke

Re: [PHP] PHP Linux "locate" to html script?

2004-09-03 Thread John Nichel
result (a href...) and add some breaks: $items = passthru('locate whatever'); echo ""; echo $items; echo ""; ?> $output = array(); exec ( "locate whatever" $output ); And loop thru the $output array. It's all in the manual.... http://us4.php.

Re: [PHP] PHP Linux "locate" to html script?

2004-09-03 Thread John Nichel
John Nichel wrote: $output = array(); exec ( "locate whatever" $output ); And loop thru the $output array. It's all in the manual http://us4.php.net/manual/en/function.exec.php Oops, I forgot the comma... exec ( "locate whatever", $output ); -- By-Tor.com It's al

Re: [PHP] ERROR IN THIS CODE

2004-09-05 Thread John Nichel
Jorge wrote: I resolve the problem. And the solution was? -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: I do know this and what happen is that the $_SESSION array become empty once I redirect from the login page (after login) to another members' area page .. !! Are you starting the session on every page? How are you sending the session id? -- By-Tor.com It's all about the Rush http://ww

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: if((empty($_POST['user_name'])) || (empty($_POST['password']))) { header('Location: index.php'); include("login_form"); exit(); } That include is useless, as you're forwarding to another document right before it. else{ include("db.php"); $sql = "SELECT * FROM me

Re: [PHP] Session variables does not get sent

2004-09-05 Thread John Nichel
Dre wrote: yes I'm sure Won't hurt to echo it out. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP5 - How Do I Let Users Download Music Files?

2004-09-06 Thread John Nichel
Daniel Schierbeck wrote: Hey Daniel, do me a favor if you would, and add a year to the date on your computer. Thanks. -- By-Tor.com It's all about the Rush http://www.by-tor.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] converting seconds since unix epoc to date array

2004-09-06 Thread John Holmes
dd days to the timestamp. You can also use DATE_FORMAT() to format the timestamp before it's returned also. If you don't want to do that, what's wrong with strtotime('-MM-DD') to get the unix timestamp? -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registr

Re: [PHP] Underscores within echo statements

2004-09-07 Thread John Holmes
From: "Neil Freeman" <[EMAIL PROTECTED]> Just a quick question. What is the purpose of the underscore character within the following echo statement? I had a quick look in the manual and archives but couldn't find any reference to it. http://us2.php.net/manual/en/functio

<    18   19   20   21   22   23   24   25   26   27   >