[PHP] Re: Function Call Line Number

2001-11-13 Thread _lallous
I guess that is not possible with PHP yet. "Jason G." <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hello, > > Does anyone know of a way, that from within a function, you can determine > what line number and file the function was called on? > > I did try: > f

[PHP] Re: can php detect whether an email address is a valid one?

2001-11-13 Thread dav
You can do it like: 1) Have php send the email with a particulare return reply so that wrong email addresses get sent back to it 2) Configure procmail to launch a php script when an email is received on that account (the "return" one) 3) Write the php script (SCRIPT NOT WEB) to parse the email rei

Re: [PHP] can php detect whether an email address is a valid one?

2001-11-13 Thread Daniel Masur
get the mx record: function checkmail ($mailtocheck) { if (eregi("^[_\.0-9a-z-]+@([0-9a-z][-0-9a-z\.]+)\.([a-z]{2,3}$)", $mailtocheck, $check)) { if (getmxrr($check[1].".".$check[2],$temp)) { return true; } return false; // kein mx gefunden } else { return false; // syntax fehler } } "Martin T

[PHP] Re: Frames and Sessions

2001-11-13 Thread dav
I agree :-)) J "Jimmy Elab" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Michael Hall wrote: > > can't figure out how I'm going to maintain a session across the three > > seperate HTML files in the frameset. > > You don't! PHP and your browser will do

[PHP] Re: Checkboxes / Undefined Variables

2001-11-13 Thread dav
define it :-)) boolean name_of_chechbox_3; for example J <[EMAIL PROTECTED]> ha scritto nel messaggio news:[EMAIL PROTECTED] .net... > In am HTML form, checkboxes NOT checked are not passed > to the PHP script called by the form. > > Therefore, if $name_of_chechbox_3 is not passed but it's > used

Re: [PHP] Checkboxes / Undefined Variables

2001-11-13 Thread Jason G.
your error reporting must be set to E_ALL. a very simple way is: $checkbox_3 = isset($checkbox_3); Now, $checkbox_3 will be either TRUE or FALSE with no errors! -Jason Garber IonZoft.com At 06:03 AM 11/14/2001 +, [EMAIL PROTECTED] wrote: >In am HTML form, checkboxes NOT checked are not pas

[PHP] Function Call Line Number

2001-11-13 Thread Jason G.
Hello, Does anyone know of a way, that from within a function, you can determine what line number and file the function was called on? I did try: function myfunc($lineno = __LINE__) { echo $lineno; } but this just outputted the very line that __LINE__ resides on. This would be very hel

RE: [PHP] Checkboxes / Undefined Variables

