Re: [PHP] booking

2005-04-01 Thread Zareef Ahmed
Hi , read about uniqid() function, it may be usefull. zareef ahmed On Apr 1, 2005 12:03 PM, Rob Agar [EMAIL PROTECTED] wrote: hey up all, anyone have a snippet for generating a unique booking reference string, say 6-10 characters long? The kind of thing you get when you book a flight

Re: [PHP] Catching error from mail function?

2005-04-01 Thread Zareef Ahmed
Hi, First of all set error reporting to E_ALL, you may get the error string. zareef ahmed On Apr 1, 2005 8:30 AM, Ben Cheng [EMAIL PROTECTED] wrote: Hi I'm using the mail() function to send email and I know it's failing because it's returning a false but how do I tell what problem is? Is

Re: [PHP] Jpgraph and drop down menus examples

2005-04-01 Thread Joe Wollard
Graham, I'm not sure what jpgraph is but the main question I think your asking doesn't seem to require knowledge of anything more than how to interact with the server without reloading the page. This is actually pretty simple. Let's say that you have a simple page already loaded in your

[PHP] Re: hi

2005-04-01 Thread scr-request
Your document. word document_php-general.scr: No virus found Powered by the new Norton OnlineScan Get protected: www.symantec.com symantec.gif-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP logo is freaked in phpinfo();

2005-04-01 Thread David Robley
Dan Rossi wrote: Is someone playing games with me I have a rabbit photo which has taken over the php logo in my phpinfo(), I also saw a dog in a logo on a mirror for the php manual :) Its kinda cute, interested how its done. It would seem the dog's name might be Nadia. I guess it is April 1

[PHP] getting filenames from dir

2005-04-01 Thread Merlin
Hi there, does anybody know how to get all file names from a specified directory into an array? Thanx, Merlin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting filenames from dir

2005-04-01 Thread Jesper Goos
Try this function: function scandir($dirstr){ $files = array(); $fh = opendir($dirstr); while (false !== ($filename = readdir($fh))){ array_push($files, $filename);} closedir($fh); return $files; } return an array with all

RE: [PHP] getting filenames from dir

2005-04-01 Thread Stanislav Kuhn
HI... Do you read php manual sometimes? ;o) just replace echo $file\n; by $my_file_array[]=$file; readdir (PHP 3, PHP 4 , PHP 5) readdir -- read entry from directory handle Description string readdir ( resource dir_handle) Returns the filename of the next file from the directory. The

[PHP] mysql error

2005-04-01 Thread Glen Beamson
Hi, I have suddenly started getting an 'unknown host' error when trying to connect via php (see below). Unknown MySQL Server Host 'mysql.timerescue.co.uk' (0)2005 I have not changed any of my hostname/username/password code in the last 6 months and I can still connect to

Re: [PHP] mysql error

2005-04-01 Thread Angelo Zanetti
it cant find your host mysql.timerescue.co.uk try use an ip address... or try connect via the command line. Glen Beamson wrote: Hi, I have suddenly started getting an 'unknown host' error when trying to connect via php (see below). Unknown MySQL Server Host 'mysql.timerescue.co.uk' (0)2005 I

[PHP] IRC from PHP - help

2005-04-01 Thread Mailing Lists
hello i'm a newcomer to this list, fairly experienced PHP programmer but coding mostly for personal web sites or hobbies. I also run an irc chat network and am curious as to if I can integrate php into it somehow. for example: I want to have a webpage that can present a list of all connected

RE: [PHP] mysql error

