RE: [PHP] Running a php script at a giveb time

2001-01-16 Thread Shimon Dekel
Jeremy Brant wrote: In case you didn't know, you can run PHP scripts without a web server. Thanks but... Can you do this on NT (Sorry) as well? I am using NT with MySQL in the CGI configuration. Shimon == Shimon Dekel Israeli Vegetable Board Information System

[PHP] Turning magic quotes on/off.

2001-01-16 Thread void
Hi, I just struggled with quoting in php3 and php4. Traditional old-style raw data would be nice to have but using set_magic_quotes_runtime (false) doesn't help. Should that turn it off anyway? Another thing not documented to me is get_magic_quotes_gpc (). What does

Re: [PHP] Turning magic quotes on/off.

2001-01-16 Thread Rasmus Lerdorf
I just struggled with quoting in php3 and php4. Traditional old-style raw data would be nice to have but using set_magic_quotes_runtime (false) doesn't help. Should that turn it off anyway? It is likely already off. magic_quotes_runtime is a legacy feature nobody uses

Re: [PHP] javascript and php

2001-01-16 Thread Soeren Staun-Pedersen
It is easy to generate javascript through php,but how to call php through javascript. In fact, I'd like to update some form fields according to events on other fields. I can do this using javascript, but the values should be readed in a MySql database. You're in a serverside, clientside

[PHP] Check browsers image displaying

2001-01-16 Thread Vlad
Hi all! How can I check (in PHP code) if the target browser supports image displaying or not? Thanks, Vlad. -- 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,

[PHP] Fw: what is wrong with this sniplet? oops! forgot to close tag

2001-01-16 Thread [EMAIL PROTECTED]
Oops, forgot that I actually close the input tage, the previous one was the mistype. print("td"); print("input type='button' value='back' onclick='self.history.back()';"); print("/td"); what happen was that when the html page was generated, that specific part did not apear on the page,

Re: [PHP] javascript and php

2001-01-16 Thread Jørg V . Bryne
In general: We made a script which did this, however a bit limited because of the client/server-problems mentioned. The script is part of a registration-form, and pick out a city based on the zip entered. We didn't want the list of zipcodes and cities in JS since it would be quite huge. Don't

Re: [PHP] what is wrong with this sniplet?

2001-01-16 Thread Jørg V . Bryne
print("input type='button' value='back' onclick='self.history.back()';"); lacks a at the end of the input-tag print("input type='button' value='back' onclick='self.history.back()';"); - Original Message - From: "Jacky@lilst" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday,

[PHP] Populating table rows

2001-01-16 Thread Wade Halsey
Hi Ive selected some details from a database and now want to loop through the result and populate a row in a table each time. $sqlCurrentTraces = sqlExecute( "Select * from Sky where No = '$Name'" ); $result = sqlFetchObject( $sqlCurrentTraces ); $SkyDateAss = $result -DATEASSIGNED;

Re: [PHP] Fw: what is wrong with this sniplet? oops! forgot to closetag

2001-01-16 Thread Philip Olson
Hi Jack, Firstly, this is an HTML issue. You can lose the ; and I'd run your page through a validator, such as : http://validator.w3.org/ It must be a table issue or something. For example, when isolated this works just fine : table tr ?php print("td"); print("input type='button'

Re: [PHP] Perl-like DBI and generic SQL

2001-01-16 Thread Dean Hall
Is metabase in the "DB" subdirectory of PEAR? Dean. - Original Message - From: "Alex Black" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, January 15, 2001 03.58pm Subject: Re: [PHP] Perl-like DBI and generic SQL I have found metabase to be superior to any other abstraction

Re: [PHP] Populating table rows

