Logging into sites with PHP/cURL via a Php script?

Status
Not open for further replies.

Enigmabomb

New member
Feb 26, 2007
2,035
66
0
Than Franthithco
I need some creative minds to bounce this problem off of. Here is my problem:

I wrote a script to do some database related functions in Zen Cart. Zen cart requires any script that can get its hand on the database live in a folder called "admin".

I want to set the script to run via cron.

However, to access anything behind /admin you must login via a username and password.

How do I fix this?!

Josh
 


Why don't you have your script connect to the database itself and perform its work?
 
It does connect to the database to do it's work. Now that Im thinking about it, I don't need to run it client side. I could run it command line.

See?! Dialoguing with smart people helps you talk about the answer sometimes.

Thanks

Josh
 
Haha yeah I was wondering why you wanted to run it like it was from a browser rather than just doing cmd line.
 
Status
Not open for further replies.