[PHP] Re: New to PHP, and stuck

2002-11-06 Thread Erwin
. Use $_POST['table_name'] instead of $_POST[table_name]. The same goed also for $_POST[field_name], $_POST[field_type] and $_POST[field_length]. HTH Erwin ? //indicate the database you want to use $db_name =testDB; //connect to database $connection = mysql_connect(localhost,john,doe99) or die

[PHP] Re: Format Date

2002-11-07 Thread Erwin
Dark Rotter wrote: Hi, When i print a date, the format of this date is: 8 nov 2001 0:00 (print ($array[date])) but i need print this: 08/11/2001 how i print this ? try print date( 'd/m/Y', strtotime( $array['date'] ) ); HTH Erwin -- PHP General Mailing List (http://www.php.net

[PHP] Re: Help w/ 4.2.3 Problem

2002-11-08 Thread Erwin
setting. As from php version 4.2.2, this setting defaults to Off, while older versions defaults to On. Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Cookie error after 4.2.3 upgrade

2002-11-08 Thread Erwin
); $l_cookie_expire2 = (int) date('r', time() + 400*30*12 ); HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Cookie error after 4.2.3 upgrade

2002-11-08 Thread Erwin
() + 400; $l_cookie_expire2 = time() + 400*30*12; You're right of course, let's say that it was very early when I wrote that answer ;-)) Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] string to array

2002-11-08 Thread Erwin
$string = 'string'; echo $string[0]; // will echo 's' True, but that's different than the array type. Sometimes you'll just need an array instead of a string. Try using $string = explode( '', 'string' ); Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

Re: [PHP] string to array

2002-11-08 Thread Erwin
'; preg_split('//', $string, -1, PREG_SPLIT_NO_EMPTY); ? in this case, right? Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Image from MIME email

2002-11-14 Thread Erwin
). Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: inserting preexisting image inside dynamic image

2002-11-25 Thread Erwin
Eric Pierce wrote: Hi there... Just wondering... when creating a dynamic image, is there a way/fuction to insert an existing image using x,y coordiantes for precision? Yes, there is...use imagecopy (http://www.php.net/imagecopy) Grtz Erwin -- PHP General Mailing List (http://www.php.net

[PHP] Re: Dumb POST Array question

2002-11-25 Thread Erwin
. Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: can't pass complete URL (part of the query string) from one script to another --??

2002-11-26 Thread Erwin
string ) Use a href=javascript: openWin('email.php?ref=?=urlencode($pageURL);?')this page/a HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: using mbstring without having /configure'd it

2002-11-26 Thread Erwin
Oliver Spiesshofer wrote: Hi, Is it possible to use mbstring after setting the necessary values in ini_set() or htaccess without having it enabled during /configure? Nope...the functions of mb are unknown, because you didn't compile them. Grtz Erwin -- PHP General Mailing List (http

[PHP] Re: amp; in Query String

2002-11-26 Thread Erwin
not...this is a HREF tag, which can use instead of amp;. amp; is for displaying purposes only, not for URL's. Following the tip from Marek, adjust your errormessage mailing thingy...add all the $_GET variables to it (print_r($_GET)). Some other notices maybe usefull to... Erwin -- PHP General Mailing List (http

[PHP] Re: Starting an application on web server

2002-11-26 Thread Erwin
on the server of the wolfmp.exe starting up the game console. Don't you get any visual output if you use passthru instead of exec??? Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: amp; in Query String

2002-11-26 Thread Erwin
I'll let you know what turns up (of course, the problem will stop occurring once I add this info :-). As it always does ;-)) Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Strange comparison behaviour

2005-05-13 Thread Erwin Kerk
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] Re: Strange comparison behaviour

2005-05-13 Thread Erwin Kerk
Bogdan Stancescu wrote: You probably mis-typed something: [EMAIL PROTECTED] ~]$ php ? if (info == 0) echo is 0\n; else echo not 0\n; ? 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

Re: [PHP] Is it Possible?

2005-02-04 Thread Erwin Kerk
is.. Any help will be greatly appreciated.. Thanks, /sagar I 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