2001-11-13 Thread Martin Towell
use : @$name_of_chechbox_3 to suppress warnings or at the start of the file do : if (!isset($name_of_chechbox_3)) $name_of_chechbox_3 = ""; or something similar -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 5:03 PM To: [EMAIL P

[PHP] Checkboxes / Undefined Variables

2001-11-13 Thread afrodriguez
In am HTML form, checkboxes NOT checked are not passed to the PHP script called by the form. Therefore, if $name_of_chechbox_3 is not passed but it's used in the PHP script, it results in "Warning: Undefined Variable". How can I avoid this? Thanks! A. F. Rodriguez ([EMAIL PROTECTED]) -- P

Re: [PHP] is_null misses spaces... SOLUTION!

2001-11-13 Thread Spunk S. Spunk III
Ahh... and the winner is empty(). Thanks Christian for this elusive answer and everyone else for their input. Spunk > > I need to check variables for blank values but it appears that is_null and > =="" return true if there is a space. > > Any other suggestions? > > Thanks > > > -- > PHP

[PHP] using sessions and include

2001-11-13 Thread jtjohnston
Martin, are ya out there? Does anyone know anything about sessions? (An post & reply would be handy :) I am using session_register. I have: http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/index.html http://www.collegesherbrooke.qc.ca/languesmodernes/postcard/index.html.phps Which su

[PHP] Re: EXPIRATION PROBLEM; PLEASE HELP ME !!!

2001-11-13 Thread Fred
Your login.php uses the POST method to send the username and password to main.php. In general this is a good idea, because you do not want someone's password available from the URL. If you used the GET method you would not have a problem with the page expiring, but the password would be availabl

Re: [PHP] Parsing XML

2001-11-13 Thread Ben Gollmer
Oops, forgot a line: On Tuesday, November 13, 2001, at 08:58 PM, Ben Gollmer wrote: > Do something like this: > > function parseXML($xmlFile) > { global $attributeArray; > $theParser = xml_parser_create(); > xml_set_element_handler($theParser, "startElementHandler", > "endE

Re: [PHP] Parsing XML

2001-11-13 Thread Ben Gollmer
Do something like this: function parseXML($xmlFile) { $theParser = xml_parser_create(); xml_set_element_handler($theParser, "startElementHandler", "endElementHandler"); //parse your XML here return $attributeArray; } function startElementHandler($theParser, $the

Re: [PHP] Security concerns with Virtual Hosts

2001-11-13 Thread Rasmus Lerdorf
That or open_basedir. Both can be configured in the php.ini file. It's not a compile-time thing. -Rasmus On Tue, 13 Nov 2001, Michael A. Peters wrote: > Ah, OK. So I need to complain that their php is not compiled with the > --with-safe_mode option. > > Thanks! > > On Tue, 13 Nov 2001 18:0

Re: [PHP] Security concerns with Virtual Hosts

2001-11-13 Thread Michael A. Peters
Ah, OK. So I need to complain that their php is not compiled with the --with-safe_mode option. Thanks! On Tue, 13 Nov 2001 18:09:41 -0800 (PST) Rasmus Lerdorf <[EMAIL PROTECTED]> wrote: > This is what safe_mode addresses. > > On Tue, 13 Nov 2001, Michael A. Peters wrote: > > > I am not goin

[PHP] Re: Frames and Sessions

2001-11-13 Thread jimmy elab
Michael Hall wrote: > can't figure out how I'm going to maintain a session across the three > seperate HTML files in the frameset. You don't! PHP and your browser will do it for you. It doesn't matter whether you're in frames or not. All that matters is the cookie that is automagically generated

RE: [PHP] It doesn't cost you anything, why not try it!

2001-11-13 Thread John Huggins
Well, well. They got around the USMail fraud problem so this now only violates several dozen laws. > -Original Message- > From: Saint [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 13, 2001 1:24 AM > To: [EMAIL PROTECTED] > Subject: [PHP] It doesn't cost you anything, why not try i

RE: [PHP] Non-PHP question

2001-11-13 Thread Martin Towell
OK, just found it! window.pageYOffset -Original Message- From: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:25 PM To: [EMAIL PROTECTED] Subject: [PHP] Non-PHP question Sorry about asking a non-PHP question here, but I thought that since I've been helpin

Re: [PHP] for loop problem?

2001-11-13 Thread jimmy elab
Tyler Longren wrote: > > Here's something interesting though. There's an id field that's set to > AUTO_INCREMENT. Yep, and that's one thing I've been looking at. See, I find it strange that you need an KEY idpass (id, passcode(245)) when the ID is quaranteed to be unique in itself. Funny...

RE: [PHP] can php detect whether an email address is a valid one?

2001-11-13 Thread Martin Towell
You can set the "Error-To: " header to some email address that runs a script to remove the email address - other that that, no, not that I know of. -Original Message- From: Alex Chau [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 1:31 PM To: [EMAIL PROTECTED] Subject: [PHP]

[PHP] can php detect whether an email address is a valid one?

2001-11-13 Thread Alex Chau
I have a php script sending newsletter to a mailing list time by time, but some emails are no longer exist, so I need to remove them manually. Can php detect whether an email address is a valid one, then remove it from the list automatically? no matter before or after the newsletter has sent.

[PHP] Non-PHP question

2001-11-13 Thread Martin Towell
Sorry about asking a non-PHP question here, but I thought that since I've been helping others recently, you'll give me a bit of lee-way. In IE, to find out how far down a page is scrolled, you can do "document.body.scrollTop" what's the equivalent in Netscape 6 ? Thanks in advance Martin

Re: [PHP] some questions on sessions (long)...

2001-11-13 Thread Christian Dechery
But what about the session? It get's registered... doesn't sessions also need to send header information? it gets registered... it just doesn't persist... At 17:07 12/11/01 -0800, you wrote: >Your problem probably is including the miec.php from the .shtml >document. Does the .shtml document sen

RE: [PHP] take date and convert to day of year

2001-11-13 Thread Martin Towell
I'm running on WinNT4 w/ PHP 4.0.6 and the code I supplied came back with 333 and for today I get 317 dunno why you're getting 364 anyone, any eye-dears ?? -Original Message- From: sundogcurt [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 12:14 PM To: GENERAL PHP LIST Subje

RE: [PHP] Sending mail from PHP with SMTP server requiring authentication

2001-11-13 Thread Richard Heyes
> Hi gang, > Any one tried to send mail through PHP using mail() through an smtp server > which requires authentication ? http://www.phpguru.org/scripts/10/ -- Richard Heyes "If you have any trouble sounding condescending, find a Unix user to show you how it's done." - Scott Adams -- PHP Gene

Re: [PHP] Security concerns with Virtual Hosts

2001-11-13 Thread Rasmus Lerdorf
This is what safe_mode addresses. On Tue, 13 Nov 2001, Michael A. Peters wrote: > I am not going to mention which host I'm using for obvious reasons. > > However, I'm wondering if it is just a mis-configuration, or if it is a > weakness in php. > > With this host, you initially have the same

[PHP] Security concerns with Virtual Hosts

2001-11-13 Thread Michael A. Peters
I am not going to mention which host I'm using for obvious reasons. However, I'm wondering if it is just a mis-configuration, or if it is a weakness in php. With this host, you initially have the same database password to the MySQL database as you do to the account. It is wise to change both, an

Re: [PHP] silly question

2001-11-13 Thread sundogcurt
Take care to be sure that you make the update, before the rest of the page loads, things happen in order, so it's almost like creating your page backwards (I just had that problem). I can elaborate if you like. (C: [EMAIL PROTECTED] wrote: >Hi list, > >I have PHP code to insert the result of

Re: [PHP] Help! How do i mail a value from a mysql databse?

2001-11-13 Thread David Robley
On Wed, 14 Nov 2001 04:26, Raymond wrote: > Hi! > > I'm trying to send a mail with password to the new user of my website, > but . Does anyone know how to put the variable inside my mail? > > I have tried this: > > --> > else { > > // sende kundeopplysninger til databas

Re: [PHP] fopen and paths

2001-11-13 Thread David Robley
On Tue, 13 Nov 2001 22:28, PACKER, Steffan wrote: > Thanks but I am still having problems, $DOCUMENT_ROOT does not seem to > work(I am using an NT4 server), I cannot use an absolute path as the > content management software that is running has a tendency to strip > them out! > > It seems (to me) t

RE: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-13 Thread Jack Dempsey
David's correct. The reason it wasn't working for you is that you didn't put braces around the code you wanted executed in the if statement. Also, to output large chunks of html in a simple manner with variables included, look into "here docs". They look like this: echo<

Re: [PHP] Re: Can If Else statements be split into code blocks??

2001-11-13 Thread David Robley
On Wed, 14 Nov 2001 11:43, Brad Melendy wrote: > Ok, I figured out that just using echo seems to be the best way to do > this under PHP. In ASP, you can end your code block and start in with > HTML, but I couldn't get that to work with PHP. However, I was able to > just use the echo statement to

Re: [PHP] newbie question about odbc_connect

2001-11-13 Thread David Robley
On Wed, 14 Nov 2001 10:51, Johannes Ambrose wrote: > Hi, > I've been happily using mysql_connect() for various scripts on a linux > box. Now I'd like to connect to a filemaker pro database using > odbc_connect(). However, the response I get is "Call to undefined > function". > > Do I need to compi

[PHP] Re: Can If Else statements be split into code blocks??

2001-11-13 Thread Brad Melendy
Ok, I figured out that just using echo seems to be the best way to do this under PHP. In ASP, you can end your code block and start in with HTML, but I couldn't get that to work with PHP. However, I was able to just use the echo statement to get the conditional HTML I wanted to show up when the

Re: [PHP] take date and convert to day of year

2001-11-13 Thread sundogcurt
I have tried to implement your code Martin, and I do thank you VERY MUCH for the help, but your code seems to have the same trouble as mine, it doesn't matter what date I start with, I end up with 364 as the day of the year, I am on win32 though I don't know if that matters. Here is what I tri

[PHP] newbie question about odbc_connect

2001-11-13 Thread Johannes Ambrose
Hi, I've been happily using mysql_connect() for various scripts on a linux box. Now I'd like to connect to a filemaker pro database using odbc_connect(). However, the response I get is "Call to undefined function". Do I need to compile odbc support? (I thought it was built in.) Is there an inclu

[PHP] Sending mail from PHP with SMTP server requiring authentication

2001-11-13 Thread R'twick Niceorgaw
Hi gang, Any one tried to send mail through PHP using mail() through an smtp server which requires authentication ? Regards R'twick -- 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: Parsing XML

2001-11-13 Thread Manuel Lemos
Hello, Michael Harris wrote: > > Can anybody tell me if there is a way to build an array or some other > means of collecting the attributes from the Start Element Handler so I > can return them back to my main application? Maybe you would like to try this class that does exactly what you need.

Re: [PHP] Adding Dates (To Obtain Future Dates)

2001-11-13 Thread David Robley
On Wed, 14 Nov 2001 07:21, Robert Miller wrote: > This problem took a while to figure out. I'm posting the solution so > that = other's may find this example. If you know of a better way, > please reply. = > > :-) > > Cheers, > > Rob > > Problem: Generate Future Dates: > Sub-Problem: Future Dates

Re: [PHP] javascript to php ???? THANKS =)

2001-11-13 Thread fitiux
Thanks to all for help me.. =) I hope to help someone soon. --Patricio.

RE: [PHP] javascript to php ???????

2001-11-13 Thread Martin Towell
That's why I put quotes around the words - obviously a function would be need to be written to do the "serialising" and a corresponding php function to retrieve the values and place them into an array again. -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Wednesday, Novembe

Re: [PHP] javascript to php ???????

2001-11-13 Thread Richard S. Crawford
Why, sure! In your FORM tag, use ACTION="test.php". You can send your JavaScript variable as part of the form, in a hidden form field such as INPUT TYPE="hidden" VALUE=myValue. The value of the variable will be available the next time test.php shows up as $myValue. You can then manipulate i

[PHP] Parsing XML

2001-11-13 Thread Michael Harris
Can anybody tell me if there is a way to build an array or some other means of collecting the attributes from the Start Element Handler so I can return them back to my main application? Thanks for any help, -Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] javascript to php ???????

2001-11-13 Thread Mark
On Wed, 14 Nov 2001 10:16:42 +1100, Martin Towell wrote: >"serialise" the array and make the "value" of a hidden field this >value. >Then in PHP "unserialise" it. that would work great if it were a php array, but I believe we're talking about javascript arrays here. :) >-Original Message

Re: [PHP] javascript to php ???????

2001-11-13 Thread Mark
On Tue, 13 Nov 2001 20:17:32 -0300, fitiux wrote: > >>Hi =) >>>is it possible to pass a javascript array to php ??? > >>by the time javascript comes into play, php has already done it's >>job >>and left the building. If you mean can javascript pass variables >>to a >>new request for php to h

RE: [PHP] javascript to php ???????

2001-11-13 Thread Martin Towell
"serialise" the array and make the "value" of a hidden field this value. Then in PHP "unserialise" it. -Original Message- From: fitiux [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 10:18 AM To: PHP General Cc: [EMAIL PROTECTED] Subject: Re: [PHP] javascript to php ???

Re: [PHP] javascript to php ???????

2001-11-13 Thread fitiux
>>Hi =) >>is it possible to pass a javascript array to php ??? >by the time javascript comes into play, php has already done it's job >and left the building. If you mean can javascript pass variables to a >new request for php to handle, then sure. Thanks for your reply. =) I have a little

[PHP] silly question cont...

2001-11-13 Thread Rodrigo Peres
Sorry all, just to add a little info, the inpu hidden i've mentioned in the other message is made if exist the id in the url!! it isn't all the time there :-) thks again Rodrigo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

RE: [PHP] silly question

2001-11-13 Thread Martin Towell
try adding the "nocache" header() calls to the page to force the broswer to refresh. See how that goes Martin T -Original Message- From: Rodrigo Peres [mailto:[EMAIL PROTECTED]] Sent: Wednesday, November 14, 2001 9:43 AM To: PHP Subject: [PHP] silly question Hi list, I have PHP code t

Re: [PHP] javascript to php ????

2001-11-13 Thread Mark
On Tue, 13 Nov 2001 19:53:48 -0300, fitiux wrote: >Hi =) > >is it possible to pass a javascript array to php ??? by the time javascript comes into play, php has already done it's job and left the building. If you mean can javascript pass variables to a new request for php to handle, then sure.

