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

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] 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

[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] 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?

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

[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] 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

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 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] 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
= 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] 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] 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] 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] 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] 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: 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

[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] 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: 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: 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: 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: 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: HELP COOKIES !

2002-11-05 Thread Erwin
Hi Grtz Erwin, let me tell you wat i need to do. 1.) I have a login page - if the user logs in correctly i create session(with session_start()) , a cookie is written to client + session file to server. 2.)When the user logs off - i call the logOff.php page . The contents are as follows

[PHP] Re: Spawning a background process

2002-11-05 Thread Erwin
. If you're background process doesn't spawn it's own child, I think you'll have to add an ampersand () also, to make the program run in background. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: creating and ftp text file

2002-11-05 Thread Erwin
: ' . $notify . \n; // And add everything else to the $content variable which needs to be written $fp = fopen('ftp://ftp.domain.com', 'w' ); fwrite( $fp, $content ); fclose( $fp ); ? HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: addslashes/stripslashes

2002-11-05 Thread Erwin
the \. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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

[PHP] Re: Address array?

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

[PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread Erwin
'; $result = str_replace( $search, $replacement, $result ); HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread Erwin
= This is a test, isn't it?; $search = is; $result = preg_replace( '/(' . $search . ')/i', span class=\highlight\\$1/span, $result ); Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread Erwin
Try the following one: $result = This is a test, isn't it?; $search = is; $result = preg_replace( '/(' . $search . ')/i', span class=\highlight\\$1/span, $result ); Grtz Erwin David Russell wrote: Hi Erwin, Yep, this does exactly what str_replace does. No, it doens't...this one

Re: [PHP] Re: Battling with highlighting search criteria

2002-11-04 Thread Erwin
this clears your brain up ;-))) Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: finding a value in an array

2002-11-04 Thread Erwin
array, then print selected print ' selected'; print '' . $i . '/option'; } Something like that? Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: HELP COOKIES !

2002-11-04 Thread Erwin
using a cookie??? If you use session_start(), a cookie is automaticaly send to the client. Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Session cookies

2002-11-03 Thread Erwin
. Not because default is 0, but because there isn't any session yet. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: fgets()

2002-11-03 Thread Erwin
PHP 4.2.0 it didn't work So what else can i try to just get the whole contents of the file into a string? $filename = http://www.domain.com/filename.txt; $fp = fopen($filename,r); while (!feof($file)) $content .= fread($fp,4096); HTH Erwin -- PHP General Mailing List (http://www.php.net

[PHP] Re: why does eregi match for whitespace when there is none?

2002-11-01 Thread Erwin
[[:space:]] when using eregi. See also http://www.developers-resources.com/stories.php?story=01/10/25/0549771 Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How do you select?

2002-10-31 Thread Erwin
Steve Jackson wrote: I want to the select the very last record from my MySQL DB. How do I do it? If the table has an id, use select * from table order by id desc limit 0,1 Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Making string upper/lowercase with regex?

2002-10-29 Thread Erwin
: I don't want the entire string upercase, just part of it as defined by a regex. Then use preg_replace. The PHP website has an example to uppercase a part of a string using preg_replace(http://www.php.net/preg_replace). Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] Re: Another question

2002-10-29 Thread Erwin
like top.document.title = 'Title' or document.title = 'Title' I'm not exactly sure which one (if any) of these works, but it's something like this... Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: exploding values into new variables

2002-10-28 Thread Erwin
; Right? Right! Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: preg_replace and eval