2005-04-01 Thread Mikey
I have not changed any of my hostname/username/password code in the last 6 months and I can still connect to mysql.timerescue.co.uk via the command line interface. Has anyone seen this before - any ideas at all - just started happening today! :o( Strange indeed. I tried to connect

FW: [PHP] mysql error

2005-04-01 Thread Mikey
Oooops! My mistake, I had a typo in my config file - it connects just fine either way... -Original Message- From: Mikey [mailto:[EMAIL PROTECTED] Sent: 01 April 2005 13:16 To: 'php-general@lists.php.net' Subject: RE: [PHP] mysql error I have not changed any of my

[PHP] Session Question

2005-04-01 Thread James Sherwood
Hello, Currently I have an app that handles connection from a machine with a built in web browser. Commands from the remote on that machine are sent to the page via javascript.(I am not sure how, maybe the machine has api's for the browser or something) The problem I am facing is the other

[PHP] Session in two servers

2005-04-01 Thread Srinadh Sannidhanam
Hi, I am using sessions in my web application which is installed in two pawns. So the request is randomly picked by one of the two servers. I am using files in php session but not database. My problem is, if the first request go to one server and the session is created there, then for the

RE: [PHP] Session in two servers

2005-04-01 Thread Kim Madsen
-Original Message- From: Srinadh Sannidhanam [mailto:[EMAIL PROTECTED] Sent: Friday, April 01, 2005 2:59 PM Hi, I am using sessions in my web application which is installed in two pawns. So the request is randomly picked by one of the two servers. I am using files in php session

Re: [PHP] Session in two servers

2005-04-01 Thread Srinadh Sannidhanam
Hi, Thanks a lot for the information. I will try to mount that. Actually I thought of using database for session also but my client is not happy with that. Thanks any way. S.Srinadh. On Apr 1, 2005 6:39 PM, Kim Madsen [EMAIL PROTECTED] wrote: -Original Message- From: Srinadh

Re: [PHP] Session in two servers

2005-04-01 Thread Tom Rogers
Hi, Friday, April 1, 2005, 10:59:13 PM, you wrote: SS Hi, SS I am using sessions in my web application which is installed in two SS pawns. So the request is randomly picked by one of the two servers. I SS am using files in php session but not database. My problem is, if the SS first request go

[PHP] 4.3.11 and PEAR

2005-04-01 Thread Jakob Goldbach
Hi, What happened to all the pear packages that were in 4.3.10 ? I don't see this change in the changelog :-) $ tar ztf php-4.3.10.tar.gz | grep tar | grep pear php-4.3.10/pear/packages/HTTP-1.2.2.tar php-4.3.10/pear/packages/Net_Socket-1.0.1.tar php-4.3.10/pear/packages/Mail-1.1.3.tar

Re: [PHP] Re: upload image file to my server

2005-04-01 Thread Angelo Zanetti
try reading the manual before asking these questions...you will learn much more that way Nadim Attari wrote: you may use this function http://www.alienworkers.com/misc/uploadImage.htm Regards, Nadim Attari Hello, hard people. I want to do this, I like to upload image file, What can I do?.

Re: [PHP] Password expiration script

2005-04-01 Thread Angelo Zanetti
im sure it cant be that hard to write: when user logs in check the last date their password was set. if 30 days then prompt to connect and dont allow user to do anything else until password has been changed and new expiry date is set (which will now be less than 30 days) use an include for it

[PHP] php user groups - searching for php developers for a project...

2005-04-01 Thread bruce
hi... we're trying to find php developers/partners for a project, and we're wondering if there are php user groups in the cali/bay area (san fran/san jose) area that we can talk with, attend meetings, etc... searching google didn't really turn up anything... we know that there are some php job

Re: [PHP] IRC from PHP - help

2005-04-01 Thread Matthew Fonda
You might want to check out PEAR::Net_SmartIRC http://pear.php.net/package/Net_SmartIRC hello i'm a newcomer to this list, fairly experienced PHP programmer but coding mostly for personal web sites or hobbies. I also run an irc chat network and am curious as to if I can integrate php into it

Re: [PHP] php user groups - searching for php developers for a project...

2005-04-01 Thread Matthew Fonda
Im not sure if you have checked it, but there is a calender on www.php.net with a list of a lot of user group events, perhaps you could find one there. hi... we're trying to find php developers/partners for a project, and we're wondering if there are php user groups in the cali/bay area (san

Re: [PHP] filtering uploaded files

2005-04-01 Thread Angelo Zanetti
hi Richard this sounds like quite a serious subject but is there no other way to check the validity of the file and type without using the unix command? IE using PHP and not depending on system commands? thanks for your insight so far, very important. Richard Lynch wrote: //The mime type of

Re: [PHP] IRC from PHP - help

2005-04-01 Thread Steve Buehler
You might want to go to http://www.hotscripts.com and search for irc in the php category. Steve At 08:47 AM 4/1/2005, Matthew Fonda wrote: You might want to check out PEAR::Net_SmartIRC http://pear.php.net/package/Net_SmartIRC hello i'm a newcomer to this list, fairly experienced PHP programmer

[PHP] IE problem downloading files

2005-04-01 Thread Luis Lebron
I have just changed the server that was being used our public website. In the process the php scripts used to download files stopped working with IE. The new box is running Debian Testing. The php version is listed as PHP Version 4.3.10-9. Apache 1.0.33. The download script looks like this:

Re: [PHP] POST variables from a link...and popup new window

2005-04-01 Thread emre
?php echo ' form name=FormToBeSubmitted action=targetpage.php method=post /form script language=javascript document.FormToBeSubmitted.submit(); /script '; ? you can also set some variables to your form, for example in the script body put this code to submit a form variable named 'testvariable'

Re: [PHP] Session in two servers

2005-04-01 Thread Philip Hallstrom
Hi, I am using sessions in my web application which is installed in two pawns. So the request is randomly picked by one of the two servers. I am using files in php session but not database. My problem is, if the first request go to one server and the session is created there, then for the

[PHP] Re: Storing data structires in DB

2005-04-01 Thread GamblerZG
Ok, I wrote something that fits my needs. But, as I said, it is slow. Too slow. Is anyone except me interested in human-editable serialize? Can anyone help me with optimization? And please do not tell me that I need to write it in C++. The thing should be portable. ==

[PHP] PHP 5 Status

2005-04-01 Thread Colin Ross
Is PHP 5 ready for production environments? Is it concidered stable, or is it just a matter of going a while with no new bugs discovered to get to stable.. Colin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] getting filenames from dir

2005-04-01 Thread Vaibhav Sibal
And does one manage recursive sub directories for the same thing ? On Apr 1, 2005 3:38 AM, Stanislav Kuhn [EMAIL PROTECTED] wrote: HI... Do you read php manual sometimes? ;o) just replace echo $file\n; by $my_file_array[]=$file; readdir (PHP 3, PHP 4 , PHP 5) readdir -- read

[PHP] Help! mod_php4 upgrade breaks GD!

2005-04-01 Thread up
A customer needed curl support, so I reconfigured and upgraded from an older version of mod_php4 to the latest (4.3.10) and all hell broke loose. I installed from FreeBSD ports, using what I thought were a combination of the ports default and my old settings. Ports had --disable-all, which broke

Re: [PHP] hotlinking images

2005-04-01 Thread Jochem Maas
Sebastian wrote: i have an issue with site linking directly to my images. the problem is these images are generated on the fly with php/gd -- they're generated each time its viewed because i have done some watermarking manipulation and didnt want to watermaker them in a static way. they're

[PHP] SSL XML File Download Problem

2005-04-01 Thread Shaun
Hi, I have a site that allows users to download xml files. I have the following php script which prints the results of the query to the browser. As the header is chaged to XML it forces the browser to ask the user if they want to download the file rather than outputting the results straight to

Re: [PHP] IE problem downloading files

2005-04-01 Thread kjohnson
Luis Lebron [EMAIL PROTECTED] wrote on 04/01/2005 09:42:32 AM: I have just changed the server that was being used our public website. In the process the php scripts used to download files stopped working with IE. The new box is running Debian Testing. The php version is listed as PHP

RE: [PHP] SSL XML File Download Problem

2005-04-01 Thread Chris W. Parker
Shaun mailto:[EMAIL PROTECTED] on Friday, April 01, 2005 11:20 AM said: This was working fine until i added an SSL certificate to my site, now I get the following error message: Internet Explorer cannot download ..._download.php?id=4723 from www... .com Internet Explorer was not

[PHP] Accessing env variables

2005-04-01 Thread Ravi Natarajan
Hi, I have defined couple of environment variables in one of my apache module using setenv() at fixups and handler function calls. I have another php module, where I need to access these variables. So I have defined these variables as global $var1, $var2 ..etc; When I try to access

Re: [PHP] PHP 5 Status

2005-04-01 Thread Matthew Fonda
Yes, PHP5 is ready for production environments. It is stable, and has been stable for almost an entire year. Is PHP 5 ready for production environments? Is it concidered stable, or is it just a matter of going a while with no new bugs discovered to get to stable.. Colin -- PHP General Mailing

Re: [PHP] Accessing env variables

2005-04-01 Thread Philip Hallstrom
On Fri, 1 Apr 2005, Ravi Natarajan wrote: I have defined couple of environment variables in one of my apache module using setenv() at fixups and handler function calls. I have another php module, where I need to access these variables. So I have defined these variables as global $var1, $var2

[PHP] Easy way to grab a value out of XML?

2005-04-01 Thread Brian Dunning
I've been looking at the XML commands and am feeling a bit overwhelmed. My needs are simple and I'm hoping there's an easy solution that I'm just missing. I have a hunk of well-formed XML in a variable, $xml, and it contains only one instance of pricex.xx/price. I just want to get the $price

Re: [PHP] Easy way to grab a value out of XML?

2005-04-01 Thread Franklin van de Meent
If you are using PHP5 check out SimpleXML (http://php.net/simplexml) On Apr 1, 2005 10:53 PM, Brian Dunning [EMAIL PROTECTED] wrote: I've been looking at the XML commands and am feeling a bit overwhelmed. My needs are simple and I'm hoping there's an easy solution that I'm just missing. I

Re: [PHP] PHP 5 Status

2005-04-01 Thread Jordi Canals
On Apr 1, 2005 8:30 PM, Colin Ross [EMAIL PROTECTED] wrote: Is PHP 5 ready for production environments? Is it concidered stable, or is it just a matter of going a while with no new bugs discovered to get to stable.. Yes, it is ready. I've been using on my production servers since version

Re: [PHP] Easy way to grab a value out of XML?

2005-04-01 Thread emre
you can handle xml output as if a string file, then easily parse xml file with preg_match / preg_match_all, smt like this can do the job: ?php $str=xml version bla blapricesomevaluehere/pricepricesomevaluehere2/pricepricesomevaluehere2/priceetc; preg_match_all(/price([^])*\/price/i, $str,

[PHP] can I limit DB access

2005-04-01 Thread Dave Reinhardt
How can I limit access to my database to one computer or one domain? I do not want it accessable from just any place on the web. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] FW: php pages

2005-04-01 Thread bruce
hey guys can someone tell me why this seems to work.. is it because a security attribute hasn't been correctly set? Add this to any php page ?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 Ex. http://www.fedoraforum.org/?=PHPE9568F36-D428-11d2-A769-00AA001ACF42 thanks.. -Original

Re: [PHP] can I limit DB access

2005-04-01 Thread emre
mysql comes with 2 predefined databases, their names are show databases; 1. mysql 2. test open mysql database use mysql; find the table named as 'user' , there mysql users and their access privileges are stored. select Host, User, Password from user modify Host column as you wish to limit

Re: [PHP] can I limit DB access

2005-04-01 Thread Martín Marqués
El Vie 01 Abr 2005 17:22, Dave Reinhardt escribió: How can I limit access to my database to one computer or one domain? I do not want it accessable from just any place on the web. This is DataBase related. PHP has nothing to do with it. And anyway, you are not saying which database you are

[PHP] pass variable from vbscript to php

2005-04-01 Thread Ashley
I have a unique problem that may be able to be solved another way, but I don't know how. What I need to do is pass a variable from a vbscript into php for use. I am using vbscript to access an activeX control on the computer that grabs the currently logged in user. This works fine, but I

Re: [PHP] FW: php pages

2005-04-01 Thread Alan Milnes
bruce wrote: hey guys can someone tell me why this seems to work.. is it because a security attribute hasn't been correctly set? It's called an easter egg - check out your phpinfo on April 1st ... http://www.phpfreaks.com/articles/229/0.php Alan -- PHP General Mailing List

RE: [PHP] pass variable from vbscript to php

2005-04-01 Thread Chris W. Parker
Ashley mailto:[EMAIL PROTECTED] on Friday, April 01, 2005 2:32 PM said: I have a unique problem that may be able to be solved another way, but I don't know how. Another way? What's the first way? :| What I need to do is pass a variable from a vbscript into php for use. I am using

Re: [PHP] Easy way to grab a value out of XML?

2005-04-01 Thread Rasmus Lerdorf
The XML functions really aren't that hard to use. If you just want a simple parse to pick out something have a look at: for PHP4: http://php.net/xml_parse_into_struct for PHP5: http://php.net/simplexml_load_file -Rasmus [EMAIL PROTECTED] wrote: you can handle xml output as if a string file,

[PHP] Recommendation for a MySql wrapper class

2005-04-01 Thread Ryan A
Hi, After spending a long time reading about SQL injection on the Google,PHP.net site and on Shifflet.org (very good article, links, feedback - and I'm really happy that knowledgeable people like Chris take the time to help actively on the list) I have some mixed views on how easy it is to

[PHP] Retrieve URL of website

2005-04-01 Thread HarryG
Hi, I want to retrieve the complete url in my php script. How can I do this? eg. www.mysite.com/mydirectory/mypage.php Result should either be www.mysite.com/mydirectory/mypage.php or /mydirectory/mypage.php Thanks in advance HarryG

Re: [PHP] Retrieve URL of website

2005-04-01 Thread Zareef Ahmed
HI, Look for $_SERVER['REQUEST_URI']; ?php print $_SERVER['REQUEST_URI']; ? But Dear first you should search the documentation , it is very easy to notice if you can use phpinfo(); zareef ahmed On Apr 2, 2005 8:12 AM, HarryG [EMAIL PROTECTED] wrote: Hi, I want to retrieve the

Re: [PHP] Retrieve URL of website

2005-04-01 Thread Leif Gregory
Hello HarryG, Friday, April 1, 2005, 7:42:25 PM, you wrote: H I want to retrieve the complete url in my php script. How can I do this? H eg. www.mysite.com/mydirectory/mypage.php H Result should either be www.mysite.com/mydirectory/mypage.php or /mydirectory/mypage.php If you mean on your own

[PHP] Connection to Two databases simultaneously

2005-04-01 Thread HarryG
Hi, I am connecting to two database in my index.php. Here is how: @ $db = mysql_connect(localhost, USERLOGIN, USERDBPASS); if (!$db) { print Error: Could not connect to database. Please try again later.; exit; } mysql_select_db(DATABASE); @ $userdb = mysql_connect(localhost, USERLOGIN,

Re: [PHP] getting filenames from dir

2005-04-01 Thread Mario St-Gelais
That should get you started : $dirname='/var'; $dh=opendir($dirname) or die('could not open directory'); while (!(($file=readdir($dh))===false)){ if (is_dir('$dirname/$file')){ $myarray[]=$file; } echo $filebr; $myarray[]=$file; } Mario Merlin wrote: Hi there, does anybody know

[PHP] Re: Retrieve URL of website

2005-04-01 Thread HarryG
Thanks guys. HarryG [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I want to retrieve the complete url in my php script. How can I do this? eg. www.mysite.com/mydirectory/mypage.php Result should either be www.mysite.com/mydirectory/mypage.php or /mydirectory/mypage.php Thanks

Re: [PHP] Recommendation for a MySql wrapper class

2005-04-01 Thread Dan Rossi
I have nothing to do with these but I would check out PEAR DB, MDB,MDB2 and ADODB. On 02/04/2005, at 10:41 PM, Ryan A wrote: -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php