[PHP] javascript to php ????

2001-11-13 Thread fitiux
Hi =) is it possible to pass a javascript array to php ??? thanks.

[PHP] silly question

2001-11-13 Thread Rodrigo Peres
Hi list, I have PHP code to insert the result of a form into mysql. When I nedd to made an update, I pass an "id" in the url and use it to make the update query. The problem is after I click in the update button (input submit) my page refresh and came back in the same state, to see the changes I

RE: [PHP] take date and convert to day of year

2001-11-13 Thread Martin Towell
looking at the manual, getdate() is meant to be passed a unix time stamp, so, you'll need to use strtotime() first thus: $utime = strtotime("30-Nov-1971"); $dob = getdate($utime); $dobnum = $dob['yday']; print $dobnum; Notice I changed the format of the date, when I tried using the original form

Re: [PHP] Re: $QUERY_STRING

2001-11-13 Thread John Steele
Hi Ernesto, Try taking a look at the HTTP_SERVER_VARS array: test.php?1 HTTP_SERVER_VARS["argc"] = 1 HTTP_SERVER_VARS["argv"] = array([0] => test) XPerience the new windows (scary!) :) John > >Nop. getenv("QUERY_STRING") also returns an empty string. >The crazy thing is that getenv retur

Re: [PHP] Problems with headers in redirect

