[PHP-WIN] RE: [PHP] Problem with the HTTP_REFERER

2001-04-27 Thread Ben Cairns
Yes but you can call the Header() function in the middle of the page if you need to. You just need to put this line as the VERY FIRST line of the script: This uses the PHP Output Buffering functions. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332

[PHP-WIN] RE: [PHP] What's wrong with Apache + php + mysql on Windows?

2001-04-27 Thread Ben Cairns
ld be usefull to. also, the script your trying to execute, and does the script actually run? or does it just time out. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the I

RE: [PHP-WIN] find URL in text and make a link

2001-04-23 Thread Ben Cairns
$YOUR-STRING= eregi_replace("([[:alnum:]]+)://([^[:space:]]*)([[:alnum:]#?/&=])","\\1://\\2\\3", $YOUR-STRING); hth -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.c

RE: [PHP-WIN] apache 404 handler

2001-04-23 Thread Ben Cairns
er that is larger that I think 2.5Kb, this way, IE knows that its a custom error doc, and displays this instead. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION

[PHP-WIN] Sendmail

2001-04-20 Thread Ben Cairns
I know this is a windows list, but I need to know how to configure Sendmail on a Redhat Linux machine to relay messages through another host. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http

[PHP-WIN] reading an image into a string

2001-04-17 Thread Ben Cairns
I need to open an image and convert its binary type to hex, what I need to do is a bin2hex on the binary info of the image, sounds simple enough. Although, I can get php to open the image and read the (binary) contents into a string, can someone help me. Thanks. -- Ben Cairns - Head Of

[PHP-WIN] IMAP

2001-03-29 Thread Ben Cairns
)."\n"; print("Unseen: ". $status->unseen )."\n"; print("UIDnext:". $status->uidnext)."\n"; print("UIDvalidity:". $status->uidvalidity)."\n"; } else print "imap_status faile

[PHP-WIN] RE: [PHP-DB] auto_increment in mysql

2001-03-28 Thread Ben Cairns
conn); $howmanyrows = mysql_num_rows($howmanyrows); if ($howmanyrows == '0') { $auto_inc_id = '0'; } else { $auto_inc_id = (($howmanyrows+1)); }; I'm not sure if that will work, but its a start. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 013

[PHP-WIN] RE: [PHP-DB] Read lines

2001-03-26 Thread Ben Cairns
HTH... -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.." -- PHP Windows Mailing List (http://www.php.net/) To unsu

[PHP-WIN] Cookies In IE5.5

2001-03-17 Thread Ben Cairns
How do I set a cookie in IE5, I cant do it, it just wont let me...I have looked at php.net and have tried the examples there, but they don't seem to work! HELP, Please -- Ben Cairns E-Mail: [EMAIL PROTECTED] Just Because It Works, Doesn't Mean It Isn't Broken -- PHP

[PHP-WIN] MD5

2001-03-12 Thread Ben Cairns
I have a string that I want to MD5 (No prizes for guessing its a password), what I want to do is MD5 two strings (one supplied by the user, and one by my server) and compare them. How can I do this? -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010

[PHP-WIN] PDF + WIN32

2001-03-12 Thread Ben Cairns
. Thanks. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.." -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-ma

[PHP-WIN] RE: [PHP-DB] Resolution detect and redirect

2001-02-28 Thread Ben Cairns
if (screen.width==640) { Your Redirect Here} if (screen.width==800) { Your Redirect Here } if (screen.width==1024) { Your Redirect Here } Hope this is what you need -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web

RE: [PHP-WIN] Newbie question...

2001-02-23 Thread Ben Cairns
The wildcard in PHP is a % E.G. select * from YOUR_TABLE where SOME_FIELD like '%$dan%'"; Hope this helps -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sens

RE: [PHP-WIN] ?Finders?

2001-02-22 Thread Ben Cairns
-- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.." -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-ma

RE: [PHP-WIN] LDAP Configuration

2001-02-22 Thread Ben Cairns
Please ensure that you do actually have the ldap dll, as these do NOT ship with the windows installer. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORM

RE: [PHP-WIN] Apache, PHP4, PHPLIB, include_path

