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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
-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
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
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
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
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?.
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
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
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
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
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
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
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:
?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'
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
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.
==
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
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
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
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
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
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
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
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
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,
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
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
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
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
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,
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
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
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
60 matches
Mail list logo