2001-01-16 Thread Tim Zickus
You need a while loop: $sqlCurrentTraces = sqlExecute(...) while ($result = sqlFetchObject( $sqlCurrentTraces ) { ... your table stuff ... } - Tim http://www.phptemplates.org - Original Message - From: "Wade Halsey" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 16,

[PHP] Version Difference

2001-01-16 Thread Gareth Davies
Hi all, With the following in one page: input type=text name=document_title"; and this in the page called: echo "$document_title"; I am receiving two different results from two different environments under some circumstances, which is causing me a massive headache. My development environment

[PHP] Variables in 'friendly' urls

2001-01-16 Thread William Bailey
Hi, Is there a way to pass variables as 'friendly' urls? So instead of haveing a url like www.blah.co.uk/profile.php?team=tigers i could have www.blah.co.uk/profile.php/team/tigers which would call profile.php and set team to tigers. I've been playing with it but i can't seem to

[PHP] RedHat+Apache+php+MSSQL

2001-01-16 Thread Francesc Lladó
I have to install in a computer with RedHat 7.0, an Apache web server and php with connection at Microsoft SQL Server 7. Which kind of versions of Apache and php do you recommend? Someone of you has tried it? Which are the more frequently problems? Tank you very much!!! -- Francesc Llad i

Re: [PHP] Version Difference

2001-01-16 Thread Gareth Davies
Thanks philip..I must confess to not having ventured too much into the PHP.ini file. Simple when you know how, huh? Thanks again, that's cheered the miserable little mood I've been having this morning! Gareth. - Original Message - From: Philip Olson [EMAIL PROTECTED] To: Gareth

Re: [PHP] Version Difference

2001-01-16 Thread Glen Scott
At 10:37 16/01/01, Gareth Davies wrote: All is well in both the above until the user enters an apostrophe, upon which the development environment nicely adds a backslash prior to it, allowing it to be saved in Mysql with no additional effort. The live environment, however, does not. Do you

[PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread Kevin Cawthorne
Hi, I want to install PHPLIB but one of the configuration notes says "turn off magic quotes in the php.ini file". OK But I'm, using phpMyAdmin, which I understand NEEDS magic quotes on to work. Has anyone done this using the two together? Kevin Cawthorne

RE: [PHP] HELP WITH UPLOAD REQUIRED!!!!!!!!

2001-01-16 Thread jdwright
Mike, I haven't had a problem. I'm using Apache 1.3.14 with PHP 4.0.3pl1 + 4.0.4. I use the same code on 3 computers (depending on where I am when I'm working on it. Normally it's Win95, but Win2k and WinNT are used as well. The snippet of code I use is: --code 1- list($scriptBase, ) =

[PHP] Probs with browsecap.ini

2001-01-16 Thread Axel Tietje
Hi, I'm using the function get_browser(), but the whole thing does not seem to work properly. Please have a look at http://web.flynet.de/info.php to see what I mean. Is there anyone who could tell me what's probably wrong? I'm using PHP 4.04, which compiled ok. I seems to find the

[PHP] FTP functions

2001-01-16 Thread brand
I am trying to get a directory listing over ftp with the ftp_nlist() function. The problem is that the directory name has spaces in it and it looks like ftp_nlist() chops the string at each space and performs a separate listing for each word, which fails. I have tried quoting, urlencoding and

[PHP-CVS] cvs: CVSROOT / avail gen_acl_file.m4

2001-01-16 Thread Zeev Suraski
zeevTue Jan 16 02:43:53 2001 EDT Modified files: /CVSROOTavail gen_acl_file.m4 Log: Add Ben Mansell to the CVS committers so he can maintain Zeus/thread safety compatibility PR: Submitted by: Reviewed by: Obtained from: Index: CVSROOT/avail

[PHP] Template parser

2001-01-16 Thread Hrishi
Hello, Is it possible using apache .htaccess to have every file served from a particular domain/directory pass through a custom script? or is it necessary to make changes at the root level? Thanks, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] Variables in 'friendly' urls

2001-01-16 Thread Tim Zickus
You need to parse some of the environment variables to get this data, $pathArray = explode("/",$HTTP_SERVER_VARS[PATH_INFO]) seems to be particularly helpful. Put a call to phpinfo() into your file and see what's there. - Tim Is there a way to pass variables as 'friendly' urls? So instead

[PHP-CVS] cvs: php4 / README.Zeus /sapi/isapi php4isapi.c

2001-01-16 Thread Ben Mansell
joostersTue Jan 16 02:44:52 2001 EDT Modified files: /php4 README.Zeus /php4/sapi/isapiphp4isapi.c Log: @ Support Zeus 3.3.8 Added changes to environment variable manipulations, to support Zeus 3.3.8 and increase compatibility between

[PHP-CVS] cvs: php4 /ext/sablot php_sablot.h sablot.c

2001-01-16 Thread Sterling Hughes
sterlingTue Jan 16 04:02:47 2001 EDT Modified files: /php4/ext/sablotphp_sablot.h sablot.c Log: @ Added the xslt_set_base function. (Sterling) Added the SABLOT_SET_ERROR() macro to set sablotron errors... Index:

[PHP]Windows 2000 program execution fails

2001-01-16 Thread Kees Hoekzema
Hi all, I want to retrieve the contents of a dir, so i use C:/WINNT/system32/cmd.exe /C dir /b e:\logs1\ to do that. the command works on the cli of win2k. The server is running win2k + Apache 1.3.14 + PHP-4.0.4pl1 I receive the following error: Warning: Unable to fork

Re: [PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread [EMAIL PROTECTED]
On Tue, 16 Jan 2001, Kevin Cawthorne wrote: Hi, I want to install PHPLIB but one of the configuration notes says "turn off magic quotes in the php.ini file". OK But I'm, using phpMyAdmin, which I understand NEEDS magic quotes on to work. Has anyone done this using the two together?

Re: [PHP] Help with IMAP_open please

2001-01-16 Thread Alejandro Garin
--- Dezider Góra [EMAIL PROTECTED] wrote: I always get this error when trying to connect to the mailbox. I have installed uw imap server. Warning: Couldn't open stream {localhost:143} in /home/httpd/html/webmail/mailbox.php on line 12 Affected line is: $connection =

Re: [PHP] Running a php script at a giveb time

2001-01-16 Thread Rick Hodger
Shimon Dekel [EMAIL PROTECTED] wrote in message 2B851D414E69D411923000D0B789259A0697@EXCHANGE">news:2B851D414E69D411923000D0B789259A0697@EXCHANGE... Jeremy Brant wrote: In case you didn't know, you can run PHP scripts without a web server. Thanks but... Can you do this on NT (Sorry) as well?

[PHP] HTTP_POST

2001-01-16 Thread Wade Halsey
Hi I have the following code which is created in a loop. tr td?php print $SkyAccNo; ?/td td?php print $SkyDateAss; ?/td td?php print $SkyDateResult; ?/td tdinput type="checkbox" name="?php echo$SkyAccNo;?" value="ON"/td /tr For example there will be three rows with different values and

[PHP] is 1 a Variable...Discoverd it just now...

2001-01-16 Thread Dhaval Desai
HI! When I run the foillowing code: form action="?php echo"$PHP_SELF"; ?" method="post" input type="hidden" name="flag" value="0" select name="recepients" onchange="javascript:submit();" option value=""--/option option value="1"1/option option value="2"2/option option

[PHP] WML/WAP and PHP

2001-01-16 Thread Rick Hodger
Here's a fun little thing I discovered, possibly a bug in PHP itself? To output a WAP page you must output a content-type header else the phone's browser won't recognise the page. Dead simple. Use: header("Content-type: text/vnd.wap.wml"); And all is well and good as long as you use

Re: [PHP] what is wrong with this sniplet?

2001-01-16 Thread Christian Cresante
I think it should be ... onClick='javascript:self.history.back()'... --- "Jacky@lilst" [EMAIL PROTECTED] wrote: Hi people Looking for a piece of advice about what is wrong with this sniplet and what is the right one. I tried to write the html using print(""); as below: print("td");

Re: [PHP] is 1 a Variable...Discoverd it just now...

2001-01-16 Thread Pavel Jartsev
Dhaval Desai wrote: ... for($i=1; $i=$recepients; $i++) { echo "input type=\"text\" name=\"$i\"" ."br"; Maybe this line should be: echo "input type=\"text\" name=\"$i\"br"; -- Pavel a.k.a. Papi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread Krznaric Michael
How can you control 'magic quotes' with .htaccess? I thought this is a php.ini command? I kind of have the same problem. My web host has magic quotes off and I would like to use phpMyAdmin. Is it possible to turn them on without accesing the ini file? Mike -Original

Re: [PHP] WML/WAP and PHP

2001-01-16 Thread Pavel Kalian
Hi Rick, you are not doing anything wrong. You just have to send the proper content-type depending on what you're outputing. For example if you want to produce a gif image you have to use header("Content-type: image/gif"); There's nothing wrong with it as PHP can't predict what you want to do.

[PHP] Forking email out

2001-01-16 Thread Kevin Cawthorne
Due to the sheer size of my mailing list, it would seems sensible to try streamlining the send -mailing script I run. In PERL I think the command to split the sending proccess was "fork", where the script launches a new command allowing the script to continue on while each person is emailed.

[PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread James Holloway
Hi all, I'm attempting to write a weather script, which will display weather conditions for areas in the UK. I have the data I need, which is stored in a file on another server. The data comes in the format: 2001/01/16 13:50 SCT010 BKNDPIP WYXWE Q1012 2001/01/16 13:46 CYGL 161346Z

Re: [PHP-CVS] cvs: php4 /ext/vpopmail .cvsignore CREDITS Makefile.in config.m4 php_vpopmail.c php_vpopmail.h

2001-01-16 Thread Andrei Zmievski
On Sun, 14 Jan 2001, David Croft wrote: function_entry vpopmail_functions[] = { PHP_FE(vpopmail_auth_user, NULL) PHP_FE(vpopmail_adddomain, NULL) PHP_FE(vpopmail_deldomain, NULL) PHP_FE(vpopmail_adduser, NULL) PHP_FE(vpopmail_deluser, NULL)

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread Glen Scott
James, The trouble is, that there are about 3000 cities in the text file. I'm assuming that I fill use fopen(); and fread(); to open and read the files, but does anyone know of a way of singling out one line (say: CYGL 161346Z 34004KT 15SM -SN BKN011 BKN030 RMK SF6SC1 ) from the whole text

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread James Holloway
Glen Scott [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... James, The trouble is, that there are about 3000 cities in the text file. I'm assuming that I fill use fopen(); and fread(); to open and read the files, but does anyone know of a way of singling out

Re: [PHP] Reading specific data from a .txt file into PHP

2001-01-16 Thread Pavel Kalian
check the manual for fgets() function. then you can maybe explode() the string using " " (space) as separator. Pavel - Original Message - From: "James Holloway" [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 4:13 PM Subject: Re: [PHP] Reading specific data from

php-general Digest 16 Jan 2001 15:19:53 -0000 Issue 458

2001-01-16 Thread php-general-digest-help
php-general Digest 16 Jan 2001 15:19:53 - Issue 458 Topics (messages 34742 through 34821): Re: MSQL and php creating problem with date.. 34742 by: Richard Lynch Re: Problems sending to several recipients with mail() using WIN NT and Apache 34743 by: Richard Lynch Re:

[PHP] xmltree() function - what PHP version?

2001-01-16 Thread kev
Hi, I want to use the xmltree(), xmldoc() functions, etc. According to the PHP manual, these functions should be available in PHP 4.0b4 onwards, I am running PHP 4.0.1pl2 but when I try to call xmltree() I get this error: Fatal error: Call to undefined function: xmltree() in

Re: [Fwd: [PHP] Perl regular expression bug]

2001-01-16 Thread Andrei Zmievski
This only applies to PHP 4.0.4 Back with PHP 4.0.2, I could do this: ?PHP $string = "[["; $string = preg_replace("/(\W)/", "1", $string); ? $string would then contain "\[\[". Now, if I use that same code, $string contains "\\1\\1\\1\\1". I tried to compensate for this using

[PHP] RE: Reading specific data from a .txt file into PHP

2001-01-16 Thread Parker, John (Snorkel)
Sounds like a great database application, actually. John Parker -Original Message- From: James Holloway [SMTP:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 8:58 AM To: [EMAIL PROTECTED] Subject: Reading specific data from a .txt file into PHP Hi all, I'm

[PHP] Anyone knows?

2001-01-16 Thread Wee Chua
Hi everyone, Does anyone have any ideas how does Windows Explorer work? I am trying to create same functionality for Event Type in my Event table, I need to have same kind of expand function like Explorer. Could anyone tell me the structure, ideas or methods to create such expand function.

[PHP] Who to make an additon of fetched rows

2001-01-16 Thread K.Simon
How can i add all the fetched rows from a table? $result=mysql("$DBName","SELECT * FROM basket WHERE UserID='$UID'"); while ($row = mysql_fetch_array($result)) { $CID=$row[0]; $DMN=$row[1]; $DMB=$row[2]; $BID=$row[4]; do{ print "$DMB"; } Let's say i have to display the endprice from all the

[PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
Hello list, Just a quickie. Does anyone have a code snippet for calculating the day of the week given a date? I was hoping I could feed a string like "20010116" to a function and have it return "Tuesday" - it doesn't have to be exactly this date format that is used for the

Re: [PHP] WML/WAP and PHP

2001-01-16 Thread Rick Hodger
"Pavel Kalian" [EMAIL PROTECTED] wrote in message 028e01c07fc1$dffdecf0$8361d4c2@pavelk">news:028e01c07fc1$dffdecf0$8361d4c2@pavelk... Hi Rick, you are not doing anything wrong. You just have to send the proper content-type depending on what you're outputing. For example if you want to

RE: [PHP] WML/WAP and PHP

2001-01-16 Thread Jon Haworth
I seem to remember reading something very recently, possibly on this list, about WML. IIRC, if you drop out of PHP at any point the rest of the document gets treated as text/html. Try something like ?php header("Content-type: text/vnd.wap.wml"); echo("wmlcardpHello world!/p/card/wml"); ? and

[PHP-CVS] cvs: php4 /pear/Image Remote.php

2001-01-16 Thread Mika Tuupola
tuupola Tue Jan 16 06:59:01 2001 EDT Modified files: /php4/pear/ImageRemote.php Log: Fixed the vim rules. Index: php4/pear/Image/Remote.php diff -u php4/pear/Image/Remote.php:1.2 php4/pear/Image/Remote.php:1.3 --- php4/pear/Image/Remote.php:1.2

[PHP] graph 3d

2001-01-16 Thread Pablo Martin De Natale
Hello. Does anybody know any class or similar for 3d graph like bars, lines, etc? Thanks Pablo -- 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] WML/WAP and PHP

2001-01-16 Thread Pavel Kalian
are you sure that there's nothing in the file in before you call the header() function? The situation you describe could happen if there was an empty line at the begining of the file and the warnings were turned off. When I tried your code it worked as expected: C:\c:\php4\php test.php

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
TED]] Sent: 16 January 2001 16:03 To: Jon Haworth Subject: Re: [PHP] Working out the name of the day given a date On Tuesday, January 16, 2001, at 10:56 AM, Jon Haworth wrote: Just a quickie. Does anyone have a code snippet for calculating the day of the week given a date? I was hoping I

Re: [PHP] How to handle multiple lines in PHP?

2001-01-16 Thread Christian Reiniger
On Tuesday 16 January 2001 17:12, david klein wrote: Does anyone know how to handle this? One idea is to convert the END OF LINE CHAR to "BR" before putting it into the database, but how can we detect the END OF LINE CHAR in PHP? Or is there any other ways? Search the list archives. I

Re: [PHP] How to handle multiple lines in PHP?

2001-01-16 Thread Pavel Kalian
nl2br() will do the translation for you, just store the text in database in the form user writes it (allows later editing of the messages in the db without having to deal with br's) and then echo(nl2br($message)) it. Pavel - Original Message - From: "Ignacio Vazquez-Abrams" [EMAIL

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
tring like "20010116" to a function and have it return "Tuesday" - it doesn't have to be exactly this date format that is used for the input, but I do need the name of the day on the output! covert your date string to a unix timestamp and then use date("l", $myS

Re: [PHP] xmltree() function - what PHP version?

2001-01-16 Thread Ignacio Vazquez-Abrams
On 16 Jan 2001, Hrishi wrote: Fatal error: Call to undefined function: xmltree() in /usr/local/apache/htdocs/megsoc2/test/xml_parse/test1.php on line 5 you prob. need to compile php again with '--with-xml' see 'configure --help' for more info. Hrishi No, you need --with-dom. --

Re: [PHP] How to handle multiple lines in PHP?

2001-01-16 Thread Romulo Roberto Pereira
you could use nl2br command on the string that holds the data... check this for further info... http://www.php.net/nl2br Have fun, Rom - Original Message - From: david klein [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 11:12 AM Subject: [PHP] How to handle

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Ignacio Vazquez-Abrams
On Tue, 16 Jan 2001, Jon Haworth wrote: Hmmm. I did: $timestamp = mktime(0,0,0,$month,$date,$year); $day = date("1", $timestamp); and it returns 1, no matter what the contents of $month, $date and $year are. Did I miss something? Yes, you're missing the fact that it's a

RE: [PHP] Working out the name of the day given a date

2001-01-16 Thread Jon Haworth
the name of the day given a date On Tuesday, January 16, 2001, at 10:56 AM, Jon Haworth wrote: Just a quickie. Does anyone have a code snippet for calculating the day of the week given a date? I was hoping I could feed a string like "20010116" to a function and have it retur

[PHP] How can I download information (file) without standard save as dialog ??

2001-01-16 Thread Benny Nissen
Hi All I am unable to find the correct solution (where to start) with this problem. We are an Open Source group developing an ECC based (elliptic curve) public key cryptography alternative to PGP. For this project we need a public database to store the public keys in with search facilities

RE: [PHP] PHP FDF on Linux PPC

2001-01-16 Thread Mathias Meyer
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Michael A. Peters Sent: Tuesday, January 16, 2001 6:20 AM To: Richard Lynch Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP FDF on Linux PPC Pardon my ignorace, but what is FDF? I've done a lot

Re: [PHP] Who to make an additon of fetched rows

2001-01-16 Thread Chris Lee
well your code snipit allready shows your answer. $result = mysql_db_query($DBName, "SELECT * FROM basket WHERE UserID='$UID'"); while ($row = mysql_fetch_array($result)) { $CID = $row[0]; $DMN = $row[1]; $DMB = $row[2]; $BID = $row[4]; echo "Price: $DMBbr\n"; } Chris Lee

[PHP] Netscape's back button not working like Explorer's...Why?

2001-01-16 Thread Todd H MacPherson
Hi I have 2 forms: subscribe.php confirm.php If the user enters data correctly in subscribe.php I have an an include pointing to confirm.php. This gives the user a chance to review the data before final submission. I want the user to be able to click the back button on their browser and

Re: [PHP] WML/WAP and PHP

2001-01-16 Thread Chris Adams
On 16 Jan 2001 05:05:18 -0800, Rick Hodger [EMAIL PROTECTED] wrote: Here's a fun little thing I discovered, possibly a bug in PHP itself? To output a WAP page you must output a content-type header else the phone's browser won't recognise the page. Dead simple. Use: header("Content-type:

[PHP] RE: [phplib] problems ie suggestions

2001-01-16 Thread Herbel, Rick
I found the following problems or suggestions with phplib version 7.2c This will get rid of errors un text which has no javascript associated with it diff /usr/rickster/stuff/phplib-7.2c/php/of_text.inc /home/httpd/html/php/of_text.inc 66c66,67 --- if (!isset($ndx_array)) // added

Re: [PHP] regexps

2001-01-16 Thread Romulo Roberto Pereira
Why don't you do a function with an ereg inside? I don't think that exist a command like that... Rom - Original Message - From: Elliot L. Tobin [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, January 16, 2001 11:59 AM Subject: [PHP] regexps Is there a way to call one regexp on

Re: [PHP] Variables in 'friendly' urls

2001-01-16 Thread Ignacio Vazquez-Abrams
On Tue, 16 Jan 2001, William Bailey wrote: Hi, Is there a way to pass variables as 'friendly' urls? So instead of haveing a url like www.blah.co.uk/profile.php?team=tigers i could have www.blah.co.uk/profile.php/team/tigers which would call profile.php and set team to tigers.

[PHP] Sessions

2001-01-16 Thread Brandon Orther
Does anyone have a place with a little more user friendly tutorial or place to learn about sessions? The php manual is making me go mad. Thank you, Brandon Orther WebIntellects Design/Development Manager [EMAIL PROTECTED] 800-994-6364

[PHP] HELP! Date formatting

2001-01-16 Thread Niel Zeeman
Hi Ive gotto format a date such as 30/12/1956 to format 30-Dec-1956, I can not use mktime cause that only provides the timestamp from 1970. Is there any other method of getting this right. thnx Niel Zeeman Tel(W): (043)7014247 Cell: 082 651 4083 eMail: [EMAIL PROTECTED]

RE: [PHP] HELP! Date formatting

2001-01-16 Thread Boget, Chris
Ive gotto format a date such as 30/12/1956 to format 30-Dec-1956, I can not use mktime cause that only provides the timestamp from 1970. Is there any other method of getting this right. mktime() can be used for this. 0 is from 1970. Negative values are used for dates prior. Chris

Re: [PHP] Netscape's back button not working like Explorer's...Why?

2001-01-16 Thread Todd H MacPherson
Hi JavaScript does not work in this instance. I will have to write code to overcome Netscape's shortcomings I guess. Thanks Todd - Original Message - From: "Romulo Roberto Pereira" [EMAIL PROTECTED] To: "Ignacio Vazquez-Abrams" [EMAIL PROTECTED]; "Todd H MacPherson" [EMAIL PROTECTED]

[PHP] if php is so great, why is it so hard to make it work?

2001-01-16 Thread Serge Montmarquette
if php is so great, why is it so hard to make it work? please...someone ...for win2000 nt 5.0 ...I have apache, iis installed ...nothing's working, did changes to php.ini, my registry...httpd.conf nothing! nothing! nothig!!! -- PHP General Mailing List

[PHP] RE: if php is so great, why is it so hard to make it work?

2001-01-16 Thread Jerry Lake
That is probably a good way not to get much help however, there are install kits out there that do all of the work for you. phpTriad is one. Jerry Lake -Original Message- From: Serge Montmarquette [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 10:14 AM To: [EMAIL PROTECTED]

Re: [PHP] if php is so great, why is it so hard to make it work?

2001-01-16 Thread K.Simon
Goto http://www.zabia.com/downloads.php?op=viewslinksid=24 and coose the one you like! *** REPLY SEPARATOR *** On 16/01/2001 at 13:13 Serge Montmarquette wrote: if php is so great, why is it so hard to make it work? please...someone ...for win2000 nt 5.0 ...I have apache, iis

RE: [PHP] if php is so great, why is it so hard to make it work?

2001-01-16 Thread Rob
You can get problems when you install and run IIS AND Apache at the same time... I think the last message was clear enough??? -Oorspronkelijk bericht- Van: Serge Montmarquette [mailto:[EMAIL PROTECTED]] Verzonden: dinsdag 16 januari 2001 19:14 Aan: [EMAIL PROTECTED] Onderwerp: [PHP] if

Re: [PHP] RE: if php is so great, why is it so hard to make it work?

2001-01-16 Thread Romulo Roberto Pereira
I just posted this in php-win - this script installs everything automatically... My guess is that Mr.Mortemarquete is doing something wrong, because he has IIS AND APACHE in the same server... I found this link and think that is useful: http://www.firepages.com.au/phpdev.htm Have fun, Rom

Re: [PHP] mixing HTML and PHP code

2001-01-16 Thread Iván Sánchez Ortega \MR\
"Alex Black" ... the horse is back from the dead! huh? inside joke. Doh. I don't like to do database connections when I've already output markup, what if something goes wrong, or I want to do a redirect, etc? If something goes wrong - It's the DBA fault. :-) hehe in a

[PHP] Images ???

2001-01-16 Thread Miguel Loureiro
Hello, I want to show a list of images ( but in a small size - should I use ImageCopyResized ? how ? ), existed in a directory ( they are uploaded to dir, and the name of each image is also inserted into a DataBase ), with a link to the respective image and real size. To work with images ( I

Re: [PHP] Sessions

2001-01-16 Thread Hardy Merrill
Fortunately I've recently done some research into this - here are a few links to get you going: http://www.phpwizard.net/resources/tutorials/session_intro.html http://www.zend.com/zend/tut/session.php and here are more links if you are interested in storing your session info in a database -

[PHP] got it

2001-01-16 Thread Serge Montmarquette
ok, well it's working, my 8 y/o sister helped me instead, thanks anyways! -- 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 PROTECTED]

[PHP] gc_probability

2001-01-16 Thread Brandon Orther
Hello, Does someone have an example of how I can use session.gc_probability. I want to pass the session ID through GET/POST so if someone has a better way of making the sessions end please let me know. Thank you, Brandon Orther WebIntellects

[PHP] php'ed mysql query

2001-01-16 Thread Christopher Allen
Hello, Can anyone tell me why this query errors out? It works from the mysql client command line just fine $query1 = "select * from zip_base where '$zip1' = zip '$zip1' = CONCAT (SUBSTRING(zip , '1' , LENGTH (zip) - LENGTH (range) ), range)"; Christopher C. M. Allen -- PHP

Re: [PHP] PHPLIB and PHPMyAdmin

2001-01-16 Thread Matt Friedman
Since phpmyadmin doesn't use an include path and an auto prepend file but phplib does, what we do is run them under separate sub directories. Under the phplib subdir we use an .htaccess to specify the phplib directives needed to make it run and under the phpmyadmin subdir we don't specify

Re: [PHP] Images ???

2001-01-16 Thread Ignacio Vazquez-Abrams
On Tue, 16 Jan 2001, Miguel Loureiro wrote: Hello, I want to show a list of images ( but in a small size - should I use ImageCopyResized ? how ? ), existed in a directory ( they are uploaded to dir, and the name of each image is also inserted into a DataBase ), with a link to the

RE: [PHP] php'ed mysql query

2001-01-16 Thread Sam Masiello
If you are going to do a comparison from one of the fields in your table, doesn't the field name need to be on the left hand side of the comparison? So instead of "where '$zip1' = zip", shouldn't it be "zip '$zip1'" (et al for the other comparisons in your query) . HTH Sam Masiello Systems

[PHP] string replace

2001-01-16 Thread Tait Grove
How can I strip everything past a certain character in a string? i.e.: $foo = "test.gif"; // strip past the .gif $foo = "test"; // again $foo2 = "test.jpeg"; // strip past the .jpeg $foo2 = "test"; Tait

[PHP] session_destroy

2001-01-16 Thread Brandon Orther
Hello Everyone, Can someone please give me example code on how to use session_destroy because I can not get it to work. Also if you have an example for gc_probability I would love that too. Thank You :) Thank you, Brandon Orther WebIntellects

Re: [PHP] string replace

2001-01-16 Thread Nathan Cook
You may want to try exploding on the ".": $fooPieces = explode($foo, "."); That way everything before the dot, is in the first piece of the array and everything after is in the second part of the array. However this may cause issues if filenames will contain dots. But if you follow an 8.3 or

RE: [PHP] string replace

2001-01-16 Thread Jerry Lake
Here is a bad way to do it, but it works ? $string = "test.jpg"; $replace = eregi_replace("$", "", $string); echo $replace; ? Jerry Lake -Original Message- From: Tait Grove [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 16, 2001 12:01 PM To: PHP GENERAL Subject: [PHP] string

Re: [PHP] RedHat+Apache+php+MSSQL

2001-01-16 Thread webbie
Quoting Francesc Llad [EMAIL PROTECTED]: I have to install in a computer with RedHat 7.0, an Apache web server and php with connection at Microsoft SQL Server 7. Which kind of versions of Apache and php do you recommend? Someone of you has tried it? Which are the more frequently problems?

[PHP-CVS] cvs: php4 /ext/sockets sockets.c

2001-01-16 Thread Rasmus Lerdorf
rasmus Tue Jan 16 12:37:51 2001 EDT Modified files: /php4/ext/sockets sockets.c Log: Kill some warnings Index: php4/ext/sockets/sockets.c diff -u php4/ext/sockets/sockets.c:1.27 php4/ext/sockets/sockets.c:1.28 --- php4/ext/sockets/sockets.c:1.27 Wed

[PHP] FW: Cookies, Dammit!

2001-01-16 Thread Richard S. Crawford
Is there a way to: 1. Set cookies to a particular value (e.g., foo=hi and bar=ho), AND 2. Redirect the user to a new page in a different directory? AND 3. have the new page be able to retrieve the values of both foo and bar? I'm redirecting users from an index.htm page to an

Re: [PHP] FW: Cookies, Dammit!

2001-01-16 Thread Rasmus Lerdorf
1.Set cookies to a particular value (e.g., foo=hi and bar=ho), AND 2.Redirect the user to a new page in a different directory? AND 3.have the new page be able to retrieve the values of both foo and bar? No, 1. and 2. can not be done in the same request reliably. Some browsers

[PHP] SOS to a Salvadorean PHP user.

2001-01-16 Thread Douglas Galindo
Hi, althout i KNOW this is not a technicall issue(wait keep on reading, this's not a commercial or multilevel chain),and as a newcomer for the PHP community, I would appreciate to take a look to the following site: www.terremotoenelsalvador.bigstep.com Wich means earthquake in el salvador, I

Re: [PHP] Redhat 7 problem and fix

2001-01-16 Thread Michael Kimsal
This couldn't have been a 3-4 issue, because it was working in 4, either 4.0.1 or 4.0.2. I was just informed that we went from 4.0.2 to 4.0.4 when moving to RH7, so that might have done it, but it was working reliably (for us) in 4.0.x before the latest. :( anyway, fixed now. Richard Lynch

[PHP] Re: How can I get a random number

2001-01-16 Thread Angela
I see that you got a lot of responses, but I didn't see anyone using what I use. I had problems using rand() because it wasn't quite random enough. The following code is as random as you can get (at least from what I've seen). mt_srand ((double) microtime() * 100); $myrandomnumber =

  1   2   >