2002-10-28 Thread Erwin
(.*), but ([^{]*) instead. The regexp which works in your example is the following: /([^{]*){parent.([^{]*)}([^{]*)/e HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Ereg help

2002-10-25 Thread Erwin
of these iterations took about 2 seconds... Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: String manipulation

2002-10-24 Thread Erwin
the email address, submitted by the form. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Seek for a value in a html file ...

2002-10-09 Thread Erwin
the $content array, which is your inputfile. You can then filter out the value you want using strpos, strrpos and substr. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: =Next to last record in a file=

2002-10-08 Thread Erwin
it popped). There you have it... In code: ? $content = file( 'http://waterdata.usgs.gov/ny/nwis/uv?format=rdbperiod=1site_no=01420500' ); array_pop( $content ); $current = array_pop( $content ); ? HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

Re: [PHP] join() , can do that fast?

2002-10-07 Thread Erwin
(',', $x)); ? produces: x=['str1','str2','str3'] Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Thumbnail with GD

2002-10-04 Thread Erwin
=img.jpg. You can create a nice directory listing this way, just call the resize.php script for every image on the page. Create the directory listing with the opendir function you used above, but let it print a img src='resize script url' width='100' height='100' instead of an image! HTH Erwin

[PHP] Re: help me please.

2002-10-04 Thread Erwin
) ) OR if ( !move_uploaded_file( $_FILES['userfile']['tmp_name'], $upfile ) ) { echo Error: Could not move file into directory; exit; } ? HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Unix passwd file

2002-10-04 Thread Erwin
} Crypt can not be unencrypted, but you can of course compare the crypted passwords... HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Stuck at PHP4 installation( with Apache2 )

2002-10-04 Thread Erwin
directory instead. If you're using any extensions that require external libraries (take a look in your php installation directory, subdirectory dlls), then they should be copied to. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Undefined index:

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

[PHP] Re: quotes in text strings

2002-10-02 Thread Erwin
); but these don't seem to work (maybe its me). Probably you have magic_quotes_gpc set to On in php.ini...you can change this to Off, or you can use stripslashes() on the $string variable... HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: PHP Include Help

2002-10-01 Thread Erwin
(HTML break with newline) HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Apache 1.3.26 + PHP 4.2.3

2002-10-01 Thread Erwin
versions. Its just with PHP 4.2.3 that it stops working. Is apachectl graceful an option? apachectl resided in the apache installation dir. Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: 4.0.2 = 4.2.3, form vars are empty?

2002-09-27 Thread Erwin
empty. I mean a form submission from .html to .php (about the simplest thing possible) the variables are not getting populated with their form values. Turn register_globals = On in the php.ini file... HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: shouldn't $_SERVER['PHP_SELF'] include the get info?

2002-09-26 Thread Erwin
that...the PHP_SELF points to this file, and the filename has no arguments, thus the PHP_SELF variable don't have them either. You will have to use the $_GET array for the aid=12 part. Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Including variables

2002-09-26 Thread Erwin
, http://www.php.net/unlink). HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Tar Files and send back to browser

2002-09-26 Thread Erwin
to the browser, or PHP will send the default (text/plain) header. For a tar file the correct header is application/x-tar, send it with Header( 'Content-Type: application/x-tar' ); HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: shouldn't $_SERVER['PHP_SELF'] include the get info?

2002-09-26 Thread Erwin
Noodle Snacks wrote: Erwin [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Noodle Snacks wrote: [snipped] It is supposed to be like that...the PHP_SELF points to this file, and the filename has no arguments, thus the PHP_SELF variable don't h

Re: [PHP] Re: Tar Files and send back to browser

2002-09-26 Thread Erwin
is named 'download' Size is about 160 bytes, seems to be correct. when I try to extract the files there pops up an error message which says: Unexpected end of archive. Have you got a sollution on that? Yes...my mistake, use passthru( $command ) instead of system( $command ) Grtz Erwin

Re: [PHP] Finding out when a Web page has changed

2002-09-26 Thread Erwin
Marek Kilimajer wrote: Hope the sites have no banners :), they change all the time But the URL to the banners will be the same, so that's no change in the HTML code ;-)) [SNIP] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Tar Files and send back to browser

2002-09-26 Thread Erwin
instead of tar: - Set the header back to application/x-gzip - Change the command to gzip -c filename I'm very curious if you get any (correct) output then... Greetings Sascha Greets back :) Erwin PS.: Isn't it wrong, when I write greetings in english? Sounds so german, what could i write

Re: [PHP] Re: Tar Files and send back to browser

2002-09-26 Thread Erwin
Winzip ;-) ) Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Tar Files and send back to browser

