[PHP] Sending / Receiving Cookies with Fopen??

2001-10-25 Thread Andrew Reberry
Hello all. I have a problem to solve, but have no idea where to start.. I am writing a site right now that needs to read information from many other web pages on different domains (using fopen). However a few sites have given me the error: you need to have cookies enabled to view this page. This

RE: [PHP] libxml

2001-10-25 Thread php
Hi, I need to use PHP from cvs for other reasons. Anyway, libxml 2.3.9 - Configure wants a higher version (2.4.2). libxml 2.4.6 - Causes the trouble. libxml 2.4.2 - Wont build - dies after configre libxml 2.4.5 - same problem BTW, this error appears for xmltree calls. am wokring on clearing

[PHP] disable_functions not working in httpd.conf

2001-10-25 Thread Joseph Blythe
Hey All, Was just trying the following and disable_functions is not working? Although safe mode and open_basedir are! What is really strange that when phpinfo is called the disable_functions value is phpinfo, can't seem to disable echo either, I don't want to put these in php.ini as I still want

[PHP] Regex problem

2001-10-25 Thread Leon Mergen
Hi there, I am camping with a little regular expressions problem... Problem: I want to check if $variable begins with a * (star), and it doesn't matter if it starts with plenty of spaces... My solution: ereg(^[:space:]*\*,$variable) But, it doesn't seem to work with the space part... The

[PHP] = 0 and = 0

2001-10-25 Thread Robin Chen
why does ? $qty = 0 ; if ($qty != test) print qty is not test; ? work properly but not the following ? $qty = 0 ; if ($qty != test) print qty is not test; ? Thanks, Robin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Re: Regex problem

2001-10-25 Thread liljim
Hello Leon, try this if (preg_match(/^([[:space:]]*)?\*/s, $string)) { echo Match.; } else { echo No match; } James Leon Mergen [EMAIL PROTECTED] wrote in message 002f01c15d2a$e4ca3030$012aa8c0@leon">news:002f01c15d2a$e4ca3030$012aa8c0@leon... Hi there, I am camping with a little regular

Re: [PHP] = 0 and = 0

2001-10-25 Thread Vitali Falileev
Hello Robin, Very simple. :) RC ? $qty = 0 ; if ($qty != test) print qty is not test; ? $qty is string, so PHP compares 0 with test char by char. chr(0) isn't equal t. RC ? $qty = 0 ; if ($qty != test) print qty is not test; ? In this case $qty is integer value, so PHP tries to convert test

Re: [PHP] Regex problem

2001-10-25 Thread Kodrik
My solution: ereg(^[:space:]*\*,$variable) Try ereg(^[:space:]\**$,$variable) or ereg(^[ ]*\**$,$variable) or ereg(^[[:space:]]*\**$,$variable) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To

RE: [PHP] = 0 and = 0

2001-10-25 Thread Matthew Loff
The only reason I could see that not working is if PHP is typecasting test to (int) in the second example... $qty = 0; (string) test = test; (string) 0 != test (evaluates true) $qty = 0; (int) test = 0; (when cast to int) 0 != 0 (evaluates false) e.g. By comparing an int to a string in

Re: [PHP] = 0 and = 0

2001-10-25 Thread Kodrik
? $qty = 0 ; if ($qty != test) print (qty is not test); ? ? $qty = 0 ; if ($qty != test) printf(qty is not test); ? I just tested those two lines with php 4.0.6 and they both work. There is a difference though. If you set $qty=0; then $qty has no value. But if you set $qty=0, it has a value.

Re: [PHP] talking directly w/ MySql

2001-10-25 Thread Christian Reiniger
On Wednesday 24 October 2001 14:33, _lallous wrote: I think that the MySql's API allow to many queries to be executed w/o having an open connection, example: SELECT 1+1; how can i issue such statments w/o opening a connection? like SELECT NOW() .. whenever I first run mysql_query()

Re: [PHP] Object sharing

