php-general Digest 6 Jul 2004 17:15:31 - Issue 2861
Topics (messages 189763 through 189807):
Grabbing last file...
189763 by: Ashley M. Kirchner
189768 by: Curt Zirzow
Re: uniqid function
189764 by: Curt Zirzow
189767 by: Michael Gale
session, explain?
I have a capture script that runs every 2 minutes and dumps an image
into a folder. I'm trying to write a script (which will get included in
another) that will grab the last image in the folder and pass it on.
The images are saved as 'capture..jpg' where is the
timestamp of the
* Thus wrote Michael Gale:
Hello,
I have a question about the uniqid function ... on a loaded system ...
lets say 60 people connected with each person making 2-3 web request per
second.
Each request running the following php command:
$token_name=md5(uniqid(rand(), true));
What
session_start();
setcookie(cartId, session_id(), time() + ((3600 * 24) * 30));
return session_id();
Can someone help me figure out what does the session of this code means?
--
Louie Miranda
http://www.axishift.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
I want to keep an entire library OUTSIDE of the document root. The library includes
some imgages. How can I have the browser include the imageges?
I've hard of BASE64'ing the images into the header and decoding them using javascript. Is this the best way? Where is code to do that?
--
PHP
Thanks for the reply.
Michael.
On Tue, 6 Jul 2004 06:38:57 +
Curt Zirzow [EMAIL PROTECTED] wrote:
* Thus wrote Michael Gale:
Hello,
I have a question about the uniqid function ... on a loaded
system ...
lets say 60 people connected with each person making 2-3 web
* Thus wrote Ashley M. Kirchner:
I have a capture script that runs every 2 minutes and dumps an image
into a folder. I'm trying to write a script (which will get included in
another) that will grab the last image in the folder and pass it on.
The images are saved as
* Thus wrote Louie Miranda:
session_start();
setcookie(cartId, session_id(), time() + ((3600 * 24) * 30));
return session_id();
Can someone help me figure out what does the session of this code means?
Looking at the description of setcookie:
bool setcookie ( string name [, string value [,
Hi there
If i am not mistaken, that is a standard part of the nfs suite.
All you need to make sure is that your export is correct, and the you are
not using the
-nolock option.
Other than that if its PHP you more interested in, look at the flock()
function.
Kind Regards
Brent Clark
Louie Miranda wrote:
session_start();
http://www.php.net/manual/en/function.session-start.php
setcookie(cartId, session_id(), time() + ((3600 * 24) * 30));
http://www.php.net/manual/en/function.setcookie.php
return session_id();
http://www.php.net/manual/en/function.session-id.php
Can someone
* Thus wrote Dennis Gearon:
I want to keep an entire library OUTSIDE of the document root. The library
includes some imgages. How can I have the browser include the imageges?
I've hard of BASE64'ing the images into the header and decoding them using
javascript. Is this the best way? Where
Hi,
Any help with the following is appreciated. I want to use php to store the
time that a user spent on 1 particular webpage in a mysql database. What I'm
trying to do now is:
1) using Javascript's OnLoad event I read out the time when the user 1st
opens the webpage
2) using Javascript's
Hi,
How can we communicate to E-bay API through PHP?
is it possible? or any alternative to E-bay API?
Basically I am going to develop a application with
E-bay functionality like Product Management, Auction
Mangement, and Digital Product delievey.
any info as usual will be appriciated.
zareef
Sign up for the ebay developers program and they give you access to their
api plus instructions on how to implement. You will also have access to a
sandbox environment to test your code. Be aware that once you move past the
sandbox environment, access to the ebay api is charged based on the number
Thanks a lot , your information is really useful for me.
Marek Kilimajer [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
kyle wrote:
Hi all,
Is there any simple, safe, and efficiency way to do file locking over
NFS?
Thanks.
You can mysql locks (maybe it works in other
So if it is a windows box, how would I set the permissions? or is the
permissions of the person who is logged into the machine?
Thanks In advance
raditha dissanayake [EMAIL PROTECTED] 7/5/2004 4:08:41 PM
Angelo binc2 wrote:
Hi all I am trying to upload a file using PHP.
I can successfully
I found this from php function list manual:
flock() will not work on NFS and many other networked file systems. Check
your operating system documentation for more details.
I wish flock can do NFS file locking, but offical manual says no to
Brent Clark [EMAIL PROTECTED] wrote in message
Hello,
On 07/06/2004 05:25 AM, Kyle wrote:
I found this from php function list manual:
flock() will not work on NFS and many other networked file systems. Check
your operating system documentation for more details.
I wish flock can do NFS file locking, but offical manual says no to
This is not
Hello,
On 07/06/2004 04:31 AM, Zareef Ahmed wrote:
Hi,
How can we communicate to E-bay API through PHP?
is it possible? or any alternative to E-bay API?
Basically I am going to develop a application with
E-bay functionality like Product Management, Auction
Mangement, and Digital Product
Hi,
How can I check if a form has been submitted, I have seen a demo that uses
the following:
if(isset($HTTP_POST_VARS))
But I understand that $HTTP_POST_VARS is depricated...
Thanks for your help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Shaun [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
How can I check if a form has been submitted, I have seen a demo that uses
the following:
if(isset($HTTP_POST_VARS))
But I understand that $HTTP_POST_VARS is depricated...
Thanks for your help
Check the $_POST
Hi,
Is there a way to get the timestamp when a file was CREATED? Looking
at stat I can find the modified date, last accessed and changed - but
not the created date. There doesn't appear to be a Filesystem function
for it either. I'm sure it's obvious, but it is alluding me for now.
Best regards,
Hi!
Creating a transparent png using GD and PHP is (almost) no problem, but
it's impossible to save
No matter what I try, the saved image wont remember that it's
transparent. I suspect the reason it works on the fly is because I
manually set the header to image/png, but if I try so save the
Hi.
[quote from php manual ]
In some Unix texts the ctime of a file is referred to
as being the creation time of the file. This is wrong.
There is no creation time for Unix files in most Unix
filesystems.
[/quote from php manual]
http://in2.php.net/filectime
zareef ahmed
--- Richard Davey
Hi.
[quote from php manual ]
In some Unix texts the ctime of a file is referred to
as being the creation time of the file. This is wrong.
There is no creation time for Unix files in most Unix
filesystems.
[/quote from php manual]
http://in2.php.net/filectime
zareef ahmed
--- Richard Davey
[snip]
Is there a way to get the timestamp when a file was CREATED? Looking
at stat I can find the modified date, last accessed and changed - but
not the created date. There doesn't appear to be a Filesystem function
for it either. I'm sure it's obvious, but it is alluding me for now.
[/snip]
The
raditha dissanayake a écrit :
at the risk of starting a flame war: IMAP is the devine way of using
email. POP3 sux. :-)
IMAP being a general file access protocol, there are inherent
security problems to be aware of. On some srv, you could easily
get /etc/passwd by simply knowing a single
Good afternoon,
I'm looking for recent numbers of the PHP Market Penetration - if
possible compared to ASP/JSP. The netcraft survey only shows apache vs.
IIS, can't find anything about PHP there.
Thanks!
Bert
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Angelo binc2 wrote:
So if it is a windows box, how would I set the permissions? or is the
permissions of the person who is logged into the machine?
That's not a PHP question! and i know very little about windows but I
can tell you that you can do it by right clicking on a folder and
selecting
Justin Patrin wrote:
On Mon, 5 Jul 2004 13:01:08 -0400, John Hicks [EMAIL PROTECTED] wrote:
On Monday 05 July 2004 07:33 am, I.A. Gray wrote:
Thanks- looked at Squirrel Mail. Looks really good,
however we use POP3- I don't think Squirrel Mail
uses POP3 does it?
Most if not all
On Tuesday 06 July 2004 17:50, Torsten Roehr wrote:
How can I check if a form has been submitted, I have seen a demo that
uses the following:
if(isset($HTTP_POST_VARS))
But I understand that $HTTP_POST_VARS is depricated...
Thanks for your help
Check the $_POST superglobal:
if
Jason Wong [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Tuesday 06 July 2004 17:50, Torsten Roehr wrote:
How can I check if a form has been submitted, I have seen a demo that
uses the following:
if(isset($HTTP_POST_VARS))
But I understand that $HTTP_POST_VARS
Can you post your code so we can see what might be going on?
-Josh
On Mon, 5 Jul 2004 13:06:58 -0400, Joe Carey [EMAIL PROTECTED] wrote:
I'm trying to read a text file from one server from another. When I read
from server A to B it works fine and I get the text output that I'm looking
for.
On Tuesday 06 July 2004 19:48, Victor Spng Arthursson wrote:
Creating a transparent png using GD and PHP is (almost) no problem, but
it's impossible to save
Here you say it's impossible to save, but then further down you contradict
this by saying that you did manage to save it - only the
Shaun wrote:
Hi,
How can I check if a form has been submitted, I have seen a demo that uses
the following:
if(isset($HTTP_POST_VARS))
But I understand that $HTTP_POST_VARS is depricated...
Depricated or backward compatible, depends on your view. The hot new
way is to use $_POST superglobal array
Hi all
I've a little problem with creating a dynamic var.
This is my line code :
$erreur .='Le champs '.${'corresp_chps[\''.$champs.'\']'}.'br';
Yes i need the quote, cause it's not my var but a webservice one and the
name var is 001 so i've indexed my array with '001' etc..;
Thx a lot
And this
Bert Slagter a écrit :
I'm looking for recent numbers of the PHP Market Penetration - if
possible compared to ASP/JSP. The netcraft survey only shows apache vs.
IIS, can't find anything about PHP there.
It seems you didnt search Google very long.
Simple google searches like
number of sites
Christophe Chisogne wrote:
raditha dissanayake a écrit :
at the risk of starting a flame war: IMAP is the devine way of using
email. POP3 sux. :-)
IMAP being a general file access protocol, there are inherent
security problems to be aware of. On some srv, you could easily
get /etc/passwd by
Hello Jason,
Tuesday, July 6, 2004, 2:37:08 PM, you wrote:
JW It might not be a good idea to rely on the submit button to be set. Some
JW browsers do not set/send it if you didn't explicitly click on the submit
JW button. I would use:
Absolutely. If you hit ENTER to submit a form (rather than
Hi Manuel,
Do you mean I can just use flock over NFS ?
Manuel Lemos [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello,
On 07/06/2004 05:25 AM, Kyle wrote:
I found this from php function list manual:
flock() will not work on NFS and many other networked file systems.
Check
Unfortunately I'm not well informed about php and everything that comes with
it.
My site is created by someone who is totally out of the picture at ther
moment and I have a problem
On my site it was possible to create aktueeltjes (newsflashes) and add
them on the aktueeltjes part of my site
I
Hi,
I have created an online scheduling system using PHP and MySQL. The site is
uses CSS for the presentation and each page uses a header and footer file so
that only core functionality is contained in each page. I now need to create
another site which runs using the same database and function
Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello Jason,
Tuesday, July 6, 2004, 2:37:08 PM, you wrote:
JW It might not be a good idea to rely on the submit button to be set.
Some
JW browsers do not set/send it if you didn't explicitly click on the
submit
JW
Hey everybody,
I am looking for some type of user tracking/stat collecting package. I am
sure there's a million; any recommendations? We have some specific needs as
well, so mostly likely I will be have to make some code changes. So the
simpler package the better.
Christian
--
PHP General
Hi,
I am modifying my site so that links for each page are held in a database to
make my site more portable. However if I have link such as
edit_user.php?user_id=$_GET[user_id] stored in the database will the $_GET
variable get processed and the appropriate value returned to the browser?
Thanks
Are you using 2 different servers or just one? if only one then how would
URL X and URL Y look?
Since X and Y will refer to a different file, my suggestion is to change the
include('X-header') to inlcude('Y-header') in the Y version.
Some more info whould be nice
Shaun [EMAIL PROTECTED] wrote in
I think the function eval is what you are looking for. http://php.net/eval
Shaun [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I am modifying my site so that links for each page are held in a database
to
make my site more portable. However if I have link such as
Hi Gerben,
Thanks for your reply, the site will be on one server - the idea is that
there will be two domain names pointing to the server:
http://www.domain_x.com/ and http://www.domain_y.com/. Both of these domains
will have a very different interface comprised of header.php, footer.php and
a
Hello,
On 07/06/2004 12:56 PM, Kyle wrote:
Hi Manuel,
Do you mean I can just use flock over NFS ?
It depends. You need to check whether the NFS server that you use
supports it.
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP
On Tue, 6 Jul 2004 18:15:17 +0200, Torsten Roehr [EMAIL PROTECTED] wrote:
Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello Jason,
Tuesday, July 6, 2004, 2:37:08 PM, you wrote:
JW It might not be a good idea to rely on the submit button to be set.
Some
JW
Try searching www.hotscripts.com, they have a lot of good scripts
there...
On Tue, 2004-07-06 at 06:15, Christian Calloway wrote:
Hey everybody,
I am looking for some type of user tracking/stat collecting package. I am
sure there's a million; any recommendations? We have some specific needs
Justin Patrin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Tue, 6 Jul 2004 18:15:17 +0200, Torsten Roehr [EMAIL PROTECTED]
wrote:
Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello Jason,
Tuesday, July 6, 2004, 2:37:08 PM, you wrote:
Alan McDonald wrote:
I've downloaded the 4.3.7 tar ball and extractted it. I've run configure
(after deleting the cache), no errors. I've run make - no errors, I've
then
run make install.. no errors, it says it's updating and installing.
Now I've restarted my httpd service - I've
What type of tracking ? ... number of hits ? pages visited by # of times ??
If you use sessions ... which I am assuming you are. You could create a table:
user-id,page,times
Then when you do the session check you could update:
INSET INTO webwatch_table SET user-id=' . $_SESSSION['userid'] .
Shaun wrote:
Hi Gerben,
Thanks for your reply, the site will be on one server - the idea is that
there will be two domain names pointing to the server:
http://www.domain_x.com/ and http://www.domain_y.com/. Both of these domains
will have a very different interface comprised of header.php,
I am looking for some type of user tracking/stat collecting package. I
am sure there's a million; any recommendations? We have some specific
needs as well, so mostly likely I will be have to make some code
changes. So the simpler package the better.
You don't mention any of the specific needs
I've been writing LAMP applications for awhile; the option to write a
tracking system myself is always viable.. but since I am extraordinarily
lazy, I am looking for a general package that I could modify. What I really
wanted was anyone's feedback or recommendations on tracking packages
currently
I may do that, but the 'showimage.php' file then has to be in the
document root, and can be attacked a LOT.
I have found ways to do inline images, without javascript, I believe.
Curt Zirzow [EMAIL PROTECTED] wrote:
* Thus wrote Dennis Gearon:
I want to keep an entire library OUTSIDE of the
I am looking for some type of user tracking/stat collecting package. I
am sure there's a million; any recommendations? We have some specific
needs as well, so mostly likely I will be have to make some code
changes. So the simpler package the better.
You don't mention any of the specific
On Tue, 6 Jul 2004 21:19:35 +0200, Torsten Roehr [EMAIL PROTECTED] wrote:
Justin Patrin [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Tue, 6 Jul 2004 18:15:17 +0200, Torsten Roehr [EMAIL PROTECTED]
wrote:
Richard Davey [EMAIL PROTECTED] wrote in message
news:[EMAIL
I am looking for a way to parse custom html tags. I would like to then
replace those tags with php/html code. Here is an example of the html
file to be parsed. Notice the component, they are the custom tags I
wish to replace with code. I only need help in parsing the tags and
storing in a variable
I use a system like that described below, however I added some checks to
thwart attack.
first, the image serving script checks to make sure the user has a session
id. This prevents people just loading the script to get the images, and
also deters hot linking.
second, I have a script that runs
Christophe Chisogne wrote:
It seems you didnt search Google very long.
I did, actually :).
Simple google searches like
number of sites running php site:netcraft.com
lead to results on netcraft.com, by example
a php vs coldfusion vs jsp page [1] found via link
on the 2003/08 netcraft survey [2]
Koyaan wrote:
Unfortunately I'm not well informed about php and everything that comes with
it.
My site is created by someone who is totally out of the picture at ther
moment and I have a problem
On my site it was possible to create aktueeltjes (newsflashes) and add
them on the aktueeltjes part of
* Thus wrote Torsten Roehr:
How do you check which button was pressed (read: which action should be
performed) when not relying on this?
The button is generally *not* sent by the browser if you hit enter
instead of submit. This *will* happen, so you have to deal with it.
If
Hi,
I'm trying to convince my host to install the dutch dictionary for Pspell?
Do you need to recompile PHP after installing a new dictionary unders
Pspell? My host doesn't want to recompile PHP...
Thanks!
-Maarten Winkels
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
Hi George,
How about this?
parse the html as xml and replace the component tags with whatever php/html code
output that result to a file
include the file from previous step
Eric
On Tue, 6 Jul 2004 15:56:26 -0500, George Lantz
[EMAIL PROTECTED] wrote:
I am looking for a way to parse custom
Hi Frank,
I think you could use
window.location=test.php?time=xxx
in the onUnload instead of opening a new window.
Eric
On Mon, 5 Jul 2004 14:08:14 -0400, Frank Voorburg
[EMAIL PROTECTED] wrote:
Hi,
Any help with the following is appreciated. I want to use php to store the
time that a
Eric Emminger wrote:
Hi George,
How about this?
parse the html as xml and replace the component tags with whatever php/html code
output that result to a file
include the file from previous step
That's a good suggestions but problems arise because HTML does not have
to be well formed. There is
* Thus wrote Pierre:
Hi all
I've a little problem with creating a dynamic var.
This is my line code :
$erreur .='Le champs '.${'corresp_chps[\''.$champs.'\']'}.'br';
You're making it more complicated that it needs to be:
$erreur .= 'Le champs '. $corresp_chps[$champs] .'br';
Curt
--
I've created a web page utilizing 3 frames (header, index, main). In the
frame named 'main' I have a form setup for logging into a MySQL database.
On a successful login I want to change the html in 'index' and 'main'. The
active frame 'main' is easy, as the new html code will go into this window
Dear all,
I get error : import_request_variables while I make a script to call a
variable.
This my header (in my script -- error) :
import_request_variables( GPC );
anybody knows why this happen ?
Regards,
Kalpin Erlangga S
--
PHP General Mailing List (http://www.php.net/)
To
I get error : import_request_variables while I make a script to call a
variable.
This my header (in my script -- error) :
import_request_variables( GPC );
anybody knows why this happen ?
So, what's the exact error PHP gives you?
Regards,
Philip
--
PHP General Mailing List
Dear Philip,
I got this error at browser :
Fatal error: Call to undefined function: import_request_variables() in
/var/www/html/zm.php on line 21
- Original Message -
From: Philip Olson [EMAIL PROTECTED]
To: Kalpin Erlangga Silaen [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent:
I get error : import_request_variables while I make a script to call a
variable.
This my header (in my script -- error) :
import_request_variables( GPC );
anybody knows why this happen ?
So, what's the exact error PHP gives you?
I got this error at browser :
Dear Philip,
Thank you for your suggestions, may I will upgrade my php to newer version
for better results.
Regards,
Kalpin Erlangga Silaen
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Robert Frame wrote:
I've created a web page utilizing 3 frames (header, index, main). In the
frame named 'main' I have a form setup for logging into a MySQL database.
On a successful login I want to change the html in 'index' and 'main'. The
active frame 'main' is easy, as the new html code will
Hi Chrsitian,
If you're looking fro a web or static stats package, IMHO none better than:
http://awstats.sourceforge.net/
(I've used other packages, but this is the most flexible.)
Hth,
Andre
On Tuesday 06 July 2004 07:15 am, Christian Calloway wrote:
Hey everybody,
I am looking for some
Hello,
Is there a way to monitor or test out how much CPU / memory a php page
uses ? I would like to find out how intensive some of my scripts are.
Thanks.
Michael
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Michael Gale wrote:
Hello,
Is there a way to monitor or test out how much CPU / memory a php
page uses ? I would like to find out how intensive some of my scripts
are.
Don't know about CPU, but you can get memory usage with this function:
I have a class definition that has a lot of private properties. These
properties don't need to change often, in fact a user could probably
just change the values once and forget about most of them. So this
makes me think that I should use parse_ini_file and a configuration file
to let users
Trying to use the following statement to upload a file via a form, when
I use a variable $foo in the following statement it works correctly:
if (copy($foo, ./$foo_name)) {//blah... }
The name of the file I am trying to upload $foo is evaluated correctly.
Likewise I can obtain the file size,
Jason Barnett wrote:
I have a class definition that has a lot of private properties. These
properties don't need to change often, in fact a user could probably
just change the values once and forget about most of them. So this
makes me think that I should use parse_ini_file and a
Tony wrote:
Trying to use the following statement to upload a file via a form, when
I use a variable $foo in the following statement it works correctly:
if (copy($foo, ./$foo_name)) {//blah... }
The name of the file I am trying to upload $foo is evaluated correctly.
Likewise I can obtain the
John W. Holmes wrote:
Tony wrote:
Trying to use the following statement to upload a file via a form,
when I use a variable $foo in the following statement it works
correctly:
if (copy($foo, ./$foo_name)) {//blah... }
The name of the file I am trying to upload $foo is evaluated correctly.
85 matches
Mail list logo