2002-09-26 Thread Erwin
Sascha Braun wrote: Do you know how to exclude the path informations in the tar archive? Yes, first chdir to the ../images directory http://www.php.net/getcwd http://www.php.net/chdir Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: PHP Installation under WinXP Apache 2.0.39

2002-09-25 Thread Erwin
with the interface change of Apache2. Since version 2.0.39 (?) the interface changed a bit, so some functions don't work. You'll have to compile the php4apache2.dll from PHP 4.3.x and use that with your Apache2. I'll send you one trough e-mail, and hope it works for you. HTH Erwin -- PHP General

[PHP] Re: problems with opendir()

2002-09-25 Thread Erwin
['DOCUMENT_ROOT']/files/dir instead HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: looping through array with list()/each()

2002-09-25 Thread Erwin
, \$val = $valbr; } Small typo: while ( list($key, $val) = each($ser) ); change into: while ( list($key, $val) = each($ser) ) Remove the ; HTH Erwin P.S.: Take a break ;-)) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: why manual says 'don't use session_register'?

2002-09-24 Thread Erwin
will be removed from the $_SESSION array AND from the session file. I recommend following the manual and don't use the session_unregister, session_is_registered and session_register functions anymore. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net

[PHP] Re: MySQL Access

2002-09-20 Thread Erwin
, which can be downloaded from www.mysql.com, and then import the tables with access Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Sessions

2002-09-20 Thread Erwin
tried output_buffering (on and off) - I've tried registered_globals (on and off) - I've tried using session_write_close() before leaving the page - I've checked the session_start() statement (Yes, it's there :-) ) I hope someone can help me with this... Thanks in advance, Erwin -- PHP General

Re: [PHP] Sessions

2002-09-20 Thread Erwin
John Holmes wrote: You have session_start() on the second page, too, right?? Yes...the session_start() statement is in a global include file, which is included in all files which require it Grtz Erwin -Original Message- From: Erwin [mailto:[EMAIL PROTECTED]] Sent: Friday

Re: [PHP] Auto-increment value

2002-09-18 Thread Erwin
Scott Houseman wrote: Hi there. You can use the function mysql_insert_id( [link id] ). I'm using postgresql. Not if you're using PostGreSQL Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: COOKIE Question.

2002-09-17 Thread Erwin
about $_COOKIE[Access] ??? Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: How to choose a crypt-standard in crypt()?

2002-09-17 Thread Erwin
applies to your system or the longer twelve character salt is applicable. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: error handling

2002-09-13 Thread Erwin
and no access to php.ini. Take a look at http://www.php.net/set_error_handler That's the easiest way to create your own error_handler class! HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: user and password for socket connection

2002-09-12 Thread Erwin
)) { echo fgets ($fp,128); } fclose ($fp); } You could try using $url = https://$user:$[EMAIL PROTECTED]; I haven't tried this yet ;-)) HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: what is wrong?

2002-09-12 Thread Erwin
$_POST[new_password1] Besides that, I would use the form of Lallous: if ( empty( trim( $_POST[ new_password1 ] ) echo Empty!; HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] A question about .php file extension

2002-09-12 Thread Erwin
Adam Williams wrote: make a directory called phptest and put a file, index.php in it...never tried it tho. In that case you will have to call http://localhost/phptest/?id=22 Grtz Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Displaying PDF file

2002-09-12 Thread Erwin
give errors. You will have to use readfile instead: readfile( ../pdfs/whatever.pdf); HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Displaying PDF file

2002-09-12 Thread Erwin
Joseph Szobody wrote: Thanks Erwin, that helps but I'm still not getting it to work. Should I still use the Header(Content-type: application/pdf); line? I tried using readfile() keeping the header. When I click the link to the PHP script that should show me the PDF, the IE

[PHP] Re: php nuke problem

2002-09-12 Thread Erwin
fill that form,it just displays the same form over and over again...the super user/ admin user does not get created... Probably it requires register_globals to be turned On??? Did you checked that? HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http

[PHP] Re: mysql_insert_id

2002-09-11 Thread Erwin
of the AutoIncrement column. HTH Erwin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >