Hi,
I am running the following function in my PHP script:
exec("/usr/local/bin/wget
http://www.getresponse.com/cgi-bin/add.cgi?misc=1&ref=001&category1=trtips&cat
egory2=a&category3=".$Grab[2][$i]."")or die ("Error");
It is run inside an if loop and $Grab[2][$i] contains an e-mail address.
H
Ok,
Thanks for the input, unfortunately it didn't help me solve my overall
problem, so I will post that and see if anyone has any suggestions...
I am basically displaying the Usernames from a .htpasswd file like this...
$File="$Path$Directory1/.htpasswd";
$fd = fopen ($File, "r");
$Content =
Hi,
If I have a value $num = 32; based on this how can I create an Array of
numbers 1 - 32, something like this...
Any suggestions?? I cannot use array_push as this has to work on a PHP3
server.
TIA
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTE
Hi
I had this article sent to me on another list I am subscribed to, just
wondered what other people thought of it :-)
http://www.securereality.com.au/studyinscarlet.txt
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e
Hi,
I know this question has been asked many times before so I am not asking
again :-) What I am asking is how I can search the forum, is there a web
based system that I can use to search???
TIA
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
F
Hi I'm trying to create a script which my cron will run once a day to backup
my MySQL database, but the exec command doesn't want to work no matter what I
try...
exec("mysqldump -h localhost -u user -p pass --opt DataBase >
BACKUPS/backup.mysql") or die("Problem");
I have tried adding the f
Thanks Jeff,
Thats just the job.
Ade
<< Here is the function I use when I am comparing differences ($now and $old
are Unix timestamps):
function datediff($now, $old)
{
$DIS = $now - $old; // Diff In Secs
$secs = $DIS % 60; // modulo
$DIS -= $secs;
$days = floor($DIS / (24*60
Hi,
I`m trying to get the difference between two date/times and then state how
many days, hours and minutes there are between them.
So I take my date and convert it into unix time. Then get the current time,
and then subtract the two to get the current difference in unix seconds. What
I`m ha
Hi,
Unfortunately that won`t work for me because I don`t have access to setting
up a Cronjob on this account, thanks for the suggestion though.
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
T
Hi,
I am building a custom e-mailer for one of my websites using PHP and MySQL, I
know there are loads out there already but my goal here is to learn this
coding myself so I can modify it to my needs as and when they change.
My list only has around 5000 subscribers at the moment and I have h
In a message dated 03/05/2001 18:07:18 GMT Daylight Time,
[EMAIL PROTECTED] writes:
<< Hello,
I am making a suite of php tolls that I want to have all incorporated in one
management website. What I would like to have is a drop down menu in a
frame on the left. A great example of what I wa
In a message dated 21/04/2001 15:31:36 GMT Daylight Time, [EMAIL PROTECTED]
writes:
<< How to redirect to another page in php. Is there any inbuilt function
available for redirection.
If possible send with example.
Thanks
kishor >>
Use the Header call,for more info see www.php.net an
Hi,
Does anyone know how I can list all the files begining with help in one of my
pages.
So I have a dir which has various files, like so:
help_me.php
help_you.php
help_us.php
Is there some command I can use to select all the files and then print them
out?
TIA
Ade
--
PHP General Mailing L
In a message dated 12/04/2001 09:55:18 GMT Daylight Time,
[EMAIL PROTECTED] writes:
<< How can i include a file as an attachment in an email? I'm looking for
something like this...
mail($to_email,%subject,$content,$attached_file);
Thanks in advance!
Dan >>
Unfortunately it`s not that
In a message dated 11/04/2001 12:58:11 GMT Daylight Time, [EMAIL PROTECTED]
writes:
<< > Does anyone know how to detect when a user connects to the Internet
> similar to ICQ?
Sure. Three main possibilities:
(1) Install a wire tap at his telephone line, together with some logic to
detect
In a message dated 03/04/2001 03:52:47 GMT Daylight Time,
[EMAIL PROTECTED] writes:
<< include "class.FastTemplate.php";
>>
Just for a start, I didn`t notice anything else in the code...
include ("class.FastTemplate.php");
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscri
Hi,
I`m about to buy the Zend encoder from thier website and thought I better ask
a pretty important question, unfortunately Zend couldn`t be bothered to
follow up the lead on someone who might buy thier product so I thought I
would turn to you guys to see if any of you know.
Is it possible i
Hi,
Does anyone know if there is a way to execute a shell command in a php
script? I am trying to execute the following:
/usr/sbin/cadduser -d www.domain.com -f Adrian -u testing -p testing -q 10 -w
[EMAIL PROTECTED]
I have tried passthru(), system(), exec() and none seem to work. I also trie
In a message dated 30/03/2001 17:59:52 GMT Daylight Time,
[EMAIL PROTECTED] writes:
<< Correct me if I am wrong, but I thought that using IN needed to be followed
by a comma separated list (with each value individually separated from the
others) like this:
$query="DELETE FROM EmailAddress W
Hi,
Can anyone see a problem with this?
It keeps stopping on $query1
thanks
Ade
--
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]
In a message dated 29/03/2001 21:42:57 GMT Daylight Time,
[EMAIL PROTECTED] writes:
<< If you have permission to modify php.ini, see the setting "display_errors"
and the attached comments. You can tell PHP to write these error messages to
a log file instead of to the browser.
Kirk >>
If I
Hi Andrew,
I`m not sure if switching from http to https will count as a *new* domain,
but here is a link to some information which may solve your problem.
http://phpbuilder.com/columns/chriskings20001128.php3
HTH
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
Hi,
I currently have sessions working nicely on my site, but I want to add a
timeout feature. What would be the best method, grabbing the server time and
setting it using the session_register, and then running a time check so if
the session time is more than one hour old destroy it??
Ade
--
Hi,
I have two database`s with one table in each. (MySQL)
Is there a way that I can select data from one table and then match it with
the data in another and discard the results so all I am left with is the
original data from the first table which never matched up.
Database1
EmailAddress
In a message dated 29/03/2001 15:27:27 GMT Daylight Time, [EMAIL PROTECTED]
writes:
<< To get this done I would use an Expect script, driven through CGI.
Mike
>>
Problem is I don`t program in CGI so have no idea what you mean :-)
Ade
--
PHP General Mailing List (http://www.php.net/)
To
Hi,
Ok I have a real tough one here (well to me it is :-)
If I telnet into my server I can add a user by running the following
command...
/usr/sbin/cadduser -d www.domain.com -f users full name -u username -p
password -w emailaddress for forwarding
Which is great, but as I`m offering fre
Hi,
Is there any way in PHP to print out the schema of my database tables?
Cheers
Ade
--
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]
In a message dated 24/03/2001 14:47:03 GMT Standard Time, [EMAIL PROTECTED]
writes:
<< Is it possible using PHP to print a single line of text to a browser,
have a second or two delay and then print the next line, etc. etc.?
Greg >>
Hi,
You can use the following commands:
sleep(seconds);
Hi,
I`m not sure if this is 100% the right method but you can try it and see.
Change httpd.conf to the following.
AddType application/x-httpd-php .php .php3
Ade
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
If that's a copy of your code, you might want to check the if($SET=1)
line...that will always return true, because you're setting a variable, not
checking for equality...should be if($SET==1) instead
jack
Ooops ok put that bit right, I should really know better :-) but it still
doesn`t sol
Ok these sessions have got me all confused, I need to have two seperate
sessions one for when a user signs up, to stop them using there back button
and inadvertantly signing up twice. And then one when they login. Both of
them work great as standalone but if say I went and log into my account a
Hi,
I am going to use sessions to authenticate and protect my pages, this is what
I have so far...
User logs in via form, this is checked via a SQL call, if the correct
username and password are entered I run the following:
session_start();
session_register("UserName","Password");
hea
Hi,
I`m having whats probably a very basic problem but just can`t get my head
around it this late in the day, anyone have any idea why this won`t work?
$URL="domain.com";
header ("Location: Http://www.$URL/members/index.php");
$URL changes so I can`t write it directly into the header line, an
Hi
Whats the best method to get the filename of the file I am using. E.G if the
file is called tom_woz_here.php and would I go about stickin that into
$FileName= ???
Thanks
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-
34 matches
Mail list logo