RE: [PHP] problem pattern matching a url with question mark

2001-10-24 Thread Mark
http://([\/~_\.0-9A-Za-z#&-?]+) first you have to escape the ? with a backslash and second the - has to go at the end of the [] or else it thinks you mean any char between & and ? On Wed, 24 Oct 2001 16:27:34 -0400, [EMAIL PROTECTED] wrote: >ah, sorry about the confusion. The url I provided is j

[PHP] PHP object communication

2001-10-24 Thread ad
Not coming from a programming background, I'm going to have difficulty explaining this one... :) I would like to handle an entire application through one object, which in turn contains objects. I only recently "got" classes though, and I don't fully understand if what I want to do is possible, or

Re: [PHP] I NEED HELP WITH PWS AND W98

2001-10-24 Thread Gaylen Fraley
I've been running Apache on 98SE (I agree - DON'T ASK!) for most of this year without ny issues at all. Win98needs reboots a few times a week, but it's not Apache's problem. I also run PHP4.0.6 and 4.0.8-dev and MySQL 3.23.43 and they all work and play well together. Just to keep my sanity, I al

Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Chris Hayes
Jeez michael, i'm sorry but i am not going to go through all of your code. I do have a suggestion for you, without looking at the code. As you know. php has flexible variables. I mean, if you say $a=1 then $a is an integer, if you say $b='i' then $b is a string. Very easy to make code qui

Re: [PHP] Trying to subtract...no luck. (Long Code)

2001-10-24 Thread Michael O'Neal
Thanks all...I got what I needed. I'm amazed at how many different ways there are to do the same thing! mto -- Michael O'Neal Web Producer/ Autocrosser ST 28 '89 Civic Si - M A N G O B O U L D E R - http://www.thinkmango.com e- [EMAIL PR

[PHP] authentication help

2001-10-24 Thread Norman Zhang
Hi, Would someone please give me a few pointers on how to generate a simple PHP to check for user's name and password before directing to a directory? e.g., I have a index.php with a form where I have action="login.php". How would I write login.php to check username and password if I have them h

[PHP] Q:Why is my code returning this? Help?

2001-10-24 Thread Marcus James Christian
Hello, As mainly a designer w/ HTML and JS php is usually just an end of site add on to process forms and I LOVE php! I've been away from PHP coding for about a month and I can't figure out what I'm forgetting here is partial of the form, the php handler, and the final email I get. If you see so

[PHP] socket question

2001-10-24 Thread Tim Ballantine
Hey. Anoyone know how i would go about using one of the internal variables, such as phpinfo() or phpcredits() to send through a socket. like for: write ($msgsock, ":RWorld PRIVMSG $pnum :phpcredits()\n", strlen (":RWorld PRIVMSG $pnum :phpcredits()\n")); so it sends the actual information inste

RE: [PHP] URL variables

2001-10-24 Thread Martin Towell
try $QUERY_STRING -Original Message- From: Clint Tredway [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 5:13 AM To: PHP General Subject: [PHP] URL variables How do I reference URL variables..? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAI

[PHP] re: socket question

2001-10-24 Thread James Cave
There is some source code on the php.net site which captures the credits with output buffering and then uses then in the page. Once you have the data in a variable you can do what you like to it. if (function_exists('ob_start')) { ob_start(); phpcredits(); $credits = ob_get_content

Re: [PHP] MSSQL 7.0 and PHP

2001-10-24 Thread James Cave
> varchar only accepts values up to 255 (so does char) I've found this too .. MS-SQL probably ceil()s the parameter in the table create statement to 255 without throwing an error. Have a quick look at the column you've created and you'll probably find it's a char(255). > To get larger than tha

[PHP] PDF library

2001-10-24 Thread pierre . marcandella
Hi everybody, Does anyone know a way to check if a server is able or not to support PHP script including PDF related function ? I guess I need to know if the server has API idoine or something like that. Thanks for your help. Pierre By the way, any good tutorial about creation of PDF file u

RE: [PHP] PDF library

2001-10-24 Thread Jason Murray
Check the output from phpInfo() ... -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, October 25, 2001 11:08 AM > To: [EMAIL PROTECTED]; > UNEXPECTED_DATA_AF

Re: [PHP] Re: Using Logical OR operator in IF statement???

2001-10-24 Thread Mark
>> if (substr($sString,(strlen($sString)-1)!="-")) { I think you meant either substr($sString,strlen($sString)-2) or substr($sString,-1) >> print "You can't have a dash at the end of your string."; >> } >> >> and this works: >> if (substr($sString,0,1)!="-") { >> print "You can't have a dash at

RE: [PHP] Re: Using Logical OR operator in IF statement???

2001-10-24 Thread Martin Towell
>> if ((substr($sString,(strlen($sString)-1)!="-")) or Looks to me that the bracketing is wrong... try: if ((substr($sString,(strlen($sString)-1))!="-") or -Original Message- From: Mark [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 11:12 AM To: [EMAIL PROTECTED] Subject: Re

[PHP] PHP library

2001-10-24 Thread pierre . marcandella
Hi everybody, Does anyone know a way to check if a server is able or not to support PHP script including PDF related function ? I guess I need to know if the server has API idoine or something like that. Thanks for your help. Pierre By the way, any good tutorial about creation of PDF file u

[PHP] PDF library

2001-10-24 Thread pierre . marcandella
Hi everybody, Does anyone know a way to check if a server is able or not to support PHP script including PDF related function ? I guess I need to know if the server has API idoine or something like that. Thanks for your help. Pierre By the way, any good tutorial about creation of PDF file u

RE: [PHP] Php and Emacs21

2001-10-24 Thread Mark
On Tue, 23 Oct 2001 21:59:10 -0700, Nick Richardson wrote: >Put this file in your emacs/lisp/progmodes dir... then make sure that >secureCRT has ANSI Color checked in your site's emulation >configuration... > >Then add (autoload 'php-mode "php-mode-099" "PHP Mode" t) to your >.emacs >file. > >Th

[PHP] conjob etc.

2001-10-24 Thread Arnold Gamboa
Hi there. Need your help / comments on this couple of issues. 1. I already have a php compiled in apache module running.. How can i install a cgi version that will also support mysql/postgresql/interbase (as it was also supported on the compiled version) 2. If I'll be running a cron job calling

RE: [PHP] Enabling php in only certain hosts and directories

2001-10-24 Thread Joseph Blythe
Thanks! What would people reccommend? 1) just using safe mode 2) using open_basedir and disable_functions 3) all of the above? 4) Just shutoff the server :) If (2) or (3) what functions are most at risk? I understand that safe_mode limits quite a few already. Regards, Joseph -Original

Re: [PHP] PDF library

2001-10-24 Thread Pierre
Thanks, I had a look, very usefull indeed. But I am still not quite sure about what I am looking for !!! Which information should I find to be sure the server can handle pdf function ? Thanks. Pierre - Original Message - From: Jason Murray <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>;

[PHP] About mail attachments

2001-10-24 Thread Nigam Chheda
hi how to send an attachment in PHP mail can anyone pl send a sample code Nigam

RE: [PHP] About mail attachments

2001-10-24 Thread Jason Murray
> how to send an attachment in PHP mail > can anyone pl send a sample code http://planetkiller.shadow.net.au/mime-php.txt Jason -- Jason Murray [EMAIL PROTECTED] Web Developer, Melbourne IT "Work now, freak later!" -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMA

Re: [PHP] PDF library

2001-10-24 Thread Michael A. Peters
look at http://24.5.29.77:10080/phpinfo.html That's a phpinfo() from a machine that supports pdflib You will clearly see the PDF library support and information about what library etc.- It's right below the pgsql support on that page. On Thu, 25 Oct 2001 12:25:31 +0800 "Pierre" <[EMAIL PROTECTE

[PHP] Netscape 6.1 problem and SELECT lists / FORMS

2001-10-24 Thread Jason Caldwell
NS6.1 remembers the items that were selected in a SELECT list when I call the same page back with a header() function... normally this wouldn't be a problem -- however, in my case, I am (through PHP) printing all selected items to the top of the list, and all unselected items to the bottom -- this

RE: [PHP] Netscape 6.1 problem and SELECT lists / FORMS

2001-10-24 Thread Martin Towell
Haven't tried this, but what about sending "nocache" headers to the browser (??) -Original Message- From: Jason Caldwell [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 4:12 PM To: [EMAIL PROTECTED] Subject: [PHP] Netscape 6.1 problem and SELECT lists / FORMS NS6.1 remembers

[PHP] Sending / Receiving Cookies with Fopen??

2001-10-24 Thread Andrew Reberry
Hello all. I have a problem to solve, but have no idea where to start.. I am writing a site right now that needs to read information from many other web pages on different domains (using fopen). However a few sites have given me the error: "you need to have cookies enabled to view this page". Thi

RE: [PHP] libxml

2001-10-24 Thread php
Hi, I need to use PHP from cvs for other reasons. Anyway, libxml 2.3.9 -> Configure wants a higher version (2.4.2). libxml 2.4.6 -> Causes the trouble. libxml 2.4.2 -> Wont build - dies after configre libxml 2.4.5 -> same problem BTW, this error appears for xmltree calls. am wokring on clearing

<    1   2