Re: [PHP] Image and PHP

2005-04-14 Thread Erwin Kerk
. somethinglike: img src=script_that_show_image_and_deletes_it.php?image=ladieda.jpg / 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
= 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

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] 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=$SIDuid=$uidELEM_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=$SIDuid=$uidELEM_ID=$id I need to be able to return to a previous page using

Re: [PHP] using a php variable in javascript

2003-09-22 Thread Erwin Kerk
have you tried: so = window.open('','? echo $callerWin; ?'); ?? Erwin Kerk Web Developer Rich Fox wrote: I have a page with the following code: ? $callerWin = $_POST['CallerWin']; ? html body script type=text/javascript !-- so = window.open('','CompanyEdit'); so.location.reload

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 Wong wrote: On Tuesday 25 March 2003 00:39

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 / | ' \ @blixem.nl

Re: [PHP] Re: creating and ftp text file

2002-11-05 Thread Erwin Bovendeur
- Original Message - From: Petre Agenbag [EMAIL PROTECTED] To: Erwin [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Tuesday, November 05, 2002 8:24 PM Subject: Re: [PHP] Re: creating and ftp text file Hi Erwin OK, my first problem: your code genrates errors, it says fwrite

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 -- PHP General Mailing

Re: [PHP] PHP IDE?

2003-12-14 Thread Erwin Kerk
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/) To unsubscribe

Re: [PHP] Apache/IE hangs with PHP

2004-02-26 Thread Erwin Kerk
. Normal behavior for jultiple 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

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

2004-02-26 Thread Erwin Kerk
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] resubmitting $POST data to another script

2004-03-03 Thread Erwin Kerk
= array_merge($_POST,unserialize(stripslashes($_POST['post']))); Erwin Kerk Web Developer -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question in posting form-data

2004-12-16 Thread Erwin Kerk
script cannot identify the value as x. Try: fputs($fp, $name=$value\n); Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Website and Mozilla/Firefox

2005-01-10 Thread Erwin Kerk
JS) Seems to be solved... Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] question about a cron job

2005-01-17 Thread Erwin Kerk
, the CRON daemon won't notice the every-minute job until 3.01 pm. Erwin -- 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 advance, Erwin

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] Destructor not called when extending SimpleXMLElement

2012-07-02 Thread Erwin Poeze
Interesting problem. I would expect it to work too. I assume it is a bug. 2012/7/2 Nick Chalk n...@loadbalancer.org Afternoon all. I seem to be having a little trouble with extending the SimpleXMLElement class. I would like to add a destructor to the subclass, but am finding that it is not

Re: [PHP] Way to test if variable contains valid date

2012-07-03 Thread Erwin Poeze
Or you could use a regular expression: $probe = '2000-01-01'; $found = preg_match('/(19|20)\d\d[- \.](0[1-9]|1[012])[- \.](0[1-9]|[12][0-9]|3[01])/', $probe); var_dump($found==1); Erwin 2012/7/3 shiplu shiplu@gmail.com I want to thank you, Daniel, for this help. - I was looking

Re: [PHP] Is this list less busy than it used to be?

2012-07-04 Thread Erwin Poeze
Well, I think you are right. Take a look at this graph of the number of messages posted starting in 1998. The stackoverflow.org effect? messages - https://docs.google.com/spreadsheet/ccc?key=0Ak1QF0ijPYbedDNvb19SQl80MHcxUWhhbTZOYm5FUlE Erwin 2012/7/4 RGraph.net support supp...@rgraph.net Hi

[PHP] Apache+PHP+DSO: maybe trivial (?): apxs doesn't create libphp4.so under AIX 4.3.3

2002-02-19 Thread Erwin S R U B A R
on the system. Considering we have the products (in most cases the up-to-date versions) it must be some obvious problem - but I have no idea. Thanks for help in advance, Erwin -- Dipl.-Ing. Erwin SRUBAR Zentraler Informatikdienst, Bereich ,,Zentrale

<    1   2