2001-10-25 Thread Christian Reiniger
On Wednesday 24 October 2001 15:35, Victor Hugo Oliveira wrote: Does anyone know a way to share an object with all sessions ? The idea is to access the same database connection poll. poll or pool? if pool: simply use persistent connections -- Christian Reiniger LGDC Webmaster

Re: [PHP] = 0 and = 0

2001-10-25 Thread Rasmus Lerdorf
If you set $qty=0; then $qty has no value. Of course it has a value. The value is 0. Quite distinct from not having a value, or in proper terms, not being set. Try this: var_dump($qty); $qty = 0; var_dump($qty); Well, I will save you the trouble, it outputs: NULL int(0) Type

Re: [PHP] = 0 and = 0

2001-10-25 Thread Kodrik
If you set $qty=0; then $qty has no value. Of course it has a value. No it doesn't have a value. PHP interprets 0 as null. A very easy way for you to check: $value=0; if(!$value) printf($value doesn't have a value (it didn't even print 0)br\n); $value=0 if($value) printf($value does

Re: [PHP] is_int() and is_double

2001-10-25 Thread Christian Reiniger
On Wednesday 24 October 2001 20:26, Michael George wrote: [...] The function is called after a form submission from HTML. When I enter 12 14 I get: --- lookupProduct( 12, 14 ) $partNum: 12 does appear

[PHP] Re: Regex problem

2001-10-25 Thread Calin Uioreanu
$sNoSpaces = ltrim($variable); if ('*' == $sNoSpaces[0]) -- Regards, -- Calin Uioreanu [EMAIL PROTECTED] Tel: +49 - (0) 89 - 25 55 17 23 http://www.ciao.com -- Leon Mergen [EMAIL PROTECTED] wrote in

Re: [PHP] = 0 and = 0

2001-10-25 Thread Robin Chen
Thank you, that was it. I needed to test the variable against both an integer and a string, so I ended up using (string) when I need to compare a string. Rest of the time, it's an integer. Robin Rasmus Lerdorf wrote: If you set $qty=0; then $qty has no value. Of course it has a value.

Re: [PHP] = 0 and = 0

2001-10-25 Thread Robin Chen
The integer 0 is equal to False, but not Null. Robin Kodrik wrote: If you set $qty=0; then $qty has no value. Of course it has a value. No it doesn't have a value. PHP interprets 0 as null. A very easy way for you to check: $value=0; if(!$value) printf($value doesn't have

Re: [PHP] = 0 and = 0

2001-10-25 Thread Rasmus Lerdorf
Kodrik, you are picking the wrong person to argue with. ;) If you set $qty=0; then $qty has no value. Of course it has a value. No it doesn't have a value. PHP interprets 0 as null. Completely incorrect. A very easy way for you to check: $value=0; if(!$value) printf($value

Re: [PHP] Re: Removing an Array Element

2001-10-25 Thread Christian Reiniger
On Wednesday 24 October 2001 23:33, Jason Caldwell wrote: That won't work, as that will only unset the *value* not the *element*. Try again: $myArray = array('100'='jibberjabber','200'='morejibberjabber','0'=''); var_dump ($myArray); echo br;

Re: [PHP] = 0 and = 0

2001-10-25 Thread Kodrik
You are right, 0 didn't show as a value. But his two lines still don't need typecasting, they both work: http://24.234.52.166 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

Re: [PHP] = 0 and = 0

2001-10-25 Thread Rasmus Lerdorf
The integer 0 is equal to False, but not Null. Not quite true. 0 evaluates to false. They are not equal. Try this: if(0==false) echo 1; if(0===false) echo 2; You will find that this only prints 1. 0 and false are distinct and separate values. This is something that confuses a lot of

[PHP] Re: socket question

