Re: [PHP] Re: Strange comparison behaviour

2005-05-13 Thread Erwin Kerk
Bogdan Stancescu wrote: You probably mis-typed something: [EMAIL PROTECTED] ~]$ php Content-type: text/html X-Powered-By: PHP/4.3.11 is 0 Tried that, but notice the PHP Version, it is failing in PHP 4.1.2! Erwin Kerk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Strange comparison behaviour

2005-05-13 Thread Erwin Kerk
in the first sample, inf in the second sample. The used PHP version is PHP 4.1.2 (CLI version) Erwin Kerk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] regular expressions

2005-04-14 Thread Erwin Kerk
pete M wrote: The pattern $pattern = 'font\-size:.*?\;'; throwns the error eregi_replace(): REG_BADRPT Well, this should work (tested and all ) $pattern="|font\-size:.*?;|si"; $txt = preg_replace( $pattern, "", $txt ); Erwin -- ---

Re: [PHP] regular expressions

2005-04-14 Thread Erwin Kerk
nt-family:*\;'; $txt = eregi_replace($replace,'',$txt); What I'm trying to do is match the font-size: and replace everything up to the ; with '' ie nothing dont work Feel I'm so close ;-( tia Pete Try this: $pattern = 'font\-size:.*?\;'; Erwin Kerk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Image and PHP

2005-04-14 Thread Erwin Kerk
. somethinglike: Erwin Kerk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Is it Possible?

2005-02-04 Thread Erwin Kerk
guess you're trying to get some data from the server after the page load (problably by javascript), so this might be of help: http://www.scss.com.au/family/andrew/webdesign/xmlhttprequest/ Erwin Kerk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Name of CRON visualiser script

2005-01-19 Thread Erwin Kerk
Hi All, I've seen a script somewhere which accepts a crontab file for input, and then displays all jobs in a calendar-like screen. However, I forgot the name. Searching Google didn't help me either. Does anyone know the name (and if possible, an url) of this script? Thanks in adva

Re: [PHP] question about a cron job

2005-01-17 Thread Erwin Kerk
Al wrote: I've got a question about the following cronjob. #At 3:01 our time, run backups 1 0 * * * /usr/local/bin/php /www/r/rester/htdocs/auto_backup/back_em_up.php >/www/r/rester/htdocs/auto_backup/cron.log 2>&1 #At 3:02 clean up sessions folder 2 0 * * * (find /www/r/rester/htdocs/sessions/

Re: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread Erwin Kerk
M. Sokolewicz wrote: M. Sokolewicz wrote: Lester Caine wrote: John Holmes wrote: > I switched from using the us2.php.net mirror to the us4.php.net mirror and things were fine. That has been 'knobled' now. At least now I know I'm not going mad ;) it's because of an issue with the JS scripts. Ju

Re: [PHP] Question in posting form-data

2004-12-16 Thread Erwin Kerk
Yao, Minghua wrote: Hi, all, I am testing how to post form-data to a host using the following code (test.php): fputs($fp, "POST $path HTTP/1.1\n"); fputs($fp, "Host: $host\n"); fputs($fp, "Content-Type: multipart/form-data\n"); fputs

Re: [PHP] php4 and php5 on the same apache server

2004-09-13 Thread Erwin Kerk
://%{HTTP_HOST}:81$1.php Erwin Kerk Webdeveloper -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] resubmitting $POST data to another script

2004-03-03 Thread Erwin Kerk
Chris Shiflett wrote: It loses all new data: Because of this: $_POST = unserialize(stripslashes($_POST['post'])); I think array_merge will fix this: $_POST = array_merge($_POST,unserialize(stripslashes($_POST['post']))); Erwin Kerk Web Developer -- PHP Genera

Re: [PHP] Apache/IE hangs with PHP

2004-02-26 Thread Erwin Kerk
tiple windows (or frames) and sessions, is that they wait for each other to close (not destrow, close) the session. See http://www.php.net/manual/en/function.session-write-close.php for more information. Godd luck with this one. Erwin Kerk Web Developer -BEGIN PGP SIGNATURE- Version:

Re: [PHP] Weird result from query...?

2004-02-26 Thread Erwin Kerk
t; where oorder='".$o."' and nname='".$n."' and total=$p without the single quotes around $p Erwin Kerk Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Weird result from query...?

2004-02-26 Thread Erwin Kerk
Daniel Clark wrote: &p=4.78 I wonder if a dot is a valid character for a URL adderss? Yup. Just tried it, it works. Erwin Kerk Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP IDE?

2003-12-14 Thread Erwin Kerk
Photos - easier uploading and sharing. http://photos.yahoo.com/ I use HTML-kit all the time. Has a built-in ftp client, lots of plugins available, in-program previews (via local webserver), and much more. http://www.htmlkit.com Erwin Kerk Web Developer -- PHP General Mailing List (http://www.php.net/)

Re: [PHP] PHP and Intranets

2003-12-03 Thread Erwin Kerk
Colin Eldridge wrote: > Question: Is there a simple way for PHP to identify which host a form > has come from? Do the hosts have fixed ip's? If Yes, you could use $_SERVER["REMOTE_ADDR"] do identify them... Erwin Kerk Web Developer E: [EMAIL PROTECTED] W: www.blixem.nl -

Re: [PHP] using a php variable in javascript

2003-09-22 Thread Erwin Kerk
have you tried: so = window.open('',''); ?? Erwin Kerk Web Developer Rich Fox wrote: I have a page with the following code: <!-- so = window.open('','CompanyEdit'); so.location.reload(); window.close(); // --> I have 'CompanyEdit&#x

Re: [PHP] is it possible to have the following URL?

2003-09-22 Thread Erwin Kerk
This should work: https://url_locaion.org/prev_page.php?SID=$SID&uid=$uid&ELEM_ID=$id#tag Erwin Susan Ator wrote: I am passing 3 pieces of information on every URL. For example: https://url_location.org/page.php?SID=$SID&uid=$uid&ELEM_ID=$id I need to be able to return to a previous page usin

Re: [PHP] Apache SetHandler

2003-04-03 Thread Erwin Kerk
similar. check: http://www.php.net/manual/en/features.file-upload.put-method.php Maybe something is similar is possible for POST, and for GET your could use a rewrite rule in the httpd.conf file Erwin Kerk Web Architect -- ____ | __|_ ___ __ _(_)_ _ | _|| '_\ V V / | ' \

Re: [PHP] Re: how to test string to see if it is a date or time?

2003-03-24 Thread Erwin Kerk
Try this (as found on php.net) $str = 'Not Good'; if (($timestamp = strtotime($str)) === -1) { echo "The string ($str) is bogus"; } else { echo "$str == ". date('l dS of F Y h:i:s A',$timestamp); } Erwin Kerk Web Developer @ BliXem.nl Jason Wo