in order to prevent my visitors from seeing more than one popup in less than
120 second, I added this to my php page(index.php)
--
setcookie(popup,1,time()+120);
if ($popup!=1)
echo script src=http://www.peel.net/frames/PMNforce.js/script;
}
-
When I reload index.php,
thanks!
Rasmus Lerdorf [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
in order to prevent my visitors from seeing more than one popup in less
than
120 second, I added this to my php page(index.php)
--
setcookie(popup,1,time()+120);
if
hi
I wanna see how long my scripts load. So, i copied this script from
phpbuilder
---
?php
$timeparts = explode( ,microtime());
$starttime = $timeparts[1].substr($timeparts[0],1);
$timeparts = explode( ,microtime());
$endtime = $timeparts[1].substr($timeparts[0],1);
echo
ok thx
Michael Geier [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
try using the attached class.
?
$time = new timer;
$time-start();
// some code
$time-stop();
$total = $time-gettime();
echo $total;
?
-Original Message-
From: McShen
yea, make your whatever.php as a php file. that happened to me before. :)
Chris Schneck [EMAIL PROTECTED] wrote in message
002101c10fb4$252cafa0$[EMAIL PROTECTED]">news:002101c10fb4$252cafa0$[EMAIL PROTECTED]...
Did you make sure you had the ?? tags in the whatever.php enclosing the
content?
hi,
I wanna print out all files in a directory. But i wanna exclude ., ..,
head.jpg, and all files that start with tn_
Here is my script, but it didn't work. Please help me to solve this problem.
Thank You.
-my script-
while ($file_name = readdir($dir2))
if (($file_name!=.
hi
Currently, i am working in e:\work, and there is a folder named image under e:\work,
so, the path to image is e:\work\image.
I have a script under e:\work, and i wanna display all images under the folder
e:\work\image, I use chdir() to change the directory. but it wouldn't work. it still
-
From: Chris Lambert - WhiteCrown Networks [EMAIL PROTECTED]
Newsgroups: php.general
To: McShen [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 11:44 AM
Subject: Re: [PHP] chdir() help
I'm not sure I know exactly what you want, as the script isn't clear on its
purpose
--
From: McShen [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, July 07, 2001 8:38 AM
Subject: [PHP] chdir() help
hi
Currently, i am working in e:\work, and there is a folder named image
under e:\work, so, the path to image is e:\work\image.
I have a script under e:\work, and i wanna
where are u guys?
--
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]
hi
I wrote a script to display all file in a directory. Here is my script
---
?php
$dir_name = e:\celebs\christina_aguilera;
$dir = opendir($dir_name);
while ($file_name=readdir($dir)) {
if (($file_name!=. $file_name!=..)) {
echo $file_name.\nnbsp;nbsp;;
}
}
closedir($dir);
?
o brbr\n;
?
Jason Lotito
www.NewbieNetwork.net
PHP Newsletter: http://www.newbienetwork.net/ciao.php
PHP, MySQL, PostgreSQL Tutorials, Code Snippets, and so much more
-Original Message-
From: McShen [mailto:[EMAIL PROTECTED]]
Sent: Saturday, June 23, 2001 11:22 PM
To: [EMAIL P
please share if you know hwo to di it. thanks you
McShen [EMAIL PROTECTED] wrote in message
9gqm6o$g6n$[EMAIL PROTECTED]">news:9gqm6o$g6n$[EMAIL PROTECTED]...
hi
i have a mysql table with approx. 30 entries.
I wanna get them(i know how to do that) and list them in a 2-column table.
Hi
I have a script which queries mySQL and outputs 32 links at once. Here is my
scipt
?php
$connection = mysql_connect(***,,);
if ($connection==false)
{
echo mysql_errno().:.mysql_error().;
exit;
}
$end = $list + 16;
$query = SELECT * FROM refer ORDER BY hits desc
hi
i have a mysql table with approx. 30 entries.
I wanna get them(i know how to do that) and list them in a 2-column table. I
have been trying to use a loop to do it. But it will only produce a 1-column
table. it's like
entry 1
entey 2
entry 3
entry 4
etc
Please help me so that i can get this
i was trying to install php on windows 2k pro.
i got this message when i was trying to run the test scrpt
PHP CGI binary (\php) is not executable. Please compile PHP as a CGI
executable and try again.
why is that?
and should i read the instruction for IIS 4.0+ (isapi) or IIS 4.0+ (CGI)
this is something related to my last post.
$start is passed by the url. like http://mydomain.com/links.ph?start=0;
$end =$start+15;
$query = "SELECT * FROM refer ORDER BY hits desc LIMIT $start,$end";
it didn't work. Please help.
--
PHP General Mailing List (http://www.php.net/)
To
t;
The offset is refering to an array, so offset 0 is actually the first
link.
--
Plutarck
Should be working on something...
...but forgot what it was.
""McShen"" [EMAIL PROTECTED] wrote in message
9btbqt$t79$[EMAIL PROTECTED]">news:9btbqt$t79$[EMAIL PROTECTED]...
hi
I have 30 links stored in a table(mysql) now. I wanna show them accorging to
the traffic they send. But i don't want to list all of them in just 1 page
because i will be adding 300 links soon. (I don't want my visitors to wait 3
minutes to load the links)How should i do it? I wanna do it like
hi
I am writing a small counter for my site. But i am not sure how to reset the
counter every 24h. How should i do it? any suggestions would be much
appreaciated!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail:
how do i duplicate a table?
i tried
create table refer2 select * from refer;
create table refer2 as select * from refer;
they didn't work.
my mysql version is mysql 3.22.28,
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
that didn't work. I tried that.
"CC Zona" [EMAIL PROTECTED] wrote in message
9a3hk3$bn7$[EMAIL PROTECTED]">news:9a3hk3$bn7$[EMAIL PROTECTED]...
In article 9a3fme$4hg$[EMAIL PROTECTED],
[EMAIL PROTECTED] ("McShen") wrote:
i have a table named "refer"
hi
i have a table named "refer"
I wanna duplicate a table name "refer2" so that i can mess around with it.
Thanks.
--
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
hi
how do i back up a mysql DB table? Can you please write me the code?
Thanks.
--
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]
I am looking for good php editors. Currently, i am using PHP coder. It
highlights syntax and checks my syntax. It's also executes my PHP codes. Are
there any editors like that? I just want a editor that highlights my code
and check my syntax.
regards
--
PHP General Mailing List
hi
I have a database with some urls and numbers. There are currently 2 records
in the database. I wanna sort them by the numbers. How should i do it?
my table is like
name hits
john 343
scott 3423
any suggestions would be greatly appreciated!
--
PHP
hi
I have a database which tracks how many hits a website has sent me. I wanna
write a script to reset this particular field so that it will be zero at
12:00 in the morning. How do i do it? Any suggestion would be appreciated.
my database is kinda like this(mysql
hi
i get this message when i am trying to load some data from mysql.
Warning: Unable to jump to row 0 on MySQL result index 2 in
/home/sites/site3/web/showthumb on line 71
--here is my code
$connetion = mysql_connect("localhost","cel34243","s2343223");
$query = "select images from celeb where
hi
Please help a newbie.
I have 2 links on my website. It wil show "NEW" if my visitors have only
visited my site once in 24h. If my visitors visit my site for more than once
in 24h, i wanna show "OLD". I know cookie can do it. but i don't know how,
Please help. Any script will be greatly
hi
I realized that there are 2 ways to save data. Using mySQL or a textfile.
Which do you think is better? i like using myysql instead a textfile cuz
it's faster and it's securier.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
hi
Can you tell me how to track the current url by using PHP? for example,
Mike is visiting http://www.celebritieszones.com/showthumb/britney_spears/1/
and i wanna make a PHP script so it tells Mike that he is currently browing
http://www.celebritieszones.com/showthumb/britney_spears/1/
I
hi
I am just wondering if there are any PHP newsgroups like this one. I am
looking for PHP newgroups so that i can ask people questions.
mick
http://www.celebritieszones.com
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands,
32 matches
Mail list logo