FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old August 19th, 2003, 02:55 AM
superman's Avatar
superman superman is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 88 superman User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 6
Ftp

i use ftp to upload the folder called 'phpweb' that contains php file to 10.1.1.200 server, then what should i change for localhost, username & password? if i create a crontab, is it just type in 'crontab -e', then type in * * * 1 * php /phpweb/cron.php?


PHP Code:
 $Connect mysql_connect("localhost""root""");
mysql_select_db("help"); 

Reply With Quote
  #2  
Old August 19th, 2003, 03:09 AM
a.koepke's Avatar
a.koepke a.koepke is offline
Second highest poster :p
Dev Shed God 5th Plane (7000 - 7499 posts)
 
Join Date: Jul 2001
Posts: 7,323 a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level)a.koepke User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 8 h 8 m 45 sec
Reputation Power: 26
Re: Ftp

Quote:
Originally posted by superman
i use ftp to upload the folder called 'phpweb' that contains php file to 10.1.1.200 server, then what should i change for localhost, username & password?


WTH? That makes no sense at all, I have no idea what you are referring to.

Quote:
Originally posted by superman
if i create a crontab, is it just type in 'crontab -e', then type in * * * 1 * php /phpweb/cron.php?


PHP Code:
 $Connect mysql_connect("localhost""root""");
mysql_select_db("help"); 


Have a look in the FAQ thread at the top of the forums, they have examples of using PHP with Cron.

Now... what is the mySQL connection code all about, what does that have to do with the above 2 things.

You really need to sit down and think about something before you post it.

Also can you please read the thread [NEW USERS] How to post a question as the subject of your post is not descriptive of your problem.... whatever that is.

Reply With Quote
  #3  
Old August 19th, 2003, 03:14 AM
John5788's Avatar
John5788 John5788 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: 127.0.0.1
Posts: 442 John5788 User rank is Corporal (100 - 500 Reputation Level)John5788 User rank is Corporal (100 - 500 Reputation Level)John5788 User rank is Corporal (100 - 500 Reputation Level)John5788 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 2 h 10 m 16 sec
Reputation Power: 7
Send a message via ICQ to John5788 Send a message via AIM to John5788 Send a message via Yahoo to John5788
i think what he is trying to ask is:

i uploaded a script to a folder called phpweb and it needs mysql database username and password. what should i put as username and password?

--------------

answer: check with ur host to see what the username/password/database is

Reply With Quote
  #4  
Old August 19th, 2003, 06:05 AM
computer's Avatar
computer computer is offline
echo $usertitle['computer'];
Dev Shed God 4th Plane (6500 - 6999 posts)
 
Join Date: Jan 2003
Location: UK
Posts: 6,673 computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level)computer User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 4 Weeks 9 h 2 m 19 sec
Reputation Power: 219
Send a message via ICQ to computer
and he wants to put the php file to run on cron.

-----

anwser: see koepkes post

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > Ftp


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway