[PHP] ' and in sql query

2002-01-04 Thread Daniel Harik
Hello Guys how can escape chars like ' and so that MySQL doesn't report me errors all the time, for example when i try to add data like It's, i always have errors Thank You -- Best regards, Daniel mailto:[EMAIL PROTECTED] -- PHP General Mailing List

[PHP] special chars in SQL string

2002-01-04 Thread Daniel Harik
Hello Guys how can escape chars like ' and so that MySQL doesn't report me errors all the time, for example when i try to add data like It's, i always have errors Thank You -- Best regards, Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

RE: [PHP] special chars in SQL string

2002-01-04 Thread Richard Black
Doesn't putting a backslash in front of the offending character escape it?? Isn't that what the PHP addslashes() function does??? Richy -Original Message- From: Daniel Harik [SMTP:[EMAIL PROTECTED]] Sent: 03 January 2002 19:00 To: [EMAIL PROTECTED] Subject:[PHP] special

[PHP] Problem with function declaration in include files

2002-01-04 Thread Bobby
I have been using the following function declaration syntax for ages with no problems. Main php file: ?php include my-inc.php; ... FuncExample(arg1,arg2); ... ? Include file: ?php ... FuncExample(arg1,arg2){ Function Content } ... ?php I have just finished some work for a client, after

[PHP] RE: application variable

2002-01-04 Thread Tim Ward
I think what you mean is sessions, but that can't really do what you want. The best you can do is record on the database when the user last accessed a page of the site and infer if they are currently logged in or not. I would be interested to know how ASP does better than this in a response

[PHP] RE: File opening, writting and location

2002-01-04 Thread Tim Ward
http://www.php.net/manual/en/ref.filesystem.php http://www.php.net/manual/en/ref.filesystem.php everything you need is here, in particular fgets. What you'll need is something like ... If ($fhandle = fopen(filename, r)) { while ($fline = fgets($fhandle) ++$count $X) {

[PHP] ; PHPSESSID in onfocus field

2002-01-04 Thread gkin
I have a website where I use sessions. After a user has logged of, the logon screen appears again. The username field is filled with the value from a cookie. What happens: For example: username = Peter In the situation that I log of (and the logon page appears), the username field gets the

[PHP] REMOTE_ADDR in requied files

2002-01-04 Thread Jan Muzik
When I call function stored in another file, included with require command, variable $REMOTE_ADDR is empty in this function. How is that possible?? Thanks for help. Jan Muzik -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: [PHP] REMOTE_ADDR in requied files