2001-11-13 Thread John Steele
Hi Richy, Try sending the content header before the location header: header("Content-type: image/jpeg"); header("Location: http://yourhost.com/yourfile.jpg";); HTH, John >Hi, I'm hoping someone can help me with this one... > >I'm doing redirects to various types of file (Flash, Office, DWF

Re: [PHP] Frames and Sessions

2001-11-13 Thread Rodolfo Gonzalez
On Tue, 13 Nov 2001, Martín Marqués wrote: > > I have tried starting a session in the main frameset file, then adding > > to the URLs of the frame files, which sort of works but breaks > > where JavaScript is used for buttons in one of the frames. JavaScript > > doesn't seem to cope with the PHP

Re: [PHP] getrusage() not supported

2001-11-13 Thread Larry Jeannette II
According to the docs, it says to check your systems man pages for getrusage. Since they appear to referencing *nix system (no man in NT), my guess is that NT does not support it. In fact, executing getrusage at the NT command prompt gives the 'not recognized internal or external command' error.

[PHP] take date and convert to day of year

2001-11-13 Thread sundogcurt
Hi guys, I know that you can take todays date and display it as the numeric day of the year, 1 - 365 / 0 - 364 etc. But can you take a date such as (November-30-1971) and convert that to the numeric day of the year? I have been trying to do this but have had no joy, I don't think my code is ev

[PHP] PDF Library Not Working (Call to undefined function)

2001-11-13 Thread Robert Miller
I RTFM but did not find a solution. My head hurts from banging it against = the wall. :-P Apache, OpenSSL, MySQL and PHP work fine... but the PDF libraries will not = work. I used the following configure commands: PHP: './configure' '--with-mysql=3D/usr/local/mysql/' '--with-xml' = '--with-apac

[PHP] Adding Dates (To Obtain Future Dates)

2001-11-13 Thread Robert Miller
This problem took a while to figure out. I'm posting the solution so that = other's may find this example. If you know of a better way, please reply. = :-) Cheers, Rob Problem: Generate Future Dates: Sub-Problem: Future Dates are Dictated by Record Type (Permanent or = Temporary) The Script: $

