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)

[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 "http://www.peel.net/frames/PMNforce.js>"; } - When I reload index.php, i see popu

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

Re: [PHP] please help.

2001-07-18 Thread McShen
>gettime(); > echo $total; > ?> > > -Original Message- > From: McShen [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, July 18, 2001 11:08 AM > To: [EMAIL PROTECTED] > Subject: [PHP] please help. > > > hi > > I wanna see how long my scripts load. So, i cop

[PHP] please help.

2001-07-18 Thread McShen
hi I wanna see how long my scripts load. So, i copied this script from phpbuilder --- -- But i am not sure where to put that part. Can i put it anywhere within my script? And bcsub() is not install on my server. What other fuctions can i use? can i just use $endtime-$starttime?

[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!="."

Re: [PHP] chdir() help

2001-07-07 Thread McShen
what you really want to output) > > hth > > --kurt > - Original Message - > From: "McShen" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Saturday, July 07, 2001 8:38 AM > Subject: [PHP] chdir() help > > > hi > > Currently

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 w

[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

[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 --- This is working fine. But it displays all files in 1 single page. Here is what i wanna do, but i don't know how to do it. I wanna display 15 files names at once, and have prev. and next buttons and the end, w

Re: [PHP] ->>coding help

2001-06-24 Thread McShen
ho '\n'; > for ($i = 0; $i <= 1; $i++) > { > @$result = mysql_fetch_array($result); > @$id = $result[id]; > @$title = $result[title]; > > echo "\n"; > echo "$title"; > echo "\n"; > } > echo "\n"; > } > >

[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 \n"; echo "\n"; while ($j!=$num) { @$r = mysql_fetch_array($result); @$id = $r[id]; @$title = $r[title]; echo "\n"; echo "$title"; echo "\n"; // new row in table every other link $i++; if (($i % 2)

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

[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] 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

Re: [PHP] help!! newbie

2001-04-22 Thread McShen
d use: > > "LIMIT 19, 39" > > 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]>

[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 unsubscr

[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: [EMAI

[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: > > >

[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 administrators

[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] load DB from other server

2001-03-20 Thread McShen
hi is it possible to load my DB from other servers? if yes, how? like mysql_connect("http://blah.com","username","pass"); 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] 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 (http://www.ph

[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 Genera

[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 n

[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 app

[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 comma

[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 trie

[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,