2002-01-04 Thread Intruder
When I call function stored in another file, included with require command, variable $REMOTE_ADDR is empty in this function. How is that possible?? Thanks for help. function Funcname() { global $REMOTE_ADDR; ...funcbody... } -- PHP General Mailing List (http://www.php.net/) To

[PHP] Checking for characters in string

2002-01-04 Thread Richard Black
Hi, I'm writing a page which will allow user's to register for an online service. They register a username and password. I want the password to contain at least one lowercase letter, at least one upper case letter, and at least one digit. So passW0rd would be valid, but password would not.

RE: [PHP] Checking for characters in string

2002-01-04 Thread Intruder
Whats the most compact way to do this? substr? ereg? I think regular expressions is the best way because working with strings looks like this: if ($strtolower($pass)!=$pass) ($strtoupper($pass)!=$pass) { echo OK!; } else { echo WRONG!; } but using reg expr it's even more shorter --

[PHP] Sending variables between PHP pages

2002-01-04 Thread Berlina
Hi users, how can I send a connection database variable, from one PHP page to other PHP page, and maintance the database connection open during both pages? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

RE: [PHP] Sending variables between PHP pages

2002-01-04 Thread Intruder
how can I send a connection database variable, from one PHP page to other PHP page, and maintance the database connection open during both pages? I don't think one can do that. There is NO need for that. You can write header.php file and include it in the beginning of each PHP page where you

RE: [PHP] Sending variables between PHP pages

2002-01-04 Thread Intruder
Yes, thanks a lot, but i need to mantain the connection open for manage a transaction, an everytime that I open a new database connection, the system begins a new transaction and I lose the last one. Do you understand, me? Do you know the way for do that? I think it is imposimble in web

Re: [PHP] Sending variables between PHP pages

2002-01-04 Thread Berlina
Yes, Im thinking the same... :-(( Thanks again Intruder - Original Message - From: Intruder [EMAIL PROTECTED] To: Berlina [EMAIL PROTECTED]; php-general-list [EMAIL PROTECTED]; php-dev-list [EMAIL PROTECTED]; php-db-list [EMAIL PROTECTED] Sent: Friday, January 04, 2002 12:38 PM

[PHP] Problems with uploading even small files

2002-01-04 Thread Screwy
I'm trying to upload files using php to a server on the lan. Apache/1.3.22, PHP 4.0.6, MySQL 3.23.40 My problem is that file uploads are slow, a 50KB file takes around 5 minutes. Thats kilobytes. in 5 minutes. Larger files just timeout. I've set the max file sizes in apache and php configs,

[PHP] A compress function?

2002-01-04 Thread Gaylen Fraley
With all the wonderful String functions in PHP, I haven't been able to find a str_compress(). Is there such an animal? Let's say I have a string like this: $myString = First_word 30 spaces second_word 10 spaces etc... I need to do one of two things. Either compress the multiple spaces to

[PHP] From 4.1 to 4.04pl1

2002-01-04 Thread Julio Nobrega Trabalhando
Hi everybody, On my dev machine I have php 4.1. I have now to upload a huge script half ported to 4.1 from 4.06 on a host where 4.04pl1 runs. By 'half-ported' I mean almost every file I changed global $form_var or function($form_var) to $_POST['form_var']. But it will not work since

php-general Digest 4 Jan 2002 12:25:49 -0000 Issue 1091

2002-01-04 Thread php-general-digest-help
php-general Digest 4 Jan 2002 12:25:49 - Issue 1091 Topics (messages 79407 through 79450): Re: User-friendly URI's 79407 by: Philip Hallstrom 79408 by: Jason Murray 79409 by: Mike Eheler 79410 by: Mike Eheler 79411 by: Philip Hallstrom 79413

RE: [PHP] Problem with Printer-friendly script

2002-01-04 Thread Miles Thompson
I don't, because if MySQL caused the problem you would see it on the original page. I'venot worked with fsockopen(), is there any way you can test it without hitting the database, which may be causing a delay? What I'm thinking is to take the page created in the original call

Re: [PHP] Problem with function declaration in include files

2002-01-04 Thread Dennis Moore
The problem is most likely with your include statement. The include path imay be incorrect... "Bobby" [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... I have been using the following function declaration syntax for ages with no problems. Main php file:

Re: [PHP] A compress function?

2002-01-04 Thread Emil Rasmussen
Hey With all the wonderful String functions in PHP, I haven't been able to find a str_compress(). Is there such an animal? Let's say I have a string like this: $myString = First_word 30 spaces second_word 10 spaces etc... This would proberly work: --

Re: [PHP] Sending variables between PHP pages

2002-01-04 Thread Henning Sprang
Am 04 Jan 2002 12:49:41 +0100 schrieb Berlina: Yes, Im thinking the same... :-(( Thanks again Intruder - Original Message - From: Intruder [EMAIL PROTECTED] To: Berlina [EMAIL PROTECTED]; php-general-list [EMAIL PROTECTED]; php-dev-list [EMAIL PROTECTED]; php-db-list [EMAIL

[PHP] Re: An idea for a PHP tool

2002-01-04 Thread J Smith
If anybody out there is using Konqueror, try setting up an item in the Enhanced Browsing dialog with a shortcut like php and the search URI set to http://www.php.net/manual-lookup.php?pattern=\1;. Now you can go to the location textbox and enter something like php:fsockopen to bring up the

[PHP] RE: [PHP-DB] php+mysql simple query help me pls! ty.

2002-01-04 Thread Rick Emery
Test the mysql_query() return value: $result = mysql_query(SELECT * FROM members) or die(Error:.mysql_error()); there may be an error in your query. -Original Message- From: louie miranda [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 03, 2002 1:59 PM To: [EMAIL PROTECTED] Cc:

[PHP] Error Logging Question

2002-01-04 Thread TD - Sales International Holland B.V.
Hey there, I'm playing around with the logging options in the php.ini file. I set this: display_errors = Off Because I don't want to visitors to see any errors (besides the errors I define myself in the PHP script, which is exactly what this does... I only print out things like can't open

Re: [PHP] Licensing??

2002-01-04 Thread Michael A. Peters
On Thu, 3 Jan 2002 09:58:03 +0100 TD - Sales International Holland B.V. [EMAIL PROTECTED] mentioned: On Wednesday 02 January 2002 20:14, Michael A. Peters stuffed this into my mailbox: Hmm but ClibPDF is an additional library package which is not part of the PHP engine right? regards

[PHP] Script accesses complete harddrive. what did I do wrong?

2002-01-04 Thread christian_holler
Hi, I have a big security hole in my php and I cannot get out why: Operating system: Windows XP PHP version: 4.1.1 Bug description: Script accesses harddrive. what did I do wrong? I installed Apache 1.3.20 with PHP and now I saw, a php script can show my complete harddrive remotly.

[PHP] problems with php 4.1.1 (strtok?)

2002-01-04 Thread Robert Mena
Hi, I have a script to upload/insert records in a mysql db. I was running fine before the upgrade (php 4.0.4pl1) now it confuses the columns starting with the column number 9. I've attached a one line file that I used with the scripts. the problem seems to be with strok and null values. One of

[PHP] PEAR

2002-01-04 Thread harry
Hi all I have been trying to use PEAR and have come to a standstill. The following: ?php require_once (HTML/Page.php); /* PAGE SETUP */ $p = new HTML_Page(); $p-setCache(true); echo TEST 1; //$p-toHtml(); echo TEST 2; // $p-setTitle(Jobsite Page); $p-display();

[PHP] PHP-Friendly WYSIWYG HTML Editor

2002-01-04 Thread Brandon
G'day! I'm a full-time university student, and also serve on a part-time basis (during vacations, holidays, etc.) as the Systems Administrator/Webmaster/PHP Guru/Computer Trainer for my library back home. Another work term is coming to an end soon, and in my absence, there will be no

[PHP] Re: Script accesses complete harddrive. what did I do wrong?

2002-01-04 Thread harry
Christian Holler wrote: Hi, I have a big security hole in my php and I cannot get out why: Operating system: Windows XP PHP version: 4.1.1 Bug description: Script accesses harddrive. what did I do wrong? I installed Apache 1.3.20 with PHP and now I saw, a php script can

Re: [PHP] Re: User-friendly URI's

2002-01-04 Thread Philip Hallstrom
AddType application/x-httpd-php .php .php3 .whatever -philip On Fri, 4 Jan 2002, Jamie Fields wrote: How do you set up apache to recognize .whatever as a php extension? - Original Message - From: Philip Hallstrom [EMAIL PROTECTED] To: Mike Eheler [EMAIL PROTECTED] Cc: [EMAIL

Re: [PHP] Script accesses complete harddrive. what did I do wrong?

2002-01-04 Thread Miles Thompson
This is an Apache question, not a PHP one. I don't know if your Apache configuration file is named apache.conf or httpd.conf under Windows, but whatever it is, check these settings: ServerRoot - should be set to the location where Apache is installed. DocumentRoot = set to where your web files

RE: [PHP] Sending variables between PHP pages

2002-01-04 Thread Dave Brotherstone
Use the pconnect functions. These do exactly that. eg. mysql_pconnect() at the top of your page, and it will re-use the database connection for you. mysql_close() won't close a permanent connection. Please don't post general questions to the php-dev list. This is for development OF PHP,

[PHP] PHP Grammar

2002-01-04 Thread JJVG
Hi, Is there a place where I can get the PHP Grammar? TIA, Juan

[PHP] Re: A compress function?

2002-01-04 Thread George Nicolae
take a look at http://www.php.net/manual/en/function.bzcompress.php -- Best regards, George Nicolae IT Manager ___ X-Playin - Professional Web Design www.x-playin.f2s.com Gaylen Fraley [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... With all

Re: [PHP] Problem with function declaration in include files

2002-01-04 Thread Bobby
I wish it was that simple, I have already added debug 'echo' statements to make sure the included file is being included correctly and it is? This problem really has me beat, I never usually send out desperate pleas, but I am not a happy bunny atm. Any thoughts would be appreciated Cheers

[PHP] Encoding Code

2002-01-04 Thread Devin Atencio
I have mcrypt installed and I would like to encrypt Like say a block of code then insert it into a database. It looks like when I encrypt more than 1 word it seems To get weird on me and doesn't encrypt or decrypt Correctly. Does anyone know how I can encrypt like a paragraph And then beable

Re: [PHP] draw image graph with uptime command

2002-01-04 Thread Austin Gonyou
x axis= 0 - 365 (time in days) y axis= 0 - 100(or 1 depending on the value you're taking for utilization. It's best to convert it into %.) (percent util) After that you'll need some way of being able to plot y/x or Percent util over time. After that, it should be easy. On Fri,

Re: [PHP] PHP Grammar

2002-01-04 Thread Henning Sprang
Am 04 Jan 2002 14:53:18 -0200 schrieb JJVG: Hi, Is there a place where I can get the PHP Grammar? http://download.php.net/manual/en/langref.php have fun, henning -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

[PHP] Re: ' and in sql query

2002-01-04 Thread Philip Hallstrom
addslashes() would work... or use an ereg_replace to do it. Provided that you only use single quotes in your SQL (which is a good idea anyway since other db's only allow you to use single quotes) then you only have a problem with single quotes and not double quotes. On Thu, 3 Jan 2002, Daniel

[PHP] win2k..grrr

2002-01-04 Thread Kunal Jhunjhunwala
Hey, Does anyone know WHY form scripts, that submit to themselves, dont work on windows boxes?? Example : I have a script called mail.php. The first part of the script displays the form whos action states, mail.php. When the form is submitted, the second part of the script mails the form details

[PHP] compilation of PHP with SNMP support

2002-01-04 Thread Jason Signalness
Hello, I am having trouble compiling php with snmp support. ucd-snmp 4.2.2 is installed and working without trouble. PHP4.1.1 configures ok but fails on make, giving many errors similar to this: /usr/local/lib/libsnmp.a(snmp_alarm.o): In function `sa_find_next':

Re: [PHP] win2k..grrr

2002-01-04 Thread Frank M. Kromann
I do that all the time without any problems. Could you give us a (small) sample script ? - Frank Hey, Does anyone know WHY form scripts, that submit to themselves, dont work on windows boxes?? Example : I have a script called mail.php. The first part of the script displays the form whos

[PHP] Re: win2k..grrr

2002-01-04 Thread George Nicolae
i tell you why. because on instalation you use php.ini-optimized. file. copy in your win2k director the php.ini-dist as php.ini. After that the script will work. I don't know what is set in optimized ini file and your script not work. -- Best regards, George Nicolae IT Manager

RE: [PHP] Problem with Printer-friendly script

2002-01-04 Thread Torrent
Appreciate the help on this one. I have not worked with fsockopen before either (I only started php about 6 weeks ago which also doesn't help). I am almost certain the delay isn't with the database because at the point where the pause is the query has already been executed and the result

[PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-04 Thread Mark
I apologize if the title of this post sounds overly aggresive, but I have followed the instructions to a 'T' and got nowhere!! I have tried the auto install version of PHP and manual instructions for installing PHP 4.1.1. Neither of them work. I added the lines to my httpd.conf file for both

Re: [PHP] Re: win2k..grrr

2002-01-04 Thread Kunal Jhunjhunwala
nopes.. dint do the trick.. anything else?? Regards, Kunal Jhunjhunwala - Original Message - From: George Nicolae [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 04, 2002 11:52 PM Subject: [PHP] Re: win2k..grrr i tell you why. because on instalation you use

[PHP] Modulus and floating point...

2002-01-04 Thread Boget, Chris
Consider the following: $number = 102.52; echo $number % 50; echo bcmod( $number, 50 ); in both cases, it's spitting out 2. Why is it not spitting out 2.52? Is there a way I can get that information? w/o having to parse the string, breaking it up, getting the modulus and then adding it back

[PHP] pass variable from php script to another php script

2002-01-04 Thread toni baker
I would like to pass the $text variable to the body of an email message in another php script. The code is below: -- upload.php -- if (!$file=fopen(text.txt, r)) { echo Could not open file; } else { $text=fread($file, 100); fclose($file); } -- mail.php -- $to = [EMAIL

Re: [PHP] draw image graph with uptime command

2002-01-04 Thread php3
Addressed to: Daniel Masur [EMAIL PROTECTED] [EMAIL PROTECTED] ** Reply to note from Daniel Masur [EMAIL PROTECTED] Fri, 4 Jan 2002 08:54:00 +0100 anybody can help? ps, i never worked with images in php before... Take a look at: http://www.aditus.nu/jpgraph/ Rick Widmer

Re: [PHP] pass variable from php script to another php script

2002-01-04 Thread Kevin Stone
It all depends on how you're calling the script. Obviously these variables are not system globals. So if the mail.php script is being accessed separately from the upload.php script they will not share variables. However if you include(mail.php); from within upload.php, then it automaticaly

[PHP] Re: DOM XML?

2002-01-04 Thread Jeff Warrington
In [EMAIL PROTECTED], Yasuo Ohgaki wrote: Daniele Baroncelli wrote: Hello, I would like to restyle one big site in XML and I would like some brief straight info/suggestions. I am definitely interested in DOM XML, but as far as I can understand, the module is still experimental and

Re: [PHP] Modulus and floating point...

2002-01-04 Thread Bogdan Stancescu
You can consider doing this: $number=102.52; $fraction=$number-floor($number); $number=($number % 50)+$fraction; Basically it's the exact solution you're suggesting, just that you don't have to do any string stuff. PHP's behaviour is normal - modulus is generally intended for integers...

[PHP] Classes versus native functions

2002-01-04 Thread Vikram Vaswani
Hi, I was wondering if anyone knew (and could quantify) the performance difference between a script that uses PHP's native XML functions - for example, DOM functions to add/remove nodes - and one that simulates these functions via a class - like the PHP.XPath class. I would assume that

[PHP] jukebox

2002-01-04 Thread Scott
Has anyone experimented with controlling an mp3 player like mpg123 from php? I want to build a radio automation system using a web interface, but not sure how I want to handle the actual playing of music. Basically I would have a mysql database that rotates the music based on categories

[PHP] problem reading sessions

2002-01-04 Thread Alastair
I have just recently set up PHP on my Win2K laptop and I have just found out that I can't read sessions. As far as I can tell the session file is being created, but PHP doesn't seem to be able to get any data into it. Here is what the session file looks like: !sess_user|!blah| The two PHP

[PHP] Keep my own frameset

2002-01-04 Thread R. Elsenaar
Hi all, Lot of sites are deeplinking to my site. I like them to do so but .. I want them to see the requested page IN MY OWN FRAMESET. To do so I figured out that I can redirect the requested url to my framepage and build it up again with the requested URL in the content-frame. There is one

RE: [PHP] problem reading sessions

2002-01-04 Thread Johnson, Kirk
Is register_globals set to 'on' in php.ini? It needs to be for this coding style to work. Kirk -Original Message- From: Alastair [mailto:[EMAIL PROTECTED]] Sent: Friday, January 04, 2002 1:41 PM To: [EMAIL PROTECTED] Subject: [PHP] problem reading sessions I have just

[PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread CJ
i have a problem using the mail function on my server. win2000 Pro IIS 5.0 PHP Version 4.0.6 i'm not sure if it's a configuration problem with IIS or i'm missing something in the php.ini file. thanks CJ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

Re: [PHP] problem reading sessions

2002-01-04 Thread Kevin Stone
I'll add if you do not have register_globals set then you can access the variable by its long name, $HTTP_SESSION_VARS[blah]. -Kevin Is register_globals set to 'on' in php.ini? It needs to be for this coding style to work. Kirk -Original Message- From: Alastair [mailto:[EMAIL

[PHP] print files

2002-01-04 Thread Leon_Tseng
Greetings all! I'm a newbie to PHP and I wonder how I can print a file (eg. .doc, .xls etc.) using PHP. I looked at the printer functions but I can't seem to print anything other than plain text and bitmaps. Any help would be greatly appreciated. :p -- PHP General Mailing List

[PHP] Cannot find imap library

2002-01-04 Thread Richard Brust
[2002-01-03 21:55:02] [EMAIL PROTECTED] original configure script: ./configure --with-apxs=/etc/httpd/bin/apxs --enable-track-vars --enable-ftp --with-gd=../gd-1.8.4 --prefix=/etc/php --sysconfdir=/etc/php --with-imap=../imapServer Note: ../imapServer is the dir where I gunzip'd the source

Re: [PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread DL Neil
CJ, i have a problem using the mail function on my server. win2000 Pro IIS 5.0 PHP Version 4.0.6 i'm not sure if it's a configuration problem with IIS or i'm missing something in the php.ini file. The pre-requisite is that the php.ini file points to a visible SMTP server. Please

[PHP] Re: php-general Digest 3 Jan 2002 12:22:53 -0000 Issue 1089

2002-01-04 Thread Garth Dahlstrom
If you don't like getting 50 messages a day, I suggest using this list's digest mode, then you get 1 big message with your daily dose of 50 messages tucked away neatly inside. :) Matt Moreton - Re: [PHP] Holy Moly... - Thu, 3 Jan 2002 03:03:02 - If you dont mind

Re: [PHP] Re: php-general Digest 3 Jan 2002 12:22:53 -0000 Issue 1089

2002-01-04 Thread Mehmet Kamil ERISEN
you can aslo go to www.php.net and read the emails from your browser. --- Garth Dahlstrom [EMAIL PROTECTED] wrote: If you don't like getting 50 messages a day, I suggest using this list's digest mode, then you get 1 big message with your daily dose of 50 messages tucked away neatly inside.

Re: [PHP] problem reading sessions

2002-01-04 Thread Alastair
I get the error: 'Warning: Undefined index: blah' when I use the long name. As far as I can tell it doesn't seem to be actually writing the data into the session file. Am I missing a crucial step somewhere? alastair Kevin Stone [EMAIL PROTECTED] wrote in message 003401c19563$95ee2e00$[EMAIL

[PHP] adding users on *nix

2002-01-04 Thread Chris Hogben
Is there a way of adding a user to a *nix box thru php. Like, someone signs up, and they're account is added? Thanks. -- 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

Re: [PHP] problem reading sessions

2002-01-04 Thread R'twick Niceorgaw
Have you set the session.save_path properly in php.ini ? By default it is set to /tmp which doesn't work under Win* systems. You need to point it to a valid directory on your machine. HTH - Original Message - From: Alastair [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January

Re: [PHP] problem reading sessions

2002-01-04 Thread Alastair
yup, it's set correctly. It actually creates the file (I've opened it in a text editor) with the correct variable names, but just no values. R'Twick Niceorgaw [EMAIL PROTECTED] wrote in message 065d01c1956a$f1321db0$[EMAIL PROTECTED]">news:065d01c1956a$f1321db0$[EMAIL PROTECTED]... Have you set

RE: [PHP] Problem with Printer-friendly script

2002-01-04 Thread Torrent
Problem is now resolved :-) In the end I swapped the fsockopen() for an fopen(). This seemed to fix it up a treat. Thanks for all your help. Torrent -Original Message- From: Miles Thompson [mailto:[EMAIL PROTECTED]] Sent: 04 January 2002 01:30 To: [EMAIL PROTECTED]; [EMAIL PROTECTED]

Re: [PHP] adding users on *nix

2002-01-04 Thread Jason Bell
you might be better off triggering a back-end script to do that. the script would have to have root privilegf es. I'm not sure if you can become root within PHP, but if you trigger a shell script or perl script or something, it can be set SUID to root or something please note that my

[PHP] Re: A compress function?

2002-01-04 Thread Gaylen Fraley
Not even close. I'm after a function to compress multiples of the same character to one instance, as in my stated example, 30 spaces to 1 space, not compressing the string. Emil offered a good substitute. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest

[PHP] How to clear a populated array

2002-01-04 Thread Carlos Fernando Scheidecker Antunes
Hello All, I have a populated array that stores user input errors. I have been browsing the manual and some books and I couldn't find one thing. I've got an array $Erros[] and I would like to be able to clear it entirely. Is there any builtin function that acomplishes that? Thank you in

Re: [PHP] How to clear a populated array

2002-01-04 Thread Bogdan Stancescu
I don't know, does $Errors=array() work for you? Hope I understood your problem... Bogdan Carlos Fernando Scheidecker Antunes wrote: Hello All, I have a populated array that stores user input errors. I have been browsing the manual and some books and I couldn't find one thing. I've got

Re: [PHP] How to clear a populated array

2002-01-04 Thread Carlos Fernando Scheidecker Antunes
Yeah Bogdan. I have thought so too, but I also found it quite intuitive and I thought there might be something easier. As usual you reply to my questions. And as usual I appreciate your help. Thanks again. regards, Carlos Fernando. Bogdan Stancescu wrote: I don't know, does

[PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
Hi guys. Quick regular expressions question here: I want to match: html but not: blah blah html Basically I want to wipe out lines beginning with the html tag followed immediately by a carriage return. If I do a: str_replace(html\r\n, '', $string); It wipes out html and the carriage

[PHP] Paging through MySQL results in PHP

2002-01-04 Thread Nelson Goforth
I have an application that returns a set of results from a MySQL query. Let's say I have 100 results from the query, but only want to show 25 per HTML page. The MySQL query is driven by a 'Search' page that creates an array $keywords - which can be of any size. I then loop through the

Re: [PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread CJ
thanks for the reply but i still need some help: PHP Version 4.0.6 [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] --- I get this error when i use the mail function on

Re: [PHP] How to clear a populated array

2002-01-04 Thread Miles Thompson
Carlos, Just redeclare the array $Erros = array(); Miles At 05:11 PM 1/4/2002 -0700, Carlos Fernando Scheidecker Antunes wrote: Hello All, I have a populated array that stores user input errors. I have been browsing the manual and some books and I couldn't find one thing. I've got an

[PHP] Stupid question alert

2002-01-04 Thread tim at 10Kv
Hi, first of all apologise to the list ­ this is a very basic question for you I¹m sure. I have tried to find an answer on the web but the problem is knowing HOW to ask the question ­ and I hoping you can provide me with a starting point. Anyway.. I design a lot of graphic intensive pages

Re: [PHP] Stupid question alert

2002-01-04 Thread Bogdan Stancescu
Your question is not stupid - it's just uninformed, and that's easily understandable if you never used PHP. The concept is dynamically creating the page SERVER-SIDE. That is, use some databases or some nifty code to dynamically build a page using specific parameters. Unforunately for you, this

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread Bogdan Stancescu
I suck big time at regular expressions, but have you tried str_replace(\r\nhtml\r\n, '', $string); ? Bogdan David Yee wrote: Hi guys. Quick regular expressions question here: I want to match: html but not: blah blah html Basically I want to wipe out lines beginning with the html

[PHP] CGI and HTTP Authentication

2002-01-04 Thread Gaylen Fraley
Is there any work around for using HTTP Authentication and PHP installed as CGI? I know how to make the detection, I'm hoping (probably in vain) that there is some way to make the two work. Thanks. -- Gaylen [EMAIL PROTECTED] Home http://www.gaylenandmargie.com/ PHP KISGB v3.02 Guest Book

Re: [PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-04 Thread Miles Thompson
I've never installed PHP on a Windows box, but on Linux you have to move and rename the php.ini file. It's mentioned in the docs, but for the life of me I can't remember its name right now. Miles Thompson At 11:15 AM 1/4/2002 -0600, Mark wrote: I apologize if the title of this post sounds

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
That's an idea but it would delete the carriage return before it which I don't want to happen. I've tried preg_replace(/^html\r\n/, '', $string) + quite a few other variations but no luck :-(. Argh! David - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: David Yee

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread Bogdan Stancescu
str_replace(\r\nhtml\r\n, '\r\n', $string); David Yee wrote: That's an idea but it would delete the carriage return before it which I don't want to happen. I've tried preg_replace(/^html\r\n/, '', $string) + quite a few other variations but no luck :-(. Argh! David - Original

Re: [PHP] How to clear a populated array

2002-01-04 Thread Michael Sims
I've got an array $Erros[] and I would like to be able to clear it entirely. Is there any builtin function that acomplishes that? Why not: unset($Errors); ?? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: [PHP] Warning: Unknown persistent list entry type in module shutdown (11)

2002-01-04 Thread Brian Clark
* Ed Swartz ([EMAIL PROTECTED]) [Jan 03. 2002 13:26]: Hi, Hiya The error message listed in the subject line is being displayed at the bottom of my HTML pages gen'd by PHP. Any hints how what might be causing this message? I looked in BUGS, FAQTS, etc not to no avail. May help:

Re: [PHP] Quick regular expressions question / preg_replace

2002-01-04 Thread David Yee
Ah that would do it (just need to double quote the \r\n). Thanks! I just know, however, one of these days I'm gonna need to use preg_replace :-). David - Original Message - From: Bogdan Stancescu [EMAIL PROTECTED] To: David Yee [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Friday,

Re: [PHP] PHP XML with Dynamic Content

2002-01-04 Thread Brian Clark
* Emile Bosch ([EMAIL PROTECTED]) [Jan 03. 2002 15:38]: Hi a lot of todays proffesional content management systems use XML, now i was wondering how it's possible to mix XML with Dynamic Content, or content which is change sensitive, IE A shop, or an auction, let's say you have a shop with

Re: [PHP] Cannot find imap library

2002-01-04 Thread Brian Clark
* Richard Brust ([EMAIL PROTECTED]) [Jan 04. 2002 16:25]: original configure script: ./configure --with-apxs=/etc/httpd/bin/apxs --enable-track-vars --enable-ftp --with-gd=../gd-1.8.4 --prefix=/etc/php --sysconfdir=/etc/php --with-imap=../imapServer Note: ../imapServer is the dir where I

Re: [PHP] compilation of PHP with SNMP support

2002-01-04 Thread Kancha .
I faced the same problem when compile php 4.0.6 and 4.1.0 with snmp. I tried several times so i just dropped it. Now I'm using php without snmp. Do let me know if you get over this error. --- Jason Signalness [EMAIL PROTECTED] wrote: Hello, I am having trouble compiling php with snmp

[PHP] Checking the season

2002-01-04 Thread webapprentice
Hi, Just need a sounding board to help me think this through. I want to check the current date to determine what season it is and display the appropriate picture. I define spring as 03/21/, summer as 06/21/, autumn as 09/21/, and winter as 12/21/. I form a string for the

Re: [PHP] PEAR

2002-01-04 Thread Brian Clark
* harry ([EMAIL PROTECTED]) [Jan 04. 2002 10:44]: Hi all Hi Harry I have been trying to use PEAR and have come to a standstill. The following: ?php require_once (HTML/Page.php); /* PAGE SETUP */ $p = new HTML_Page(); $p-setCache(true); echo TEST 1; Try commenting the

Re: [PHP] PHP-Friendly WYSIWYG HTML Editor

2002-01-04 Thread Brian Clark
* Brandon ([EMAIL PROTECTED]) [Jan 04. 2002 10:47]: G'day! G'day, mate! [...] I've tried the following without success: - Adobe PageMill. It came free with PageMaker; nice, except it arbitrarily replaces things like ? with gt;?. And that's just no fun. :-) - Netscape Composer, which

Re: [PHP] NEWBIE IN DISTRESS: Install Instructions are not work for PHP 4.1.1!!!

2002-01-04 Thread Brian Clark
* Mark ([EMAIL PROTECTED]) [Jan 04. 2002 12:14]: [...] the Module version (Get a Requested Operation Failed message). can someone please help? My system is as follows: Windows 2000 SP2 Apache 2.0.28 (I have also tried version 1.3.22 with same results as People had problems in that

Re: [PHP] PHP Compile Errors

2002-01-04 Thread Brian Clark
* Jason Signalness ([EMAIL PROTECTED]) [Jan 04. 2002 16:18]: Hello, Backatcha I am having trouble compiling php with snmp support. ucd-snmp 4.2.2 is installed and working without trouble. PHP4.1.1 configures ok but fails on make, giving many errors similar to this:

[PHP] configuring sever to send mail (Win2k)

2002-01-04 Thread CJ
thanks for the reply but i still need some help: PHP Version 4.0.6 [mail function] ; For Win32 only. SMTP = localhost ; For Win32 only. sendmail_from = [EMAIL PROTECTED] --- I get this error when i use the mail function on

  1   2   >