[PHP] MySQL

2002-02-05 Thread jtjohnston
In MySQL, I have a date field that is formatted 000-00-00 Is there a function in PHP I did not find yet that does this? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: MySQL

2002-02-05 Thread jtjohnston
$date = date (Y-m-d); #works? :) Jtjohnston wrote: In MySQL, I have a date field that is formatted 000-00-00 Is there a function in PHP I did not find yet that does this? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] PHP script for command line

2002-02-05 Thread Alex Shi
I am now trying to use php script from command line. Everything is Ok except only one thing: it will always send out header msg. How can stop it from sending header? Alex Shi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] date( ) - function

2002-02-05 Thread soma
i have one question linux system's time is right but php's date () function time is wrong... different system time and php's date( ) time is date () function call to the system time ? thansk /soma -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] 72dpi with gdlibrary2?

2002-02-05 Thread Andy
Hi there, I would like to create images with 72 dpi with gdlibrary2.01 Is this possible? Thanx Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Limit 15 where Newest

2002-02-05 Thread Tim Ward
If (!$start) $start=0; $sql=select author, title, chapter from table order by date DESC limit $start, 15; ... and a link on the same page: echo(a href='samepage?start= . ($start + 15) . 'next/a); or something like that Tim

Re: [PHP] PHP script for command line

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 00:36, Alex Shi wrote: I am now trying to use php script from command line. Everything is Ok except only one thing: it will always send out header msg. How can stop it from sending header? Alex Shi There are full instructions in the manual. Essentially, you are

Re: [PHP] date( ) - function

