[PHP] cookie help

2001-07-24 Thread McShen
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,

Re: [PHP] cookie help

2001-07-24 Thread McShen
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

[PHP] please help.

2001-07-18 Thread McShen
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

Re: [PHP] please help.

2001-07-18 Thread McShen
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

Re: [PHP] whatever.php

2001-07-18 Thread 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?

[PHP] ereg() help, plz

2001-07-14 Thread McShen
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!=.

[PHP] chdir() help

2001-07-07 Thread McShen
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

Re: [PHP] chdir() help

2001-07-07 Thread McShen-CelebritieZones.com
- 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

Re: [PHP] chdir() help

2001-07-07 Thread McShen
-- 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

[PHP] testing

2001-07-05 Thread McShen
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]

[PHP] newbie help!

2001-06-30 Thread McShen
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); ?

Re: [PHP] -coding help

2001-06-24 Thread McShen
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

Re: [PHP] newbie algorithm help!!!!!

2001-06-23 Thread McShen
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.

[PHP] -coding help

2001-06-23 Thread McShen
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

[PHP] newbie algorithm help!!!!!

2001-06-20 Thread McShen
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

[PHP] help installing

2001-05-17 Thread McShen
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)

[PHP] what's wrong with this?

2001-04-22 Thread McShen
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

Re: [PHP] help!! newbie

2001-04-22 Thread McShen
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]...

[PHP] help!! newbie

2001-04-22 Thread McShen
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

[PHP] counter reseting help!

2001-04-14 Thread McShen
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:

[PHP] duplicate a table

2001-04-02 Thread McShen
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,

Re: [PHP] duplicate tables

2001-03-31 Thread McShen
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"

[PHP] duplicate tables

2001-03-30 Thread McShen
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

[PHP] mysql backup

2001-03-21 Thread McShen
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]

[PHP] php editors

2001-03-15 Thread McShen
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

[PHP] sort in mysql

2001-03-14 Thread McShen
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

[PHP] reset in mysql?

2001-03-12 Thread McShen
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

[PHP] mysql help!! urgent!

2001-03-10 Thread McShen
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

[PHP] newbie---cookie help

2001-03-04 Thread McShen
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

[PHP] way to save data

2001-02-11 Thread McShen
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

[PHP] tracking the current url

2001-02-09 Thread McShen
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

[PHP] PHP news groups

2001-02-03 Thread McShen
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,