2001-10-25 Thread Tim Ballantine
That seems to just give me the first line, of: htmlheadtitlePHP Credits/title/headbody but nothing else after that. Any ideas? :) Tim James Cave [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... There is some source code on the php.net site which captures the

Re: [PHP] Q:Why is my code returning this? Help?

2001-10-25 Thread gaouzief
why are you using stripslaches? 25/10/2001 00:41:45, Marcus James Christian [EMAIL PROTECTED] wrote: Hello, As mainly a designer w/ HTML and JS php is usually just an end of site add on to process forms and I LOVE php! I've been away from PHP coding for about a month and I can't figure out

Re: [PHP] = 0 and = 0

2001-10-25 Thread Rasmus Lerdorf
You are right, 0 didn't show as a value. But his two lines still don't need typecasting, they both work: http://24.234.52.166 I don't mean to pick on you, but no, you are wrong. And I am only doing this because so many people get confused on this point and I always see questions related

[PHP] Re: socket question

2001-10-25 Thread Tim Ballantine
That is, using a socket, that it gives me the one line. echo'ing it gives the whole thing. Tim Tim Ballantine [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... That seems to just give me the first line, of: htmlheadtitlePHP Credits/title/headbody but nothing else

Re: [PHP] = 0 and = 0

2001-10-25 Thread Kodrik
Check the link I posted. http://24.234.52.166 There is the code I wrote and it's output. The two lines print. You can explain me why tomorrow they print on my server and not yours. Good night But his two lines still don't need typecasting, they both work: http://24.234.52.166 I don't mean

[PHP] RE: URL variables

2001-10-25 Thread Tim Ward
They're just there ... If the link is a href='yourpage.php?yourvar=fred' Then in yourpage.php ... echo($yourvar); the only way you may go wrong with this is with scoping, $yourvar isn't available in a function inside yourpage.php. Tim Ward -- From: Clint Tredway

Re: [PHP] disable_functions not working in httpd.conf

2001-10-25 Thread Arpad Tamas
On Thursday 25 October 2001 09:47, Joseph Blythe wrote: Hi, bad news disable_functions doesn't work for me either in apache's config file I tried it with php_value, and php_admin_value, also in .htaccess with php_value without any luck php4.0.5, Apache/1.3.14 bye, Arpi Hey All, Was

[PHP] regardnig receiving mails

2001-10-25 Thread Nigam Chheda
Hi For sending mail php has a function mail() But how to receive mails(i.ie. POP3 access) can anyone send some sample code Nigam

[PHP] Loading message

2001-10-25 Thread Daniel Alsén
Hi, is there a easy way in php to display text like Loading... while elements on a page is being loaded from the server? Regards # Daniel Alsén| www.mindbash.com # # [EMAIL PROTECTED] | +46 704 86 14 92 # # ICQ: 63006462 | # -- PHP General Mailing List

Re: [PHP] talking directly w/ MySql

2001-10-25 Thread _lallous
SELECT 1+1 doesn't really need a connection... or any other statments that doesn't address a table or database, SELECT SUBSTRING('test', 1, 2); etc etc.. I guess it is not possible though... Kodrik [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... how can i

Re: [PHP] talking directly w/ MySql

2001-10-25 Thread Andrey Hristov
Hey man, when I ask you how is 2+2 you will answer - 4 but when I ask you how is 2*3.141596535 you use a calculator. In both cases I speak with you(make a connection). In the first case you don't need to use calc because you don't have to use it. PHP and Mysql are two standalone apps and when

[PHP] RE: PHP object communication

2001-10-25 Thread Tim Ward
If you want access to error functions within the db class it must either extend the error class or have an error object within it. Either ... Class DB extends Error { ... } Class Core extends DB { ... } or Class DB { var $error; ... function DB() // constructor

[PHP] Re: Loading message

2001-10-25 Thread _lallous
the page won't ever showup unless the webserver finishes processing the PHP file, therefore the Loading ... will appear while the page is waiting for its component to finish loading (images, javascripts, flash files, ) therefore what you're asking for has a javascript solution: 1)make a div

[PHP] passing a multi dimensional associative array...

2001-10-25 Thread Spunk S. Spunk III
Pardon me if I've been smoking too much crack but I can't seem to figure this one out... How do I pass an argument to a function that contains a value from multi dimensional associative array? or... How do I pass an variable as an argument that contains value taken from an array? or... Why

RE: [PHP] Re: Loading message

2001-10-25 Thread Daniel Alsén
I will try experimenting with that. But my situation is: A page with multiple php file includes. The page loads on to the includes, loads them and continues to load the includes below. I want to display some sort of text while the include still isn´t loaded. Likewise i would like to display

[PHP] Re: regardnig receiving mails

2001-10-25 Thread Valentin V. Petruchek
Look in http://www.php.net/manual/en/ref.imap.php - Original Message - From: Nigam Chheda [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, October 25, 2001 12:41 PM Subject: [PHP] regardnig receiving mails Hi For sending mail php has a function mail() But

Re: [PHP] Loading message

2001-10-25 Thread Krzysztof Kocjan
flush() (http://www.php.net/manual/en/function.flush.php) the server cache. By defult Apache caches response to time this is completed. Then it responds. But You can flush() the cache in php code. It can help you not to use JavaScript. Krzysztof Daniel Alsén wrote: Hi, is there a easy

Re: [PHP] Re: Loading message

2001-10-25 Thread Derek Mailer
I suspect that PHP does all of it's work and, only when complete, will it send the generated html to the client. No matter what you try and do there's no way you can output the progress of your script to the browser while it is still being parsed. I could be wrong, but this is my understanding

RE: [PHP] Re: Loading message

2001-10-25 Thread Daniel Alsén
Is your script really taking that long to be parsed that you need a loading progress bar or is the html (including graphics etc) just very big? Parts of the page is rather heavy loaded. The main php file loads fine and displays it´s contents until it reaches one of the heavy includes (heavy

[PHP] RE: PHP object communication

2001-10-25 Thread ad
Hi Tim, If you want access to error functions within the db class it must either extend the error class or have an error object within it. Either ... I'll go for the latter, because extends isn't appropriate in this case: Class DB { var $error; ... function DB() // constructor

[PHP] Entity handling in DOM

2001-10-25 Thread Vikram Vaswani
Hi all, If I have an entity reference in an XML document, which I', parsing with the libxml PHP/DOM parser - does anyone know how I can [1] expand entities and [2] read in and parse external entities? Code would be helpful. :) TIA, Vikram -- PHP General Mailing List (http://www.php.net/) To

[PHP] regardnig receiving mails

2001-10-25 Thread Nigam Chheda
Hi For sending mail php has a function mail() But how to receive mails(i.ie. POP3 access) can anyone send some sample code pl reply me mail at following id [EMAIL PROTECTED] Nigam

[PHP] RE: PHP object communication

2001-10-25 Thread Tim Ward
see below for comments Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -Original Message- From: [EMAIL PROTECTED] [SMTP:[EMAIL PROTECTED]] Sent: Thursday,

Re: [PHP] Re: Loading message

2001-10-25 Thread Jon Farmer
the page won't ever showup unless the webserver finishes processing the PHP file, therefore the Loading ... will appear while the page is waiting for its component to finish loading (images, javascripts, flash files, ) Totally incorrect. I have a page on our intranet that checks whois

Re: [PHP] Re: Loading message

2001-10-25 Thread Derek Mailer
If what I've said is correct, then in simple terms... your php code will take a set amount of time to execute everything, then the html and web page cmoponents are sent to the browser, then the browser interprets the html and displays the page. One of the stages listed above seems to be

[PHP] how many data can a session hold?

2001-10-25 Thread Christian Dechery
I want to know how many data can a session (treated as cookie) can hold... The number of bytes... and if possible the max size of an - let's say - array of ints. I need this to know how many IDs I can hold in the session... _ . Christian Dechery . . Gaita-L Owner /

[PHP] generating several images in sequence...

2001-10-25 Thread Christian Dechery
I have a page that calls a image creating script lots of times... this script takes two parameters... the type of graph to be created and an array with data to fill the graph to be created... now I'm doing it like this: img

Re: [PHP] how many data can a session hold?

2001-10-25 Thread Duncan Hill
On Thu, 25 Oct 2001, Christian Dechery wrote: I want to know how many data can a session (treated as cookie) can hold... If you're using cookies, the limit is the cookie spec. I /think/ 4096 bytes for a cookie. Go find the spec to be sure. -- Sapere aude My mind not only wanders, it

[PHP] gray square using imagecopyresized

2001-10-25 Thread Alberto
That's my call: imageCopyResized ($O_imagen, $O_relleno, 0, 0, 0, 0, 83, 62, 174, 83); If I do imagePNG($O_relleno); I can see the correct image, but when I do imagePNG($O_relleno); after imageCopyResized I see that it has copied a gray filled square (with

Re: [PHP] web base mail client???

2001-10-25 Thread Christian C.
I would say this comes in a close second as the most oft-asked question on php-general, with the first, of course, being What's a good text editor for PHP? hehehehe... Thanks Chrisrtian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: [PHP] Re: Loading message

2001-10-25 Thread _lallous
I agree with you Derek, It also depends on the webserver and your connection speed... perhaps the pages is already parsed and processed but your connection is slow somehow and you're getting the page partially as if it is beeing show while it is beeing processed/parsed. Derek Mailer [EMAIL

[PHP] how can I do this !!

2001-10-25 Thread Alawi
i have txt file have this words -- bla bla bla [phpcode] ? echo 'hello word'; ? [/phpcode] bla bla bla --- now I want to convert the code that are between [phpcode] and [/phpcode] to colorized code .. How I can do that

Re: [PHP] Re: Removing an Array Element

2001-10-25 Thread Papp Gyozo
and what about array_slice(), array_splice(), array_pop() or array_unshift()? Please read the corresponding pages of the manual! - Original Message - From: Christian Reiniger [EMAIL PROTECTED] To: Jason Caldwell [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Thursday, October 25, 2001 11:03

RE: [PHP] how can I do this !!

2001-10-25 Thread Boget, Chris
i have txt file have this words -- bla bla bla [phpcode] ? echo 'hello word'; ? [/phpcode] bla bla bla --- now I want to convert the code that are between [phpcode] and [/phpcode] to colorized code .. How I can do that Copy the file to .phps and access that page

[PHP] intermediate pre-parsed or compiled PHP files possible?

2001-10-25 Thread Thomas
Hello there, I was wondering if there was any intermediate format I could compile my PHP scripts to in order to gain speed. For example, having the format/validity of the scripts already formatted, function locations ready in an index, PHP function calls, etc etc. Sortof like obj files for C++.

[PHP] Redirecting Using Header{} Function

2001-10-25 Thread Chris M
Hi, I am writing a site which is available in different languages. The idea is that when the visitor selects a language on the first visit it is then set in a cookie and remembered so they aren't asked again, I also set the Language ID in a session to be used through that visit. The page that

Re: [PHP] = 0 and = 0

2001-10-25 Thread John A. Grant
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The integer 0 is equal to False, but not Null. Not quite true. 0 evaluates to false. They are not equal. Try this: [...] So be careful and try to think of 0 and false as distinct and

[PHP] Re: is there a commandline php.exe interpreter?

2001-10-25 Thread John A. Grant
John A. Grant [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I've installed ActivePerl, which gives me a way to run .pl files, i.e. : c:\ perl someprogram.pl Does the Win32 php installation give me a command-line interpreter like that? [...] No

RE: [PHP] Redirecting Using Header{} Function

2001-10-25 Thread james . fairbairn
However with Netscape 4.75 when I call any page that has the Header(Refresh) function I get a nasty pop up box which says The document contains no data. I then click ok and the page loads exactly as it should but no matter what I do I can't stop this pop up box from appearing, IE, Netscape 6

Re: [PHP] how can I do this !!

2001-10-25 Thread Richard S. Crawford
What do you mean, colorized code? At 02:26 PM 10/25/2001, Alawi wrote: i have txt file have this words -- bla bla bla [phpcode] ? echo 'hello word'; ? [/phpcode] bla bla bla --- now I want to convert the code that are between [phpcode] and [/phpcode] to colorized code ..

[PHP] Header Refresh Function

2001-10-25 Thread Chris M
Hi, I am writing a site which is available in different languages. The idea is that when the visitor selects a language on the first visit it is then set in a cookie and remembered so they aren't asked again, I also set the Language ID in a session to be used through that visit. The page that

RE: [PHP] how can I do this !!

2001-10-25 Thread Andrew Braund
show_source(basename($PHP_SELF)); At 02:26 PM 10/25/2001, Alawi wrote: i have txt file have this words -- bla bla bla [phpcode] ? echo 'hello word'; ? [/phpcode] bla bla bla --- now I want to convert the code that are between [phpcode] and [/phpcode] to

RE: [PHP] = 0 and = 0

2001-10-25 Thread Christoph Starkmann
Hi John! The integer 0 is equal to False, but not Null. Not quite true. 0 evaluates to false. They are not equal. Try this: [...] So be careful and try to think of 0 and false as distinct and separate entities and you will avoid coding mistakes like this. Is this

[PHP] Re: how can I do this !!

2001-10-25 Thread _lallous
? $mem = ' -- bla bla bla [phpcode] ? echo \'hello word\'; ?? [/phpcode] bla bla bla --- '; //' $re = '/\[phpcode\](.+?)\[\/phpcode\]/is'; if (preg_match($re, $mem, $matches)) { ob_start(); highlight_string($matches[1]); $html = ob_get_contents();

[PHP] Re: regardnig receiving mails

2001-10-25 Thread _lallous
there are lots of classes on http://phpclasses.upperdesign.com just search there. Nigam Chheda [EMAIL PROTECTED] wrote in message 006e01c15d43$63351620$26a8a8c0@bravo">news:006e01c15d43$63351620$26a8a8c0@bravo... Hi For sending mail php has a function mail() But how to receive mails(i.ie.

[PHP] htpasswd

2001-10-25 Thread Gary
Can php write to a htpasswd file? If it can will someone point me in the right direction. TIA Gary -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL

Re: [PHP] htpasswd

2001-10-25 Thread Derek Mailer
go to http://www.php.net/manual/en/ref.filesystem.php and read up on things like fopen, fclose, etc. This will explain how to write to any kind of file including htpasswd files if necessary. Good Luck Derek - Original Message - From: Gary [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent:

[PHP] Re: intermediate pre-parsed or compiled PHP files possible?

2001-10-25 Thread _lallous
did you check www.zend.com and their caching/optimizing products? Thomas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hello there, I was wondering if there was any intermediate format I could compile my PHP scripts to in order to gain speed. For example,

[PHP] Re: FIGURED OUTQ:Why is my code returning this? Help?

2001-10-25 Thread Marcus James Christian
Before anyone tries to hard to figure this out I looked over my code and fixed this. The answer was that I had more than one form on the same page calling to one php handler page, -Marcus Marcus James Christian wrote: Hello, As mainly a designer w/ HTML and JS php is usually just an end of

Re: [PHP] HTTP Authentication

2001-10-25 Thread Peter
the HTTP authentication of using a form uses Sessions! Check out the following URL: http://www.devshed.com/Server_Side/PHP/Commerce2/ I followed the above URL to create a user authentication page using Sessions. Peter On Mon, 22 Oct 2001, [ISO-8859-1] Stig-Ørjan Smelror wrote: Wilbert

[PHP] Using PHP for server utilities

2001-10-25 Thread Scott
Hello- I am dreading having to break out my perl books, so here is a thought about using PHP on the server to handle a chore for me. I have a Linux ftp server that accepts files from a mainframe every night. I need to take those files, determine when the transfer is done and then re-send them

[PHP] argument variable gets lost in function

2001-10-25 Thread Spunk S. Spunk III
I'm assigning a variable a value from an associative array. $variable = $array[key][value]; Then passing the $variable to a function. SomeFunction($variable) The variable exists (can be printed) until a built-in function (within the original function) is called. echo $variable;

[PHP] Re: intermediate pre-parsed or compiled PHP files possible?

2001-10-25 Thread Thomas
did you check www.zend.com and their caching/optimizing products? They dont seem to have anything free, I need something free. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list

[PHP] Re: argument variable gets lost in function

2001-10-25 Thread _lallous
hmm...weird! is that the code? if you show us your real code...maybe you're missing a small detail... Spunk S. Spunk III [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I'm assigning a variable a value from an associative array. $variable =

RE: [PHP] Re: Loading message

2001-10-25 Thread Daniel Alsén
I agree with you Derek, It also depends on the webserver and your connection speed... perhaps the pages is already parsed and processed but your connection is slow somehow and you're getting the page partially as if it is beeing show while it is beeing processed/parsed. Actually i know why

[PHP] PHP File not found

2001-10-25 Thread Chris M
Hi, I have just set up PHP on my webserver (IIS 4 on NT4). I have set up the script mapping so that I can save php files as .html and php processes them. This works fine until someone goes to a page that doesn't exist - instead of getting the customised error 404 page (i.e. the page you

RE: [PHP] Re: Loading message

2001-10-25 Thread Daniel Alsén
Could i have a hint of what you have done Jon? - Daniel Totally incorrect. I have a page on our intranet that checks whois information against about 10 whois servers. Right at the top of the page it says Checking. As soon as a response comes back from a whois server it shows in the

Re: [PHP] Re: argument variable gets lost in function

2001-10-25 Thread Spunk S. Spunk III
hmm...weird! is that the code? if you show us your real code...maybe you're missing a small detail... Sorry about the variable names... I can print the variable inside the function until it goes through ereg_replace. Then it's gone. The code works fine if I replace the line '$song =

[PHP] Making a string from an Array

2001-10-25 Thread Sam
Hi all, this may be an easy question, but I'm stuck... how can this, $words = explode( , $keywordText); for ( $i = 0; $i count( $words ); $i++ ) { if ($words[$i]==on OR $words[$i]==the OR $words[$i]==in OR$words[$i]==at OR $words[$i]==is OR $words[$i]==it) { $ignored[] = $words[$i]; }

[PHP] PHP-ASP

2001-10-25 Thread MrBaseball34
Can anyone show me the ASP equivalent to this PHP code I cut from a Weather script? I need to know how to get the response from the server into a string array fo process each line. $weather_url = http://iwin.nws.noaa.gov/iwin/tx/hourly.html;; $city_name = AUSTIN; exec ($wget_command

Re: [PHP] Re: Loading message

2001-10-25 Thread Jon Farmer
Yeah just call flush() when you want whats been parsed so far to go to the client.. -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 Mob 07763 620378 PGP Key available, send blank email to [EMAIL PROTECTED] - Original Message - From: Daniel Alsén [EMAIL

RE: [PHP] Making a string from an Array

2001-10-25 Thread Taylor, Stewart
$ignored = ; $include = ; snip { $ignored.= $words[$i]; } else { $included.= $words[$i]; -Stewart -Original Message- From: Sam [mailto:[EMAIL PROTECTED]] Sent: 25 October 2001 16:18 To: 'php' Subject: [PHP] Making a string from an Array Hi all, this may be an easy

[PHP] Re: regardnig receiving mails

2001-10-25 Thread Julio Nobrega
http://www.uebimiau.sili.com.br/ It's a script from my friend. Works with files (i.e, no database). You can analise his code, modify, fork, improve (that I know he would like ;-)) at will. -- Julio Nobrega. Um dia eu chego la: http://sourceforge.net/projects/toca Nigam Chheda [EMAIL

[PHP] Databases?

2001-10-25 Thread Kyle Smith
Can someone please give me the simplest tutorial to databases they can find?

RE: [PHP] Databases?

2001-10-25 Thread Taylor, Stewart
http://hotwired.lycos.com/webmonkey/programming/php/tutorials/tutorial4.html -Stewart -Original Message- From: Kyle Smith [mailto:[EMAIL PROTECTED]] Sent: 26 October 2001 00:49 To: [EMAIL PROTECTED] Subject: [PHP] Databases? Can someone please give me the simplest tutorial to

[PHP] stripslashes() not striping slashes

2001-10-25 Thread Boaz Yahav
Anyone has an idea why stripslashes(); doesn't strip slashes? I have a form that when it's submitted with a ' sign ads slashes to the submit results. I'm taking the variable and sending it through stripslashes(); and yet the slashes remain. NE1? berber -- PHP General Mailing List

[PHP] Making Setup Files Through A Web-Based Form

2001-10-25 Thread Jeff Gannaway
I'm writing an app that will be avaiable for the world to download and put on theri web sites. There will be a web-based form for them to customize the program on their site. This will record some basic variables like the filename for their site logo, what fonts they want to use in certain

Re: [PHP] stripslashes() not striping slashes

2001-10-25 Thread Rasmus Lerdorf
Anyone has an idea why stripslashes(); doesn't strip slashes? I have a form that when it's submitted with a ' sign ads slashes to the submit results. I'm taking the variable and sending it through stripslashes(); and yet the slashes remain. You are perhaps thinking it does in-place

[PHP] SIMPLE, secure user authentication

2001-10-25 Thread René Fournier
I'm looking for a good (simple) tutorial on user authentication. I want to create a login system that's secure, but I don't need all the features that PHPBuilder's A Complete, Secure User Login System scripts provide. (I don't need the the user to be able to register or confirm his account,

Re: [PHP] how can I do this !! color text in html

2001-10-25 Thread Michael J. Seely
This should work. You can also use html code to use a style sheet ref. ? ECHO FONT COLOR='#2378A0' SIZE='3'Hello Word/FONT; ? i have txt file have this words -- bla bla bla [phpcode] ? echo 'hello word'; ? [/phpcode] bla bla bla --- now I want to convert the code that

Re: [PHP] how many data can a session hold?

2001-10-25 Thread Christian Reiniger
On Thursday 25 October 2001 13:25, Christian Dechery wrote: I want to know how many data can a session (treated as cookie) can hold... The number of bytes... and if possible the max size of an - let's say - array of ints. I need this to know how many IDs I can hold in the session... Note:

Re: [PHP] conjob etc.

2001-10-25 Thread Mike Eheler
1. Just re-compile with the same options as before, just without --with-apxs or --with-apache (however you did it before). Run make all install and a php binary should be installed in $PREFIX/bin (default: /usr/local/bin). Then to use it to run shell scripts, put #!/usr/local/bin/php -q at

Re: [PHP] Making a string from an Array

2001-10-25 Thread Mike Frazer
A small addition: the code below would make a string, but it would be a single word (no spaces or other word boundaries). Use this instead: $ignored .= . $words[$i]; That inserts a space before each additional word. Unfortunately it also adds a space at the beginning but you can get rid of

[PHP] Truncating Lines

2001-10-25 Thread BT News
Hi, I have the following code, which reads in an html file $fd = fopen(somefile.html, r); while (!feof($fd)) { $buffer = fgets($fd, 4096); $body .= $buffer; } fclose($fd); I am then mailing this: if (mail($username. .$email., $mailsubject, $body, From: .$Fromname.

Re: [PHP] SIMPLE, secure user authentication

2001-10-25 Thread Mike Eheler
Wish I could point you to a good tutorial, but instead I'll try and give you the gist of it, based on my experience. A great way to do what you want to do is to combine MySQL user lookups with .htaccess security. This prevents anyone from accessing the pages you don't want them to, and cuts

RE: [PHP] Portland, Oregon

2001-10-25 Thread Jerry Lake
Rasmus, I'm not sure how I missed that, I would have liked to attend. where were you ? Jerry Lake -[EMAIL PROTECTED] Interface Engineering Technician -Original Message- From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 23, 2001 3:54 PM To: Richard Baskett

[PHP] Re: intermediate pre-parsed or compiled PHP files possible?

2001-10-25 Thread l0t3k
search for APC Cache or BWare Cache or PHP Accelerator on google Thomas [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... did you check www.zend.com and their caching/optimizing products? They dont seem to have anything free, I need something free. -- PHP

[PHP] Confused object in session variable.

2001-10-25 Thread Steve Cayford
Well, it's probably me that's confused. I have an authenticate() function which should start a session and if the user is not logged in then show the login screen otherwise return after storing and registering a user object in a session variable. This object has accessor methods to get the

  1   2   >