2002-02-05 Thread Mike Maltese
try date(H:i:s,time()). Mike - Original Message - From: soma [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 12:32 AM Subject: [PHP] date( ) - function i have one question linux system's time is right but php's date () function time is wrong...

[PHP] cURL

2002-02-05 Thread Sandeep Murphy
Hi, Can anyone point me out to some good resources on cURL?? Have to send 3 fields, Action,Username and Password for authentification to a Servlet and receive its response.. TIA, sands -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Compare values in an array

2002-02-05 Thread Rainer
Can anybody tell me how I easily compare values in an associative array? I have for instance an array like: $foo['key1'] = 'abc'; $foo['key2'] = 'def'; $foo['key3'] = 'abc'; $foo['key4'] = 'ghi'; and I want to get the value 'abc' ... Please send me an email ([EMAIL PROTECTED]) because my

[PHP] Re: HTTP Error 405 using POST method

2002-02-05 Thread Rainer
In your example I see that you forgot /head after your /title ... maybe that's the problem! Scott Adams [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi. I'm learning PHP3 on an IIS 4.0 box and I started by trying out this simple HTML form. The form lets the

[PHP] Tricky array question

2002-02-05 Thread Andy
Hi there, I have a tricky array question. My app is passing via post a array variable called glacier. Now I am checking for the content of this array. Because there are more of those arrays, I am getting all the names out of a db. How is it possible to get the value and keep the name of the

Re: [PHP] Tricky array question

2002-02-05 Thread Edward van Bilderbeek - Bean IT
try using something like this: $varname = $categories[0]; echo ${$varname}[0]; Greets, Edward Andy [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED]... Hi there, I have a tricky array question. My app is passing via post a array variable called glacier. Now I am

RE: [PHP] Tricky array question

2002-02-05 Thread Niklas Lampén
It should be $category[0] = $glacier; ^--- ERROR in you code Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. helmikuuta 2002 11:59 To: [EMAIL PROTECTED] Subject: [PHP] Tricky array question Hi there, I have a tricky array

[PHP] Re: Tricky array question

2002-02-05 Thread Rainer
Hi Andy, I was just reading your message, do I see that you send an array with a form? Like input name=glacier[x] ? I just wanted you to know that using brackets [] is not allowed in the html-name attribute! Your html-page will not validate :( The sollution is sending al your vars as simple

[PHP] Find the nearest dealer in Germany on a given ZIP (PLZ)

2002-02-05 Thread Markus Straessle
Hi List ! I have a question on a topic that's been dealt with here before (but only for the US). I am looking for a soultion to find - via php /database - a way to search for the shortest distance between a given ZIP Code and available dealers nearby. So, let's assume I am living in German ZIP

Re: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Yasuo Ohgaki
If you really need to use 4.0.6, try to use different session save handler and/or serializer. Try WDDX serializer at first, then try verious combinations. If you use other save handler/serializer, it may work. I suggest you to upgrade, though... -- Yasuo Ohgaki Travis Simpson wrote: Sorry, I

[PHP] Re: Tricky array question

2002-02-05 Thread Andy
Hello Rainer, what kind of disadvantages do I take with me, if my form does not validate? Is this a problem because of the spiders, or the functionality? It works fine so far on all browsers I know. Can you please give more details? Thanx Andy Rainer [EMAIL PROTECTED] schrieb im Newsbeitrag

RE: [PHP] Re: Tricky array question

2002-02-05 Thread Niklas Lampén
I think you should ignore that. I use it all the times, and it works fine. Niklas -Original Message- From: Andy [mailto:[EMAIL PROTECTED]] Sent: 5. helmikuuta 2002 12:37 To: [EMAIL PROTECTED] Subject: [PHP] Re: Tricky array question Hello Rainer, what kind of disadvantages do I

Re: [PHP] Re: Tricky array question

2002-02-05 Thread val petruchek
Hello! a have following mysql problem: i need to execute several inserts at one query like this- $sql-action(insert into words(word) values ('php'); insert into words(word) values ('general'); insert into words(word) values ('list');); The word fild is unique My problem is: when certain word

Re: [PHP] Tricky array question

2002-02-05 Thread Andy
This was just an error in my explenation I ment categories. Meanwhile I tryed var vars, but it does not work for any reason?!?!? My code looks like: $field = $categories[0].[0]; echo $field;// returns glacier[0] echo 'var '.$$field.'br'; // returns bluddy

Re: [PHP] Re: Tricky array question

2002-02-05 Thread Andy
Put an @ infront of your comand Andy Val Petruchek [EMAIL PROTECTED] schrieb im Newsbeitrag 000801c1ae32$6fc1e360$[EMAIL PROTECTED]">news:000801c1ae32$6fc1e360$[EMAIL PROTECTED]... Hello! a have following mysql problem: i need to execute several inserts at one query like this-

[PHP] Seams not to be possible

2002-02-05 Thread Andy
This was just an error in my explenation I ment categories. Meanwhile I tryed var vars, but it does not work for any reason?!?!? My code looks like: $field = $categories[0].[0]; echo $field;// returns glacier[0] echo 'var '.$$field.'br'; // returns bluddy

[PHP] mysql fails

2002-02-05 Thread val petruchek
Sorry, incorrect subj! Hello! a have following mysql problem: i need to execute several inserts at one query like this- $sql-action(insert into words(word) values ('php'); insert into words(word) values ('general'); insert into words(word) values ('list');); The word fild is unique My problem

RE: [PHP] Tricky array question

2002-02-05 Thread Niklas Lampén
Ahem... So you want to have a two dimensional variable? ? $Array = array(110, 220); // You array to add to $TwoDimensional array $TwoDimensional = array(); // Define $TwoDimensional to be an array $TwoDimensional[0] = $Array; // Insert values from $Array to $TwoDimensional print Var:

[PHP] Re: Tricky array question

2002-02-05 Thread Rainer
Hi Andy, What Niklas wrote is true, at this moment it works fine, but. when I write code, I always ask myself which factors are constant and still will work in, let's say, about 3 years from now. The fact is that you cannot know which kind of useragents (read browsertypes) there will be in

[PHP] add value to serialized array?

2002-02-05 Thread Bas Jobsen
Hi, At start test.txt contains a serialized array with value one and two. a:2:{i:0;s:3:one;i:1;s:3:two;} after one run this is: a:3:{i:0;s:3:one;i:1;s:3:two;i:2;s:4:tree;} But the last row prints nothing. Why? Tnx, Bas ? $array=array(); $fp=fopen(test.txt,r); flock($fp,1);

Re: [PHP] mysql fails

2002-02-05 Thread DL Neil
Hello val, a have following mysql problem: i need to execute several inserts at one query like this- $sql-action(insert into words(word) values ('php'); insert into words(word) values ('general'); insert into words(word) values ('list');); The word fild is unique My problem is: when

[PHP] Sending files to the user...?

2002-02-05 Thread Alan McFarlane
The problem: How to I send a file to the user? Sounds simple but, assume I have a 'daily report' option from my main web page. When the user clicks on it, they are taken to the file 'generate_report.php' (sample included). Now, this code should generate the report, compress it if required and

[PHP] Re: Sending files to the user...?

2002-02-05 Thread Alan McFarlane
Oh, and BTW, after sending the file, I will be redirecting the user to a different page... Alan McFarlane [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... The problem: How to I send a file to the user? Sounds simple but, assume I have a 'daily report' option

RE: [PHP] Re: Sending files to the user...?

2002-02-05 Thread Jerry Verhoef (UGBI)
Your are on the right track. Using the Header function is the way to do it. But I guess you forget to take a look at the manual page. There are all questions that you ask answered :) So take a look http://www.php.net/manual/en/function.header.php . in short: RFC:

[PHP] Name of file included

2002-02-05 Thread Ron Dyck
I need to access the name of a file included. ie: in index.php I've included various files, among them navigation.inc. Instead of manually typing !--navigation.inc-- at the top of everyfile, I'd like to use something like: !--$included_file-- === Ron Dyck

[PHP] How do I find double values in an associative array

2002-02-05 Thread Rainer
Hello group, Can anybody tell me how I easily compare values in an associative array? I would like to find double values I have for instance an array like: $foo['key1'] = 'abc'; $foo['key2'] = 'def'; $foo['key3'] = 'abc'; $foo['key4'] = 'ghi'; and I want to get the value 'abc' ... Please

RE: [PHP] How do I find double values in an associative array

2002-02-05 Thread Jerry Verhoef (UGBI)
http://www.php.net/manual/en/function.array-count-values.php Jerry I feel like a manual... -Original Message- From: Rainer [mailto:[EMAIL PROTECTED]] Sent: Tuesday, February 05, 2002 2:51 PM To: [EMAIL PROTECTED] Subject: [PHP] How do I find double values in an associative array

Re: [PHP] How to get the URL into a var?

2002-02-05 Thread J.F.Kishor
hi, I don't know whether this will solve your problem, but the following prints the full path of the file that is being used. script language=php $uri = getenv('REQUEST_URI'); $path = $HTTP_SERVER_VARS[PATH_TRANSLATED]; // This prints /~user/subapp/test.php echo br$uribr; //

[PHP] Getting variables from a text file

2002-02-05 Thread David Orn Johannsson
I have this text file I have to retreve infromation from, in the fallowing format: date1=1/1/2002title1=some titleheadline1=some headlinefull1=full articledate2=2/1/2002title2=some title and so on what would be the best thing for me to do to if I was to get the values of all the

[PHP] Unable to get ImageTTFText output

2002-02-05 Thread Neil Freeman
Hi there, I am trying to use the ImageTTFText function to output some text onto an existing image. Problem being though that the text does not get outputted. I have placed the ttf file 'arial.ttf' within the same directory as my script. Here is a snippet of my code: Header(Content-Type:

[PHP] Change of Language

2002-02-05 Thread Nicolas Llamosas
How can in change the language in my site? (spanish) for example using the function date. (LANG?) Thanks Nicolás Llamosas _ MSN Photos es la manera más sencilla de compartir, editar e imprimir sus fotos favoritas.

Re: [PHP] Change of Language

2002-02-05 Thread Edward van Bilderbeek - Bean IT
check out: setlocale() Greets, Edward - Original Message - From: Nicolas Llamosas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 4:13 PM Subject: [PHP] Change of Language How can in change the language in my site? (spanish) for example using the function

[PHP] Mysql

2002-02-05 Thread Roman Duriancik
Pleae help me ! I need delete record from table user.mysql in mysql database, i log on in mysql like root and I log on on linux server like root. But when I write command : delete from user where user=''; mysql send me error message : ERROR 1036 Table 'user; is read only ! Thans for

[PHP] PHP module build problem

2002-02-05 Thread Anas Mughal
I am trying to build PHP3 into apache 1.3. I have vanilla PHP and Apache sources. When I do the final Apache 'make', I get an error message complaining about not able to find target for alloc.h. The 'alloc.h' file is declared as a dependency for 'mod_php3.o' in the Makefile in folder

Re: [PHP] Unable to get ImageTTFText output

2002-02-05 Thread Girish Nath
Hi I had similar problems when just specifying the font file in the same directory eg ./arial.ttf but got it to work okay when i used the full path eg : $fontfile = /apache/htdocs/arial.ttf; ImageTTFText($im, 20, 0, 3, 3, $text_colour, $fontfile, My text); Regards Girish --

RE: [PHP] testing for cookies on the server side (again, still can't get my head around it)

2002-02-05 Thread Johnson, Kirk
So what's the flow of code to test for cookies on the server side? I'm pretty sure that the only way is to set a cookie, then test for it. That is pretty much it. On the first page request to your application, if PHP encounters a session_start() in your code, it will return a cookie named

Re: [PHP] Getting variables from a text file

2002-02-05 Thread Girish Nath
Hi It looks like a querystring, so read the contents of the file into a variable, then use the parse_str() function on that variable, you can specify if you want them to be stored in an array too. http://www.php.net/manual/en/function.parse-str.php Regards Girish -- www.girishnath.co.uk

[PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Edward R. Bailey
Hi, I am working on a page the displays the output of a query in a table and I only want to show the field labels that have corresponding output from the database. I am only really concerned with the last label in the table. The label is called Notes and the corresponding field in the database

[PHP] PHP / MYSQL security bug

2002-02-05 Thread Gerard Onorato
Maybe I missed the thread but I was wondering if anyone has seen this report or done any testing on it. We tested it and it seems a pretty valid problem. Can anyone comment on a fix that may be in the works? Gerard -

[PHP] Re: PHP module build problem

2002-02-05 Thread Anas Mughal
I just saw a posting on PHPBuilder that states that Apache 1.3.14 has changed alloc.h to ap_alloc.h. So, file renaming is suggested. Maybe that could fix the problem. (I will give it a try...) I would be open to any other suggestions... Thanks. --- Anas Mughal [EMAIL PROTECTED] wrote: I am

[PHP] Check if var is a domain name

2002-02-05 Thread Brandon Orther
Hello, Does anyone know a function or how I could make a function to check a variable for being a valid domain name without the www. http://www./ In fron of it? Ex. $var = mynewdomain.com that would be TRUE Ex2. $var = www.mynewdomain.com that would be FALSE Ex3. $var = My Great

[PHP] What can I ask here?

2002-02-05 Thread Scott
Just want to make sure I am in the right forum... I am new to PHP and will be doing alot of coding with it in the near future. So I will be asking alot of newb questions... Thanks, Batch -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] What can I ask here?

2002-02-05 Thread Girish Nath
Hi You'll find the mailing list archive an excellent source of info : http://marc.theaimsgroup.com/?l=php-generalr=1w=2 Regards :) Girish -- www.girishnath.co.uk - Original Message - From: Scott [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, February 05, 2002 4:07 PM

Re: [PHP] What can I ask here?

2002-02-05 Thread Jason Lotito
You can also find good information for PHP here: www.phpdeveloper.org www.phpbuilder.com www.newbienetwork.net www.phpbeginner.com www.php.net // of course =) www.devshed.com Jason Lotito Programmer Developer Clockmedia Inc. Designing Tomorrow's Games, Today! 1-877-625-6256 514-908-2800 Fax:

RE: [PHP] PHP / MYSQL security bug

2002-02-05 Thread James Cox
The PHP developers are aware of this, and are working with MySQL to make it safer. it should be noted that PHP safe mode, whilst making the environment generally safer, is not an easy-answer to webserver security. The only real solution is to learn about better security and configuration.

Re: [PHP] PHP / MYSQL security bug

2002-02-05 Thread Analysis and Solutions
Hi Folks: Gerard Onorato wrote on the PHP-GENERAL mailing list: Security Advisory DW020203-PHP Release: 3rd February 2002 PHP Safe Mode Filesystem Circumvention Problem ... snip ... FIX Currently, no fix exists. ... snip ... A suggested fix for the PHP developers might be to scan

Re: [PHP] Check if var is a domain name

2002-02-05 Thread Jeff Sheltren
Hi, I would use a regular expression to check it. This is a pretty general one, but I think it should do the trick. It searches for 1 or more upper or lowercase letters, followed by a literal dot, followed by 2 or 3 lowercase letters. Of course there are valid domains that would not match

Re: [PHP] Unable to get ImageTTFText output

2002-02-05 Thread Neil Freeman
Girish, After a bit of searching around it appears that this is a bug of early versions of PHP, re-introduced in PHP v4.0.6 (the version I was using). I have upgraded to 4.10 and ImageTTFText now works fine. Neil Girish Nath wrote: Hi I had similar problems when just specifying the font

Re: [PHP] What can I ask here?

2002-02-05 Thread Dave
Don't forget about www.phpguru.org www.hotscripts.com Two other great sites for information and sample scripts. Dave Jason Lotito [EMAIL PROTECTED] wrote in message 037201c1ae61$b7e25a10$3b0a@JASON">news:037201c1ae61$b7e25a10$3b0a@JASON... You can also find good information for PHP

Re: [PHP] add value to serialized array?

2002-02-05 Thread Bas Jobsen
Hello, OKay, when i replace the last rows with: $fp=fopen(test.txt,r); flock($fp,1); $array=array_merge($array,unserialize(fread($fp,filesize(test.txt; flock($fp,3); fclose($fp); it works. But now i want to place this in a class, and it goes wrong again. Hope you can help, thanks, Bas

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Peter Ruan
Hi Jason, Yeap, I ran 'phpinfo()' Server API=CGI. I look at the manual and you are right, I must run it as Apache module. Can someone tell me how do I change the setting to run as an APACHE module instead? Thanks, -Peter Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL

Re: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 00:03, Edward R. Bailey wrote: Hi, I am working on a page the displays the output of a query in a table and I only want to show the field labels that have corresponding output from the database. I am only really concerned with the last label in the table. The

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 01:52, Peter Ruan wrote: Hi Jason, Yeap, I ran 'phpinfo()' Server API=CGI. I look at the manual and you are right, I must run it as Apache module. Can someone tell me how do I change the setting to run as an APACHE module instead? Well, you don't change the

Re: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 02:14, Edward R. Bailey wrote: Please keep the discussion on the list! Thanks for responding! Yes the memberNotes database field only contains information in about a third of the records so I wanted to hide the entire field and label when their was no relevent

RE: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Edward R. Bailey
I used echo($notes) at the bottom of the page and the output of $notes prints reardless of whether or not the db field $memberNotes contains any data. It seems to me that $notes is always acting as if $memberNotes always contains data. Is their some way to invoke $notes only if $memberNotes

Re: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 02:38, Edward R. Bailey wrote: I used echo($notes) at the bottom of the page and the output of $notes prints reardless of whether or not the db field $memberNotes contains any data. It seems to me that $notes is always acting as if $memberNotes always contains

RE: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Edward R. Bailey
Sorry -- Here it is ?php If ($memberNotes) { $notes = div align=leftfont size=-1bNotes:/b/font/div; } else { $notes = ; } ? Then I call $notes using -- echo ($notes) -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Tuesday,

Re: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Jason Wong
On Wednesday 06 February 2002 02:53, Edward R. Bailey wrote: Sorry -- Here it is ?php If ($memberNotes) { $notes = div align=leftfont size=-1bNotes:/b/font/div; } else { $notes = ; } ? Then I call $notes using -- echo ($notes) I meant your *whole*

[PHP] Links to other pages

2002-02-05 Thread Morten Nielsen
Hi, I have a link on my page that looks like this: $CFG-dirroot= f:/Inetpub/wwwroot/mymarket2; a href=?=$CFG-dirroot?/login.phpLogin/a The link is displayed right on my page, but when I press it a dialog box is saying that I am downloading the php file and wether I want to open or save it. Can

RE: [PHP] Easy Question -- Show/ Hide text based on output of query

2002-02-05 Thread Edward R. Bailey
Thanks for all your help, but I figured out what I did wrong I was calling the memberNotes field using echo $get_detail-Fields(memberNotes) so when I replaced $memberNotes in the script with $get_detail-Fields(memberNotes) it worked like a charm If ($get_detail-Fields(memberNotes)) {

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Peter Ruan
Ryan, I just tried it with my Linux box and I get the authentication box...which is good sign. So it looks like a PHP in MS Windows (the 'fabulous' windows) setting which from the error.log file indicates as well. /** error message listed in error.log **/ [Mon Feb 04 22:36:30

RE: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Travis Simpson
Hey, I changed it from: $HTTP_SESSION_VARS[$key] = $value; To: session_register($key); $key = $value; And now it works fine. At first, when I wrote the $key = $value... It made no sense... I was just doing it because I didn't know what else to try. And it actually works ;) I figured it

[PHP] HowTo Send HTTP POST from Within Scrip

2002-02-05 Thread Gabriel Richards
Hi eveyone. I'm trying to build an application to interface with UPS Online Tools server. I have to send it an XML formatted request via HTTP POST, and I'm not sure how. Normally, PHP receives such requests when a user clicks a button on a form I created, but how do I initiate a POST from with

[PHP] Re: Links to other pages

2002-02-05 Thread Mike Frazer
You're server will only parse PHP files that come from your server's doot cirectory or one of the virtualhost root directories, and then only when called through the right protocol. If you call a file directly from a drive (in this case, F), you aren't accessing it through the server, and

Re: [PHP] Check if var is a domain name

2002-02-05 Thread Mike Frazer
Your reg-ex wouldn't quite work. Remember, .info, .name, .coop and other new TLDs are out or are coming out soon. A limit of {2,3} would rule them all out as invalid. It's only really possible if you have a list of all available TLDs and compare in part to that. There are like 130 TLDs too,

RE: [PHP] Re: Changes in Sessions (PHP Versions)

2002-02-05 Thread Johnson, Kirk
This suggests that register_globals was set to 'off' in the first case and 'on' in the second case. The lines below are perfect examples of how to change the code when changing the register_globals setting in php.ini. Kirk -Original Message- From: Travis Simpson [mailto:[EMAIL

RE: [PHP] HowTo Send HTTP POST from Within Scrip

2002-02-05 Thread Johnson, Kirk
Search the archives on PostToHost, or also go here: http://www.zend.com/zend/spotlight/mimocsumissions.php#Heading6 http://marc.theaimsgroup.com/?l=php-generalm=92353052714384w=2 I think if you also search on UPS you will find discussion of this exact problem. Good luck! Kirk -Original

[PHP] Re: HowTo Send HTTP POST from Within Scrip

2002-02-05 Thread Julio Nobrega Trabalhando
It's usually done with fsockopen();, and curl module functions for SSL servers. There are a few classes for each method, on the most tradicional snippets and clasess websites. I enjoyed using one called Snoopy. Also the manual pages comments are very helpful (both on fsockopen(); related

[PHP] Duplicate e-mails

2002-02-05 Thread Anthony Rodriguez
The following php script sends two (2) e-mails to each addressee. Why? ?php $connection=mysql_connect(localhost,wagner,XXX) or die (No connection!); $db=mysql_select_db(sbwresearch,$connection) or die (No database!); $message= Dear consumer,\n The following are the online surveys ...

[PHP] Books on PHP

2002-02-05 Thread Ronald D Wahlen
Hello, I am new to PHP and was wondering if anyone can point me the right direction with PHP urls and books to learn how to develop web sites using PHP. I read some of the information on www.php.net web site and have the PHP Bible. Thanks, Ron -- PHP General Mailing List

Re: [PHP] Duplicate e-mails

2002-02-05 Thread Analysis and Solutions
Hi Anthony: Anthony Rodriguez wrote: The following php script sends two (2) e-mails to each addressee. Why? I'll bet the email addresses in question are listed in the table twice. Open up a MySQL command line prompt and enter select * from con_inf; to make sure. To keep this from

RE: [PHP] Books on PHP

2002-02-05 Thread Kevin Stone
I got started with a book called, PHP and MySQL Web Development by Luke Welling and Laura Thomson, published by SAMS. This book is clearly written with the self-taught programmer in mind, tearing apart numerous real-world examples and explaining relevant concepts in depth. It does not go into

[PHP] Re: whic OS is under?

2002-02-05 Thread LaserJetter
There is something. Its one of the enironment vars I think. Look for UNAME or U something. I'm not sure if this gives the current OS or the OS on which PHP was compiled though. Ivo Stoykov [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi group: Is there a

[PHP] File Upload -- File Trailer Partial

2002-02-05 Thread Richard Lynch
Please Cc: me -- I can't keep up with anything like the full volume of PHP-General any more and have only lurked for quite some time :-( I'm consistently seeing file uploads get only the trailing N bytes of the file if the file is over a certain size. This is on applications that worked

[PHP] POST to SSL Server without CURL?

2002-02-05 Thread Gabriel Richards
Thank you for your very helpful guidance to this point! My host doesn't have the CURL module installed and it is unlikely they will do it (PHP running on NT). Apparently I can't just fsockopen(www.ups.com, 443); ??? Is there another way? Gabe -- PHP General Mailing List

Re: [PHP] whic OS is under?

2002-02-05 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 05:45, Ivo Stoykov wrote: Hi group: Is there a way to guess which OS the script is running? I couldn't find anything in the manual about this. Thank you Ivo The constant PHP_OS will tell you. For a list of all currently defined constants, try

[PHP] mktime() problem

2002-02-05 Thread toni baker
How can I make sure the user enters a date in format mm/dd/ and the date must be between the year 1600 and 2038. The script below meets the criterion above, except mktime() or strtotime() does not validate year 1600 dates. Any suggestions? Thanks $dateparts = explode('/', $Date); $month

[PHP] How do I display variables in text boxes when the value of a drop down menu changes?

2002-02-05 Thread Don
Hi, I have a PHP script that displays a form. On one section of the form, there is a drop down menu followed by a few text boxes. I'd like to alter the values of the text boxes when the user changes the selection in the dropdown menu. What I've done is create 10 arrays (the drop down menu

[PHP] Re: Books on PHP

2002-02-05 Thread Manuel Lemos
Hello, Ronald D Wahlen wrote: Hello, I am new to PHP and was wondering if anyone can point me the right direction with PHP urls and books to learn how to develop web sites using PHP. I read some of the information on www.php.net web site and have the PHP Bible. Look here for a long

[PHP] date(), time() different to system time

2002-02-05 Thread Anth Courtney
Hey guys, I'm running a RH7.2 box with apache 1.3.20 installed and php-4.1.1 installed as a DSO. Everything is working fine, except that the output from any date() or time() references is 16 hours behind the system time (and hwtime) on the machine. The machine gets its time from an ntp server

RE: [PHP] How do I display variables in text boxes when the value of a drop down menu changes?

2002-02-05 Thread Martin Towell
to access php var in javascript, you'll need to set up javascript vars with the values of the php vars you want to use. eg. ? $foobar = testing; ? script alert(foobar); // will display nothing - not set yet foobar = ?= $foobar; ?; alert(foobar); // now will display testing /script

[PHP] MySQL selecting the maximum value from a column

2002-02-05 Thread Melanie Gann
Thank you all you listeners out there. I'll try to be respectful of your time and patience, and apoligize in advance for my greeness - I am 2 weeks into PHP/MySQL. I am trying to select the higest value from the column Thought_Num below. But it returns nothing. ?PHP $db =

RE: [PHP] MySQL selecting the maximum value from a column

2002-02-05 Thread Martin Towell
what happens if you do this? $result = mysql_query(SELECT MAX(Thought_Num) as Thought_Num FROM quotes,$db); I'm thinking that the column name in your original query is being called MAX(Thought_Num) and not Thought_Num. Martin -Original Message- From: Melanie Gann [mailto:[EMAIL

RE: [PHP] Can anyone jog my memory on HTTP_REFERER Javascript location:replace?

2002-02-05 Thread Lazor, Ed
If I understand what I think you're asking, you're trying to access the results in Javascript of something the PHP script processed... use your php script to spit out some javascript. For example: print script language='javascript'\n; print $Result = .$Results.;\n; print /script;

Re: [PHP] MySQL selecting the maximum value from a column

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 15:12, Melanie Gann wrote: Thank you all you listeners out there. I'll try to be respectful of your time and patience, and apoligize in advance for my greeness - I am 2 weeks into PHP/MySQL. I am trying to select the higest value from the column Thought_Num below. But

[PHP] How do I keep form inputs from being cleared - Please Help!

2002-02-05 Thread SpamSucks86
I have a registration form and if a user enters bad information and the php script generates an error, I want the user to be able to hit back and have his inputs still there. Most websites I've ever used do this, but for some reason, my form loses all its data when the back button is pushed. This

Re: [PHP] Problem...header already sent by

2002-02-05 Thread Ryan F. Bayhonan
Hello again Peter, I describe my reply below. I must run it as Apache module. Can someone tell me how do I change the setting to run as an APACHE module instead? I'll be replying to this question in a Windows Operating System setting. You have 2 option in installing PHP as in Win OS, either

Re: [PHP] date(), time() different to system time

2002-02-05 Thread DL Neil
Hey Anth, Hey guys, =some of the better-looking amongst us are not guys (and then some of us are...) I'm running a RH7.2 box with apache 1.3.20 installed and php-4.1.1 installed as a DSO. Everything is working fine, except that the output from any date() or time() references is 16 hours

Re: [PHP] How do I keep form inputs from being cleared - Please Help!

2002-02-05 Thread Miles Thompson
http://www.thickbook.com choose the tutorial for a form with custom error messages. Miles Thompson At 06:40 PM 2/5/2002 -0500, SpamSucks86 wrote: I have a registration form and if a user enters bad information and the php script generates an error, I want the user to be able to hit back and

[PHP] safe mode/mkdir problem - HELP!

2002-02-05 Thread Roberto P.Martins Jr
Hello! I'm trying to create a directory, let's say: /some/dir. My script (create_dir.cgi) is located at the cgi-bin directory and begins with #!/usr/bin/php. So it's like any other script, isn't it? The problem is: running php in safe mode with the script permissions: rwxr-xr-x 8

[PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Michael O'Neal
Hi. I'm working on an edit page where the pull down menu is populated from a database. I can't figure out how to print selected when that particular record is the one associated with the current ID. Can anyone help? Here's my current code: !-- Dynamic Career Menu-- ?php

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Lars Torben Wilson
On Tue, 2002-02-05 at 16:23, Michael O'Neal wrote: Hi. I'm working on an edit page where the pull down menu is populated from a database. I can't figure out how to print selected when that particular record is the one associated with the current ID. Can anyone help? Here's my current

Re: [PHP] Dynamic Dropdown menu question.

2002-02-05 Thread Jeff Sheltren
Hi, looking at your sql statement, it seems like you are always setting my_job_id and job_id to the same value for each row in the table. select job_id AS my_job_id is just putting the value of job_id in a variable called my_job_id. Could you tell us the structure of your mysql table please?

  1   2   >