[PHP] PATH_INFO and the ' / ' (search friendly URLs)

2001-11-13 Thread Andy
Hi there, I am trying to put after .php an information like: .php/1234 This is because I am trying to build a searchfriedly URL like described in http://www.zend.com/zend/spotlight/searchengine.php#3 The problem is... it does not work I get an server error. As soon as there is a slash and info

[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg
1.7303379774094 seconds with strtr() 1.557923078537 seconds with preg_replace() 1.494078040123 seconds with str_replace() 1.4984160661697 seconds with ereg_replace() /* source ---8<---*/ " => "PRE", ""=>"LI", " "TABLE ROW START", "" => "BOLD", " "TABLE CELL START"

[PHP] explain these testresults (search/replace)

2001-11-13 Thread Niklas Fondberg
1.7303379774094 seconds with strtr() 1.557923078537 seconds with preg_replace() 1.494078040123 seconds with str_replace() 1.4984160661697 seconds with ereg_replace() /* source ---8<---*/ " => "PRE", ""=>"LI", " "TABLE ROW START", "" => "BOLD", " "TABLE CELL START"

Re: [PHP] Re: $QUERY_STRING

2001-11-13 Thread Ernesto
Nop. getenv("QUERY_STRING") also returns an empty string. The crazy thing is that getenv returns an empty string instead of FALSE. Anyway, if I do "index.php?a=1", I get HTTP_GET_VARS['a']==1, but $QUERY_STRING is still empty :( dav wrote: > Try getenv() function to import the query string fr

[PHP] EXPIRATION PROBLEM; PLEASE HELP ME !!!

2001-11-13 Thread Gustavo Luis Pereira Verly
- Original Message - From: "Gustavo Luis Pereira Verly" <[EMAIL PROTECTED]> To: "PHP" <[EMAIL PROTECTED]> Sent: Tuesday, November 13, 2001 2:26 PM Subject: [PHP] Expiration problem > Hi everybody, this is my first time writing in this list. > > I have the next problem: > > I have a page

[PHP] Re: $QUERY_STRING

2001-11-13 Thread dav
Try getenv() function to import the query string from apache ambient. This is not a bug, maybe the index.php?1 isn't standard at all. "Ernesto" <[EMAIL PROTECTED]> ha scritto nel messaggio [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Hi, > > I'm a newbie using Apache 1.3.22 and PHP 4.0.6 on Wi

[PHP] getrusage() not supported

2001-11-13 Thread Daniel Berwig
I'm trying to run a script in my server (IIS 5) that uses the function getrusage(), but it returns the following warning: Warning: getrusage() is not supported in this PHP build in file_name.php on line 377 Does anyone know how I can solve this problem? Thanks in advance. -- PHP General Ma

[PHP] $QUERY_STRING

2001-11-13 Thread Ernesto
Hi, I'm a newbie using Apache 1.3.22 and PHP 4.0.6 on Windows. I'm trying to access the $QUERY_STRING var, but it's empty even when I do have a query string. On one server (Win2K), it works ok. On the other server (WinXP) it's always empty. If I use "index.php?s=1", $HTTP_GET_VARS['s'] is 1, b

Re: [PHP] I Need To Upload Massive Huge Files : 20Mb

2001-11-13 Thread The Big Roach
Thanks Sebastian, I'll take a look at our proxy logs. I've also discovered a perl script deep in the bowels of our servers which seem to be a problem. Here's an error log excerpt: POPSTACK panic: POPSTACK panic: POPSTACK panic: POPSTACK panic: POPSTACK panic: POPSTACK [Tue Nov 13 13:26:57 2001]

AW: [PHP] I Need To Upload Massive Huge Files : 20Mb

2001-11-13 Thread Sebastian
Hi We encountere some problems with our Squid-Proxy. When we user direct internet connection the sky was the limit, but with our Proxy, the limit was 2MB... Sebastian > -Ursprüngliche Nachricht- > Von: The Big Roach [mailto:[EMAIL PROTECTED]] > Gesendet: Dienstag, 13. November 2001 17

[PHP] Basic handling of pre 1901 dates

2001-11-13 Thread George Whiffen
I'm feeling dumb! The Basic Problem = Basically all I want to do is to output each day in turn from 1900 i.e. 01-Jan-1900 02-Jan-1900 03-Jan-1900 etc. But date() won't accept dates pre 13-Dec-1901 and mktime doesn't like anything pre 01-Jan-1970. I know I can get mysql to do t

RE: [PHP] Re: is_null misses spaces... another solution?

2001-11-13 Thread Johnson, Kirk
A space is a valid string. Are you sure there is a space? "; } else { echo "a is not blank"; // this is printed } if(is_null($a)) { echo "a is null"; } else { echo "a is not null"; // this is printed } ?> Kirk > > I need to check variables for blank values but it appears > that is_n

[PHP] Help! How do i mail a value from a mysql databse?

2001-11-13 Thread Raymond
Hi! I'm trying to send a mail with password to the new user of my website, but . Does anyone know how to put the variable inside my mail? I have tried this: --> else { // sende kundeopplysninger til databasen $db = mysql_connect("localhost", "root"); mysql_sel

[PHP] Re: is_null misses spaces... another solution?

2001-11-13 Thread Julio Nobrega Trabalhando
trim(); it before? -- Julio Nobrega No matter where you go, &this. "Spunk S. Spunk III" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I need to check variables for blank values but it appears that is_null and > =="" return true if there is a space. > > Any

RE: [PHP] User Authentication

2001-11-13 Thread Matt Schroebel
Caveat: Don't forget to escape user input before sending to SQL. Those samples leave that part to your imagination. Bad guys might take advantage of that :) > http://www.google.com/search?q=php+mysql+user+authentication&b tnG=Google+Search > > First hit's a winner :) > > -- PHP General M

[PHP] is_null misses spaces... another solution?

2001-11-13 Thread Spunk S. Spunk III
I need to check variables for blank values but it appears that is_null and =="" return true if there is a space. Any other suggestions? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To cont

RE: [PHP] Variable definitions...

2001-11-13 Thread Neil Kimber
BTW, the official explanation is wrong. "local part this variable is destroyed and declared again" is incorrect. The global variable is not destroyed. The local namespace pushes the variable name onto the stack and gives it a value for the duration of the function. Every time you try and access

[PHP] Expiration problem

2001-11-13 Thread Gustavo Luis Pereira Verly
Hi everybody, this is my first time writing in this list. I have the next problem: I have a page called login.php and when I log in, there's a new page who receive the user and the password, and this page is called main.php This page, check if the user have a valid account a

Re: [PHP] Variable definitions...

2001-11-13 Thread Chris Hobbs
Hi Stephan, IMHO, I think the answer requested is the only one that really makes sense - as soon as I read it, _my_ first thought went to scope. If a variable changes values, the other value is no longer usable, and thus there aren't really two variables with the same name in that case. When

Re: [PHP] User Authentication

2001-11-13 Thread Chris Hobbs
http://www.google.com/search?q=php+mysql+user+authentication&btnG=Google+Search First hit's a winner :) Damien Burke wrote: > Hi, > > Can anyone recommend a good place on the web to learn about user > authentication. > I want users of my site to login with a username & password - once they are

[PHP] Advice Needed

2001-11-13 Thread Joe Van Meer
Hi there. I have a small php app connected to sqlServer db. The app is used as a code library for various programming languages. Basically, a code repository. My problem is this, I would like to be able to insert the code for a function (the actual code) into the db. However, I keep running into

[PHP] User Authentication

2001-11-13 Thread Damien Burke
Hi, Can anyone recommend a good place on the web to learn about user authentication. I want users of my site to login with a username & password - once they are logged in they can see information customised to each separate user. Without being logged in the won't see any valuable information. Esp

RE: [PHP] Re: Empty form variables when uploading, Help please???

2001-11-13 Thread Warren Vail
Interesting because I have used multiple submit buttons on forms for years. Each can have a different name, and even if I use the same name for all of them, which I often do, each can have a separate value. Each will cause all other form fields to transmit their variables in their usual manner, b

[PHP] Re: matches problem ("preg_match")

2001-11-13 Thread _lallous
viele Grüße, lallous! "Ewald Schoeller" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > hello > we want to save every word of a text in an array field. > we want to solve the problem without "split". > > Here's our code: > > $str="eins zwei drei vier fünf sech

Re: [PHP] matches problem ("preg_match")

2001-11-13 Thread Valentin V. Petruchek
Try this code: $str="eins zwei drei vier fünf sechs"; $Wort = explode (' ',$str); $n=count($Wort); for($i=0;$i<$n;$i++){echo "$i: $Wort[$i]";} It should works Zliy Pes [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additi

[PHP] matches problem ("preg_match")

2001-11-13 Thread Ewald Schoeller
hello we want to save every word of a text in an array field. we want to solve the problem without "split". Here's our code: $str="eins zwei drei vier fünf sechs"; preg_match("'(\w+)(\s+\w+)*'",$str,$Wort); $n=count($Wort); for($i=0;$i<$n;$i++){echo "$i: $Wort[$i]";} The result is: 0: eins zwe

Re: [PHP] Serial Port Programing

2001-11-13 Thread Ernesto
Brian C. Doyle wrote: > Hello all, > > Does PHP have the ability to control a serial port? I see we can use > the Printer but that was All I saw. > > > I guess you may fopen COM1: or COM2: You should be able to fopen PRN: or LPT1: as well. -- PHP General Mailing List (http://www.php.ne

Re: [PHP] PHP versus all other languages

2001-11-13 Thread Olexandr Vynnychenko
Hello Pat, Tuesday, November 13, 2001, 4:10:31 AM, you wrote: PH> I'm doing my senior exit project on database languages online. I'm asking PH> for help from anyone who can provide any information on the comparison PH> between the different languages. I'm comparing languages such as PHP, ASP, PH

[PHP] Variable definitions...

2001-11-13 Thread Stephan
Hello, first of all I didn't exactely know where the right place is to ask this question. Well, my problem is that I just had some exams and am very unhappy on how certain things were rated. There's especially one question and I try to translate it as exact as possible: When is it possible tha

RE: [PHP] cron not allowed

2001-11-13 Thread Caspar Kennerdale
thanks for the ideas -Original Message- From: Jack Dempsey [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 15:23 To: Jon Haworth; [EMAIL PROTECTED] Subject: RE: [PHP] cron not allowed thanks jonwas more of a 'how are you going to' rather than 'how is it possible' :-) e

[PHP] Re: Re: Empty form variables when uploading, Help please???

2001-11-13 Thread Alexander Weber
The Big Roach wrote: > > In a form you can't really have 2 submit buttons. > Either a submit submits or it is just a button. > That's because the var name is already submit (check out your > http_post_vars). > And you have it twice! > Change one of them and make it just a button (HTML4). > Rechec

[PHP] I Need To Upload Massive Huge Files : 20Mb

2001-11-13 Thread The Big Roach
Fans! I need your help, but first you must worship me. Does PHP have a flakey file upload limit? Or what could be wrong? max_upload_size and all that is set to 32Mb. post_max_size is also set to 32Mb. max_exec_time is set to 0 (unlimited). apache's timeout is set to 1800 (30 mins). And my 6Mb o

RE: [PHP] Re: Empty form variables when uploading, Help please???

2001-11-13 Thread PACKER, Steffan
another option could be to make the choice between delete and update two radio buttons with the same name and just have the one submit button, then add extra logice to your PHP script to either delete or update depending on the value of this field. good luck! Steffan -Original Message- F

[PHP] Re: Empty form variables when uploading, Help please???

2001-11-13 Thread The Big Roach
In a form you can't really have 2 submit buttons. Either a submit submits or it is just a button. That's because the var name is already submit (check out your http_post_vars). And you have it twice! Change one of them and make it just a button (HTML4). Recheck your post-vars. This should help. O

RE: [PHP] cron not allowed

2001-11-13 Thread Jack Dempsey
thanks jonwas more of a 'how are you going to' rather than 'how is it possible' :-) either way, from lynx or from php being a cgi a simple shell script or perl script should be able to make the appropriate call... jack -Original Message- From: Jon Haworth [mailto:[EMAIL PROTECTED]] S

Re: [PHP] Mysql and Images

2001-11-13 Thread Stefan Rusterholz
If I understand you right, then what you want is just impossible. You have to give a source as filepath. You can't put the binary picture data into the same output. What you could is to have a file which calls itself with params telling it to output now the image instead of the html e.g. example.p

[PHP] RE: server side games question

2001-11-13 Thread Brinkman, Theodore
PHP will do fine. What's the project? I'm a wannabe game developer, and I had a bit of fun a few months back with randomly generated, but reproducable, game worlds (in my case it was a star map for a space conquest type of game). It's a really neat concept, and its how alot of the 'big world' g

[PHP] URL Headers - Retrieval

2001-11-13 Thread HEW Staff
I currently have a script which gathers information from a site, adds a new variable and then resubmits it as a post back to the originating script. I need to gather the header information from the final response to categorise the errors received. At the moment the error I get is not consistant w

RE: [PHP] cron not allowed

2001-11-13 Thread Jon Haworth
> how did you plan on running php from cron? Well, this works for me: 0 3 * * * lynx -dump http://mysite.com/mypage.php > /dev/null HTH Jon ** 'The information included in this Email is of a confidential nature and is inten

  1   2   >