Re: [PHP] [NOT FIXED] Re: [PHP] strip out wierd characters in a string

2004-10-19 Thread Curt Zirzow
* Thus wrote Brent Clements: Ok, I still have the problem. If I echo the string to a webpage, it still contains the ? So I viewed the source in a notepad, and the thing that shows up next to string is a TM. I tried using htmlentities on the string that I'm echoing but the question

Re: [PHP] Apache segmentation faults

2004-10-19 Thread Curt Zirzow
* Thus wrote Bostjan Skufca @ domenca.com: Is there any special apache/php compile option needed to generate core files on linux? No, its really up to the OS to figure out what to do whan a segfault happens. I have seen few segfaults and i have set CoreDumpDirectory to /tmp/httpd.core

[PHP] Oracle Connection

2004-10-19 Thread Syed
Hi All, (B (Bwill anybody tell me how to connect oracle database using php script. (B (BThanx (B (BSyed

Re: [PHP] Fwd:

2004-10-19 Thread Robin Vickery
Original-Recipient: rfc822;[EMAIL PROTECTED] It's whoever's subscribed under the address [EMAIL PROTECTED] - I tried complaining to them a couple of weeks ago but got no response. One of the few times I *haven't* got a response from them in fact. -robin -- PHP General Mailing List

[PHP] Optimized GIF animations created on the fly (patch included)

2004-10-19 Thread Jaakko Hyvätti
Hi all, Now as gif support is again in, I revised my patches for GIF creation for gd-2.0.28 and PHP. My patches may make it into gd-2.0.29, possibly modified, so the interface may still change if Thomas Boutell has better ideas for it. But anyway, here are patches for gd-2.0.28, php-5.0.2

[PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Stuart Felenstein
I have a multi-page form that ends in the last page as a transaction to mysql. In the transaction there are a number of steps, i.e. query1 = Insert into .. run query1 query2 = Insert into . run query 2 query3 = Insert into .. run query 3 Then an if / else statement that

Re: [PHP] 'Intelligently' truncate string?

2004-10-19 Thread Chris Dowell
You could also try a combination of html_entity_decode to change all entities back, then truncate it, then use html_entities to get back to the encoded string. Hope this helps Cherrs Chris Robert Cummings wrote: On Mon, 2004-10-18 at 14:35, Murray @ PlanetThoughtful wrote: Hi All, I'm working

RE: [PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Stuart Felenstein
If it's okay I'll throw out two more questions then. 1-Probably a silly question, but is a faux pas if I don't do client side [javascript] validations ? 2a- Textboxes - provided I'm not allowing special characters (only alphanumeric) does this alone protect me from things like sql injections ?

RE: [PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Graham Cossey
I do not do any javascript validation, and try to avoid it if at all possible as you cannot guarantee that the client has JavaScript enabled, much like relying on cookies. If you are concerned about 'crafty hackers' you'll probably need to check every form element. You probably also want to check

Re: [PHP] Mixing classes

2004-10-19 Thread Davy Obdam
Hi Tomi, You could create an object of the Database class in your Auth class like this and then use your Datebase class with your Auth class: ?php require_once(Database/Database.php); class Auth { var $dbObject = ; function Auth () { //Create an instance of you database class

RE: [PHP] Help: Suggestions for multi page form validation

2004-10-19 Thread Stuart Felenstein
Yes, this is a great reminder, as I thought about it. Man, can one form be so time consuming ? :) Stuart --- Graham Cossey [EMAIL PROTECTED] wrote: You probably also want to check somehow that page2.php is actually being called from page1.php and not by any other means. HTH Graham

[PHP] PHP Configuration Error

2004-10-19 Thread Mulley, Nikhil
Hi All, When I am compiling php4.3.8 with mysql,apxs and snmp on a -Linux Build i386 GNU/Linux I am getting this error Can some body please help me I have PHP already installed but I want to reconfigure it to work with snmp Here is the End of the configuration message

Re: [PHP] Mixing classes

2004-10-19 Thread Tomi Kaistila
Hi! Thanks for the idea, hadn't actually thought of it that way. I had thought of passing objects (instance the db object to the auth object) by reference, but when thinking that while one class might only need the help of one other class, another class might need the help of four classes.

[PHP] Re: Oracle Connection

2004-10-19 Thread David Robley
On Tue, 19 Oct 2004 16:20, Syed wrote: Hi All, will anybody tell me how to connect oracle database using php script. Thanx Syed Start at http://php.net/oracle -- David Robley If winning isn't important then why keep score? -- PHP General Mailing List (http://www.php.net/) To

[PHP] Re: PHP Configuration Error

2004-10-19 Thread David Robley
On Tue, 19 Oct 2004 20:48, Nikhil Mulley wrote: Hi All, When I am compiling php4.3.8 with mysql,apxs and snmp on a -Linux Build i386 GNU/Linux I am getting this error Can some body please help me I have PHP already installed but I want to reconfigure it to work with snmp

Re: [PHP] PHP Configuration Error

2004-10-19 Thread bbonkosk
It can't find your mysql stuff to link in. What does your configuration command look like? you might have to specify the path to mysql, i.e. --with-mysql=/path/to/mysql -Brad - Original Message - From: Mulley, Nikhil [EMAIL PROTECTED] Date: Tuesday, October 19, 2004 7:18 am Subject:

[PHP] @session_start generates a new session_id

2004-10-19 Thread Mark-Walter
Hi, I made an update to Apache/1.3.31 (Unix) PHP/4.3.9 and before this everythings works fine. The problem is that a following page generates a new session stored under the session.save_path and the stored variable e.g. $_SESSION['SESS_CUS'] is not valid anymore due the SID entry. On both pages

Re: [PHP] Mixing classes

2004-10-19 Thread Davy Obdam
Hi Maybe you could make most class childs of the Core class... well at least the classes that need values from you config file. class Database extends Core { } } I dont know if this is gonna work in your set up, but since this Core class reads the config file, now you can just creat an

RE: [PHP] Re: Oracle Connection

2004-10-19 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 19 October 2004 13:19, David Robley wrote: On Tue, 19 Oct 2004 16:20, Syed wrote: Hi All, will anybody tell me how to connect oracle database using php script.

Re: [PHP] people/projects looking for developers...

2004-10-19 Thread Philip Thompson
On Oct 18, 2004, at 9:06 PM, bruce wrote: interesting... for the most part, people have responded with contract resource sites... (guru.com/elance.com/etc) no one has mentioned any kind of site specifically geared towards people who want to come together to kind of build applications. ala

[PHP] Extracting relevant text from a text file

2004-10-19 Thread Stuart Felenstein
Best way for me to explain this is by example - I just applied for a job and cut and past my resume into a textarea. After submitting it had extracted all the information and placed them into textfields. So my first name was now in the first name textfield, city was in the city field. Also ,

Re: [PHP] people/projects looking for developers...

2004-10-19 Thread Greg Donald
On Tue, 19 Oct 2004 08:28:17 -0500, Philip Thompson [EMAIL PROTECTED] wrote: so my question i guess, is why the hell isn't there more of an interest in this kind of atmosphere.. php-general is a place where PHP users come to get coding assistance and to discuss PHP code in general. I

Re: [PHP] sql trim problem

2004-10-19 Thread Greg Donald
On Mon, 18 Oct 2004 21:43:18 -0700, Dale Hersowitz [EMAIL PROTECTED] wrote: Recently, I had to format my db server and when I re-attached the database, I noticed some unusal behavior. I have some fields in certain tables with a width of 60. When I would extract data from the table for that

Re: [PHP] Optimized GIF animations created on the fly (patch included)

2004-10-19 Thread Greg Donald
On Tue, 19 Oct 2004 10:32:01 +0300 (EEST), Jaakko Hyvätti [EMAIL PROTECTED] wrote: I hope people can test this patch and suggest improvements, and that eventually the patch makes it into php-4 and php-5. I'll try to include examples and updated manual patches for the new functions on that

Re: [PHP] Add to regex help

2004-10-19 Thread Silvio Porcellana
Uhm, I guess you are looking for links (following a 'href') in your HTML page, so why don't you just do something like: preg_match_all('/href=[\\']?([^\\'\s]*)[\\']?/i', $url, $matches) (note the '\s' added inside the bracket that should match the link, as you could have: a href=pippo.com

RE: [PHP] Re: ' (Single Quotes) in user inputs

2004-10-19 Thread Gryffyn, Trevor
Also, you probably want to do a string replace of some kind and make the single quote a double single-quote ' to '' I don't know if that's how MySQL does it, but that's how SQL Server escapes single quotes and I believe other DBs do as well. Just something to look into because I think the

Re: [PHP] @session_start generates a new session_id

2004-10-19 Thread Matt M.
@session_start(); session_name(userauth); $_SESSION['SESS_CUS'] = $user_id; I am not 100% sure what the problem is, but if you are trying to change the session name to userauth, I think you need to do that before session_start http://us2.php.net/session_name -- PHP General Mailing List

Re: [PHP] @session_start generates a new session_id

2004-10-19 Thread Mark-Walter
Hi Matt, @session_start(); session_name(userauth); $_SESSION['SESS_CUS'] = $user_id; I am not 100% sure what the problem is, but if you are trying to change the session name to userauth, I think you need to do that before session_start session_name() works ok so far. For example: ?

[PHP] fputcsv() error message

2004-10-19 Thread Steven
Fatal error: Call to undefined function: fputcsv() in /home/webdev/sites/tracking_site/scripts/report.php on line 19 Is there something that I am missing? The code that I had entered in: ?php $list = array ( 'aaa,bbb,ccc,', '123,456,789', 'aaa,bbb' ); $fp = fopen('file.csv',

Re: [PHP] fputcsv() error message

2004-10-19 Thread Greg Donald
On Tue, 19 Oct 2004 12:37:02 -0500, Steven [EMAIL PROTECTED] wrote: Fatal error: Call to undefined function: fputcsv() in /home/webdev/sites/tracking_site/scripts/report.php on line 19 php.net/fputcsv (no version information, might be only in CVS) -- Greg Donald Zend Certified Engineer

Re: [PHP] problem with array

2004-10-19 Thread Minuk Choi
You say you have a database with many CHAR(60) fields? Have you considered changing those to VARCHAR(60)? This isn't PHP and is probably inappropriate solution(since it is not PHP related), but I believe a CHAR(60) defines the field as a fixed length character string, meaning no matter what you

[PHP] Square brackets tags

2004-10-19 Thread Marco Bambini
Hi All, I need to write a PHP extension or a PHP template system (this is the question) to parse some commands enclosed in square brackets inside web pages. Please note that the commands are in the form [command1] and not ?php [command1] ?. I want use PHP because these commands needs to be

Re: [PHP] Square brackets tags

2004-10-19 Thread Greg Donald
On Tue, 19 Oct 2004 20:13:23 +0200, Marco Bambini [EMAIL PROTECTED] wrote: I need to write a PHP extension or a PHP template system (this is the question) to parse some commands enclosed in square brackets inside web pages. Please note that the commands are in the form [command1] and not ?php

RE: [PHP] fputcsv() error message

2004-10-19 Thread Steven
Crapola. I guess that means a recompile... T.T`` Steven Altsman -Original Message- From: Greg Donald [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 19, 2004 12:59 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] fputcsv() error message On Tue, 19 Oct 2004 12:37:02 -0500, Steven [EMAIL

RE: [PHP] new connection with pg_pconnect

2004-10-19 Thread Jonathan Villa
[snip] I then have the page main.php which has ?php global $sys_dbhost,$sys_dbuser,$sys_dbpasswd; $dbconn = pg_connect(user=$sys_dbuser dbname=bisprojects host=$sys_dbhost password=$sys_dbpasswd); echo '-'.$dbconn.'-'; ? the scripts just dies whenever I include the pg_connect function...

[PHP] Session

2004-10-19 Thread Deleo Paulo Ribeiro Junior
Hello! I am trying to make my pages last for only 1 minute but I am not been successfull. I have already changed session.cache_expire = 1 in php.ini (USING RedHat) but nothing happens. I would like the pages to last only for 1 minute, this means that if the user do not use the site within 1

Re: [PHP] Session

2004-10-19 Thread Matt M.
I am trying to make my pages last for only 1 minute but I am not been successfull. I have already changed session.cache_expire = 1 in php.ini (USING RedHat) but nothing happens. I would like the pages to last only for 1 minute, this means that if the user do not use the site within 1

[PHP] Re: Session

2004-10-19 Thread Matthew Weier O'Phinney
* Deleo Paulo Ribeiro Junior [EMAIL PROTECTED]: I am trying to make my pages last for only 1 minute but I am not been = successfull. I have already changed session.cache_expire =3D 1 in php.ini (USING = RedHat) but nothing happens. You may also need to set session.cookie_lifetime (if

Re: [PHP] Square brackets tags

2004-10-19 Thread Marco Bambini
On 19/ott/04, at 20:34, Greg Donald wrote: On Tue, 19 Oct 2004 20:13:23 +0200, Marco Bambini [EMAIL PROTECTED] wrote: I need to write a PHP extension or a PHP template system (this is the question) to parse some commands enclosed in square brackets inside web pages. Please note that the commands

Re: [PHP] Session

2004-10-19 Thread Chris Dowell
Deleo We had an interesting conversation on this last just last week regarding the length of sessions. The title of the thread is [PHP]Sessions not destroyed. Try searching the archives with that text. I believe Marek's and my own messages may have the information you're looking for -

[PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Janke Dávid
Dear php list! I have a real big and strange problem I ran into few weeks ago. One of my clients complained, that the intranet software began to run very slow, almost unusable. Since then I have almost tried everything to get the thing work. The facts: On P3 architecture systems (I have tried 3,

Re: [PHP] Square brackets tags

2004-10-19 Thread GH
I am thinking in theory include() the file in to a wrapper php file that can then do as Marco says evaluate or do a series of str_replaces? [quote from previous emails] I'm sure there are. For example you can convert the string using htmlspecialchars, and then convert only allowed tags back:

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Ed Lazor
The most strange thing is, that the problem appeared at a time, when no changes to the program was made. ANYBODY RAN INTO SOME SIMILAR THING? I haven't run into this, but it'll be easier to help troubleshoot this if you could post sample code. Ed Lazor, President http://RPGStore.com

RE: [PHP] 'Intelligently' truncate string?

2004-10-19 Thread Ed Lazor
-Original Message- I'm wondering if anyone else on the list has worked out a way of intelligently truncating a string to take these kinds of occurrences into account? I don't mind, in these situations if the truncation takes place before or after the entity, since when displayed

Re: [PHP] Square brackets tags

2004-10-19 Thread Sam Smith
I was just reading a little on this. This is the way you build a template system. Smarty uses { }. Maybe you could check out the Smarty page and get an idea. http://smarty.php.net/ Or maybe you could just use Smarty, you can change the { } to anything you want. Hi All, I need to write a

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Janke Dávid
The sample code (in seperate, this piece of code runs with normal speed, but it is this part which runs slowly when executed as a whole, everything else is fast): $sqlquery = SELECT sh_Number, sh_Status FROM service_sheet ORDER BY sh_Number DESC; $result = mysql_query($sqlquery)

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Jennifer Goodie
-- Original message from Janke Dávid : -- The sample code (in seperate, this piece of code runs with normal speed, but it is this part which runs slowly when executed as a whole, everything else is fast): $sqlquery = SELECT sh_Number, sh_Status FROM

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Janke Dávid
How any rows are you pulling from the database? aprrox. 12.000 but there are only around 50-100 new rows at a maximum within a day, and there were almost as many before the problem appeared. What's the very last part of the code: .$_OR? There is a switch, some echoes and a db_close; Have

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Janke Dávid
2004-10-19, k keltezssel 23:38-kor Jennifer Goodie ezt rta: -- Original message from Janke Dvid : -- The sample code (in seperate, this piece of code runs with normal speed, but it is this part which runs slowly when executed as a whole, everything else is

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Ed Lazor
How any rows are you pulling from the database? aprrox. 12.000 but there are only around 50-100 new rows at a maximum within a day, and there were almost as many before the problem appeared. You're creating a form with over 12,000 options in a select statement? What's the very last

RE: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread Janke Dávid
2004-10-20, sze keltezssel 00:19-kor Ed Lazor ezt rta: How any rows are you pulling from the database? aprrox. 12.000 but there are only around 50-100 new rows at a maximum within a day, and there were almost as many before the problem appeared. You're creating a form with over

[PHP] header problem for mobile browser

2004-10-19 Thread QT
Hi, I want to make a php file for download a jad file. I am using following script to let browser understand that jad file is coming and download it. But I have very interesting problem. If user open browser and write correct addres following script let the download file. But if the user open

[PHP] permission for file creating script

2004-10-19 Thread Padi
Q: Why can't userX in groupY write on a file with chmod 0664 and chown userY:groupY? Summary: I use php 4.3.9 on an apache webserver I always got permission errors, when scripts tried to use mkdir() and the kind. So I chowned all files and folders to apache:apache and made my standard user on

Re: [PHP] CPU usage @5% during 2 minutes

2004-10-19 Thread raditha dissanayake
Janke Dávid wrote: Dear php list! I have a real big and strange problem I ran into few weeks ago. One of my clients complained, that the intranet software began to run very slow, almost unusable. Since then I have almost tried everything to get the thing work. Install xdebug. It will help you

Re: [PHP] header problem for mobile browser

2004-10-19 Thread raditha dissanayake
QT wrote: Hi, I want to make a php file for download a jad file. I am using following script to let browser understand that jad file is coming and download it. Not sure If I have understood your question correctly but surely it would be easier for you to just add the following lines to your

RE: [PHP] Help With Error

2004-10-19 Thread php-list
Pablo, Thanks for responding. I found out what the problem was. There was an argument that was empty (i.e. empty string) in the add_cat() method. Thanks for your help, I really appreciate it. :) [snip] Notice: Undefined index: 0 in

[PHP] Automatic Form processor

2004-10-19 Thread Lone Wolf
I've googled for this one and so far have come up empty handed. I am in need of a PHP script that will take any POST data and parse it into a file and email it out to users. The data needs to be completely changeable, whether I have 20 items or 400, I just want to throw everything to the script

Re: [PHP] Automatic Form processor

2004-10-19 Thread Dan Joseph
I am in need of a PHP script that will take any POST data and parse it into a file and email it out to users. The data needs to be completely changeable, whether I have 20 items or 400, I just want to throw everything to the script via POST and let it take the POST information and manipulate

Re: [PHP] @session_start generates a new session_id

2004-10-19 Thread Sadeq Naqashzade
Hi, Check your PHP config file. You may enable auto session start. I think this is the reasone of problem. Sadeq On Tue, 19 Oct 2004 18:21:29 +0200, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi Matt, @session_start(); session_name(userauth); $_SESSION['SESS_CUS'] = $user_id; I

[PHP] Reverse (or backward?) Infinity Loop

2004-10-19 Thread Bruno B B Magalhães
Hi guys, I have a normal categories table: catId catParentId catName catStatus But I want when a user enters on: http://hostname/site/products/catId1/catId7/catId13/../../contentId.html A listing should apear like that: Category 1 Category 7 Category 13 Category 2 Category 3

Re: [PHP] Automatic Form processor

2004-10-19 Thread Justin French
On 20/10/2004, at 12:42 PM, Lone Wolf wrote: I am in need of a PHP script that will take any POST data and parse it into a file and email it out to users. The data needs to be completely changeable, whether I have 20 items or 400, I just want to throw everything to the script via POST and let

[PHP] Help! No output from PHP CLI

2004-10-19 Thread Warren Guy
Hi all, I'm having a strange problem with command line PHP. Scripts seem to function fine, however with no output. [EMAIL PROTECTED]:~ php ? echo moocows\n; ? ^D [EMAIL PROTECTED]:~ However works fine on another machine with a seemingly identical php.ini [EMAIL PROTECTED]:~ php ? echo moocows\n;

RE: [PHP] Reverse (or backward?) Infinity Loop

2004-10-19 Thread trenton
This does not generate the exact look you are asking for, but can easily be modified by changing the dashes to spaces etc. I also left my naming convention in, so that would have to be altered to your fields as well. It may not be the cleanest code, but it does work. ?php $query = SELECT * FROM

[PHP] Re: Help! No output from PHP CLI

2004-10-19 Thread Warren Guy
Warren Guy wrote: Hi all Probably should mention we are running PHP 4.3.7 -- Warren Guy [EMAIL PROTECTED] System Administrator, Family Health Network Phone: +61 8 9389 8777 Fax: +61 8 9389 8444 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Help! No output from PHP CLI

2004-10-19 Thread Matthew Sims
Hi all, I'm having a strange problem with command line PHP. Scripts seem to function fine, however with no output. [EMAIL PROTECTED]:~ php ? echo moocows\n; ? ^D [EMAIL PROTECTED]:~ However works fine on another machine with a seemingly identical php.ini [EMAIL PROTECTED]:~ php ?

Re: [PHP] Mixing classes

2004-10-19 Thread Tomi Kaistila
Hi! A good idea, which I have used for some classes, like the Journal class (error handling) which fits in with the Core class. Unfortunantly I have too many classes to make them all into a chain of child classes. And also I have an ambition to write these classes in sorta seperate tools,

Re: [PHP] Mixing classes

2004-10-19 Thread Thomas Goyne
On Wed, 20 Oct 2004 08:09:53 +0300, Tomi Kaistila [EMAIL PROTECTED] wrote: Hi! A good idea, which I have used for some classes, like the Journal class (error handling) which fits in with the Core class. Unfortunantly I have too many classes to make them all into a chain of child classes.

Re: [PHP] Mixing classes

2004-10-19 Thread M. Sokolewicz
Thomas Goyne wrote: On Wed, 20 Oct 2004 08:09:53 +0300, Tomi Kaistila [EMAIL PROTECTED] wrote: Hi! A good idea, which I have used for some classes, like the Journal class (error handling) which fits in with the Core class. Unfortunantly I have too many classes to make them all into a chain