2001-02-21 Thread Ben Cairns
the path of the include file withing an included file need to be relative. I cant remember if they need to relative to the Main script, or the first include file -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http

[PHP-WIN] My Dilema

2001-02-16 Thread Ben Cairns
dreds of rows. How can I add all of the values together? Any help appreciated, cos. I'm stuck!.. -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNO

RE: [PHP-WIN] mysql and phpmyadmin

2001-02-13 Thread Ben Cairns
in your lib.inc.php put localhost as the host value -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.." -- PHP Windows Ma

RE: [PHP-WIN] Run a script for 20minutes

2001-02-12 Thread Ben Cairns
You could try putting this at the top of your script: ignore_user_abort(true); Although, if it taking 20-30 mins, then I think you may need to optimize your code, or get a WinNT box with a bit more boot. If you want, I can quote -- Ben Cairns - Head Of Technical Operations intasept.COM Tel

[PHP-WIN] RE: [PHP-DB] Writing to a file on the user's machine.

2001-02-07 Thread Ben Cairns
Have you thought of using a cookie? As PHP is server side, it cannot write to the users machine, only the server. JavaScript may be able to help you here though, but I cant think of any sotrce code that imediatley springs to mind -- Ben Cairns - Head Of Technical Operations intasept.COM Tel

[PHP-WIN] Reading CSV data into a database

2001-02-02 Thread Ben Cairns
I have this script: "; } } fclose ($fp); ?> It reads a csv file (actually its tab seperated) into an array called $data. When I call this in my browser, this is fine. But what I need to do is to put this information into a MySQL database... The file contains these fields: region event

[PHP-WIN] Tab Seperated Data

2001-02-02 Thread Ben Cairns
make sense? -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.." -- PHP Windows Mailing List (http://www.php.net/) To unsubscri

[PHP-WIN] Formatting Date

2001-02-01 Thread Ben Cairns
I have this line of code in a script: $todays_date=date("dmY"); It generates something like this: 01022001 What I need to do is get something like this from it: Thursday, February 01, 2001 Um, How? Thanks in adavance... -- Ben Cairns - Head Of Technical Operations intasept.COM

RE: [PHP-WIN] Less Than x but greater than y

2001-01-25 Thread Ben Cairns
Thanks You guys, that was what i was looking 4 -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.." -- PHP Windows Mailing

[PHP-WIN] Less Than x but greater than y

2001-01-25 Thread Ben Cairns
ith the syntax? -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @ WORK.." -- PHP Windows Mailing List (http://www.php.net/) To uns

[PHP-WIN] Date + Time

2001-01-25 Thread Ben Cairns
) Year (Numerical - 4 digits) but this information has to come from the SERVER as the site visitors will be all over the world, and the date's will be wrong Thanks in advance -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED

[PHP-WIN] RE: [PHP-DB] LDAP

2001-01-24 Thread Ben Cairns
It may be that you need to uncoemment the ldap line in you r php.ini file. This is under the loadable extensions bit. I forge the exact syntax, but I know its in there -- Ben Cairns, Head Of Technical Operations, Intasept.com E-Mail: [EMAIL PROTECTED] | Web: http://www.intasept.com

[PHP-WIN] RE: [PHP-DB] Connection to MySQL

2001-01-18 Thread Ben Cairns
try replacing host with localhost and ensure that MySQL is actually running -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://www.intasept.com "MAKING sense of the INFORMATION TECHNOLOGY age @

[PHP-WIN] DB Select Limits

2001-01-12 Thread Ben Cairns
ORDER BY POST_ID desc LIMIT '$lower','$upper' $lower and $upper are defined from the url. But that doesn't seem to work. Any ideas? -- Ben Cairns - Head Of Technical Operations intasept.COM Tel: 01332 365333 Fax: 01332 346010 E-Mail: [EMAIL PROTECTED] Web: http://w

[PHP-WIN] Removing Content

2001-01-11 Thread Ben Cairns
I have a script that looks at a web page, parses it and grab the HTML content between two Tags, then outputs the result to a file. What I need to do is another script to read this file, remove more text between two tags, and then display this. How can I do this? -- Ben Cairns - Head Of