[PHP] Limiting character input in textarea

2004-11-16 Thread Garth Hapgood - Strickland
Unlike the input fields that use maxlength to define the number of character allowed. Textarea doesnt seem to have that capability. I want to limit the number of character to 255. IS there any way of doing this without having to break my neck about it? Garth -- PHP General Mailing List

Re: [PHP] From: mail() function

2004-11-16 Thread Richard Davey
Hello Garth, Tuesday, November 16, 2004, 7:56:39 AM, you wrote: GHS how can I make the from address look like Matchmakers Team instead of GHS 'from:[EMAIL PROTECTED]'. Format it correctly. The PHP manual is your friend: 'From: Matchmakers Team [EMAIL PROTECTED]' Best regards, Richard Davey

[PHP] Loading an extension

2004-11-16 Thread Octavian Rasnita
Hi all, I want to add an extension (CURL, mysql) to a php program without specifying it in php.ini (because on some servers I might not have the right to modify that configuration file). I have tried using the dl() function, but here is an error I get on the browser when doing this: Warning:

Re: [PHP] Re: unable to upload a directory using the web brower (HTTP).

2004-11-16 Thread raditha dissanayake
Scott Fletcher wrote: Um, can't be done. So, I'll have to use JAVA instead. Have anyone ever done this, does anyone know of a good freeware JAVA applet that I can use? Shameless Plug: Rad Upload (http://www.radinks.com/upload) does upload folders over HTTP unfortunatley it's not free (but

Re: [PHP] Limiting character input in textarea

2004-11-16 Thread Richard Davey
Hello Garth, Tuesday, November 16, 2004, 7:59:35 AM, you wrote: GHS Unlike the input fields that use maxlength to define the number of character GHS allowed. Textarea doesnt seem to have that capability. I want to limit the GHS number of character to 255. GHS IS there any way of doing this

[PHP] php.ini

2004-11-16 Thread lister
(on windows) can someone tell me where to define which php.ini gets used? On my dev box, I installed the zend editor. Now when i do a localhost/phpinfo() from a normal browser window (ie not from within the zend IDE) it says php is using the ../zend/php.ini settings file... within apache's

Re: [PHP] Loading an extension

2004-11-16 Thread Richard Davey
Hello Octavian, Tuesday, November 16, 2004, 8:08:46 AM, you wrote: OR Not supported in multithreaded Web servers - use extension=ext/php_mysql.dll OR in your php.ini in D:\broker\html\cotatii.php on line 6 The clue is in the error. Whatever web server you are using on your Windows box doesn't

RE: [PHP] London - One Day Workshop How to Build a Professional Database-Driven Website

2004-11-16 Thread Ryan Carson
This definitely isn't spam. I'm a PHP developer myself who values the PHP General Mailing list. I thought everyone would want to know about the workshop, as it's a great opportunity to improve your skills and get ahead of the competition. Hope to see you there. -Original Message-

Re: [PHP] London - One Day Workshop How to Build a Professional Database-Driven Website

2004-11-16 Thread Lester Caine
Ryan Carson wrote: This definitely isn't spam. I'm a PHP developer myself who values the PHP General Mailing list. I thought everyone would want to know about the workshop, as it's a great opportunity to improve your skills and get ahead of the competition. Border line given the price Hope to

[PHP] Re: php.ini

2004-11-16 Thread Lester Caine
[EMAIL PROTECTED] wrote: (on windows) can someone tell me where to define which php.ini gets used? The default is a copy in the windows directory. (C:\WINDOWS or c:\WINNT) While details of what goes IN php.ini are nice in the manual - where it goes is a bit more vague. Someone add some fine

Re: [PHP] php.ini

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 00:17 -0800, [EMAIL PROTECTED] wrote: (on windows) can someone tell me where to define which php.ini gets used? If there is a php.ini file in the php root directory, then that gets used. Otherwise, the php.ini file in C:\Windows (iirc). If the php interpreter (or dll)

Re: [PHP] php.ini

2004-11-16 Thread Richard Davey
Hello, Tuesday, November 16, 2004, 8:17:27 AM, you wrote: lpc within apache's httpd.conf you can set which php DLL to use, but I cannot lpc see how php then knows which .ini file to work with? It seems to be lpc picking up the php.ini from a completely different directory somewhere, so lpc i am

[PHP] Fwd: Error loading php_mysql.dll

2004-11-16 Thread mindaugas kuksa
Note: forwarded message attached. __ Do you Yahoo!? The all-new My Yahoo! - Get yours free! http://my.yahoo.com ---BeginMessage--- Hello, I write to you because I want to ask you something about PHP extensions. The problem is that when I

[PHP] php broken pipe

2004-11-16 Thread Rui Francisco
Hi, i'm using firebird 1.5.1 on a linux machine with a php script I'm using a query in loop and go through all records to do some operations in the middle of the script i fork(); to do other things When i return to the parent process i try to make one update and i get the following error

[PHP] Re: Error when I try to display 20 records per page

2004-11-16 Thread Philipp Lutz
Scott McWhite wrote: $row = mysql_fetch_array($result); //get a row from our result set a bit farther down... while($row = mysql_fetch_array($result)){ Dude ! You're like pulling the same results from the same query/resultset twice (..and stuff). You can't do that, man. You have to redo the

[PHP] Automatically Escape?

2004-11-16 Thread GH
Is there a function that can automatically escape special characters before putting them into mySQL? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Automatically Escape?

2004-11-16 Thread Richard Davey
Hello GH, Tuesday, November 16, 2004, 12:25:20 PM, you wrote: G Is there a function that can automatically escape special characters G before putting them into mySQL? See magic_quotes to have it done for you. Although this isn't a recommend approach if you plan to distribute your application,

[PHP] my own extension

2004-11-16 Thread Uffe Kousgaard
If I want to write my own extension for PHP/Linux, is there any specification on how to do that? Some specific functions that the SO should always include, call convention etc.? To make things a bit more complex, it will be done with Kylix, so if anyone has tried that combination before, I would

[PHP] Converting to integer

2004-11-16 Thread Octavian Rasnita
Hi all, I get some values from a MySQL table and some of them are in the format 1000.0, 234.0, etc. I want those values converted as 1000, 234, and so on, but the other string values need to remain the same. I have tried using the function is_numeric to test which of the values returned from

[PHP] Re: Converting to integer

2004-11-16 Thread Matthew Weier O'Phinney
* Octavian Rasnita [EMAIL PROTECTED]: I get some values from a MySQL table and some of them are in the format 1000.0, 234.0, etc. I want those values converted as 1000, 234, and so on, but the other string values need to remain the same. I have tried using the function is_numeric to test

Re: [PHP] Converting to integer

2004-11-16 Thread Richard Davey
Hello Octavian, Tuesday, November 16, 2004, 12:53:24 PM, you wrote: OR I have tried using the function is_numeric to test which of the values OR returned from MySQL are numbers, but none of them appear to be a number, so OR I cannot convert them. Because, unless you cast it otherwise, MySQL

[PHP] Re: Automatically Escape?

2004-11-16 Thread Matthew Weier O'Phinney
* Gh [EMAIL PROTECTED]: Is there a function that can automatically escape special characters before putting them into mySQL? Use PEAR's DB or MDB2 libraries with prepared statements and placeholders: $sql = INSERT INTO someTable(value1, value2) VALUES(?, ?); $ins = $db-query($sql,

Re: [PHP] Automatically Escape?

2004-11-16 Thread Jordi Canals
On Tue, 16 Nov 2004 12:33:15 +, Richard Davey [EMAIL PROTECTED] wrote: G Is there a function that can automatically escape special characters G before putting them into mySQL? See magic_quotes to have it done for you. Although this isn't a recommend approach if you plan to distribute

Re: [PHP] php.ini

2004-11-16 Thread Jordi Canals
On Tue, 16 Nov 2004 00:17:27 -0800 (PST), [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: (on windows) can someone tell me where to define which php.ini gets used? On my dev box, I installed the zend editor. Now when i do a localhost/phpinfo() from a normal browser window (ie not from within

Re: [PHP] Date handling

2004-11-16 Thread Robert Sossomon
SNIP ?php echo strtotime('1950-01-01'); ? I'm guessing Red Hat Enterprise or at least the kernel I'm using (which is the latest RH kernel) qualifies under the Linux category above. Also, with the application I'm writing, I need to deal with dates after 2038 too. So that is why I'm investigating

[PHP] Automatically Escape?

2004-11-16 Thread GH
-- Forwarded message -- From: GH [EMAIL PROTECTED] Date: Tue, 16 Nov 2004 08:45:08 -0500 Subject: Re: [PHP] Automatically Escape? To: Jordi Canals [EMAIL PROTECTED] What is the Diffrencce between mysql_escape_string and mysql_real_escape_string? On Tue, 16 Nov 2004 14:34:43

[PHP] Authentication Class

2004-11-16 Thread Bruno B B Magalhães
Hi guys, well, I wrote a class for a big project (a framework), and here it is, I was wondering if someone have any suggestions regarding flexibility and security. Course it uses specific framework classes but it's quite understable..

[PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
I hope this is a reasonable question: This is the query string my search page is kicking out to the results page. It works fine but curious about these codes or characters. And I know this maybe unrelated to PHP, so I'll apologize in advance: Why is each value preceeded by the %5B%5D ? I think

[PHP] copy() not working

2004-11-16 Thread Peter Lauri
Best groupmember, I am implementing a script to upload a file to my webserver. I am using this form that I copied from a working application: echo 'form action=imageadmin.php method=POST enctype=multipart/form-data'; echo 'input type=file name=Filebrinput type=submit name=submit value=Upload

[PHP] AW: AW: Bug #30792 [Opn-Bgs]: LDAP module could not be found

2004-11-16 Thread zengerf
Hello again Sorry for mailing you directly, I will use the php-general account from now. Yes I really did copy the modules to system32 (and on the windows folder directly too), that does not help. And I reproduced the same error on a second server. And as I said, the oci8 module works without

[PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Jay Blanchard
Okie dokieI have to parse an XML file and I continue to RTFM, STFW, and STFA. So I do this... /* let's parse! */ if($readXML = fopen(XMLDIR.testRecp.xml, r)){ while($lineXML = fread($readXML, 4096)){ xml_parse($covadParser, $lineXML, feof($readXML));

Re: [PHP] Limiting character input in textarea

2004-11-16 Thread Philip Thompson
On Nov 16, 2004, at 1:59 AM, Garth Hapgood - Strickland wrote: Unlike the input fields that use maxlength to define the number of character allowed. Textarea doesnt seem to have that capability. I want to limit the number of character to 255. IS there any way of doing this without having to

Re: [PHP] Date handling

2004-11-16 Thread Ryan
Hi Robert, Storing the date in my database isn't the issue I'm running into. The problem I'm having is that if I have a date 1950-01-01, how can I display it in my PHP script as Jan 1, 1950. Or if I have 2040-04-01, how to get it to display as Apr 1, 2040. I can't see a way to do that right

Re: [PHP] Question on query string

2004-11-16 Thread David Bevan
On November 16, 2004 09:06, Stuart Felenstein wrote: Why is each value preceeded by the %5B%5D ? I think the % is for wildcards, but for the life of me can't figure out what 5B and 5D stand for. Ind%5B%5D=2Ind%5B%5D=3Ind%5B%5D=4Ind%5B%5D=5.. Stuart, The % is an escape character to

Re: [PHP] Question on query string

2004-11-16 Thread Richard Davey
Hello Stuart, Tuesday, November 16, 2004, 2:06:03 PM, you wrote: SF Why is each value preceeded by the %5B%5D ? I think the % is for SF wildcards, but for the life of me can't figure out what 5B and 5D SF stand for. SF Ind%5B%5D=2Ind%5B%5D=3Ind%5B%5D=4Ind%5B%5D=5.. They're hex values.

Re: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 08:13 -0600, Jay Blanchard wrote: Okie dokieI have to parse an XML file and I continue to RTFM, STFW, and STFA. So I do this... /* let's parse! */ if($readXML = fopen(XMLDIR.testRecp.xml, r)){ while($lineXML = fread($readXML, 4096)){

Re: [PHP] copy() not working

2004-11-16 Thread Richard Davey
Hello Peter, Tuesday, November 16, 2004, 1:58:48 PM, you wrote: PL if($File) { PL if(copy($File, $File_name)) { PLecho 'The image was not uploaded!'; PL } else { PLecho 'The file was not uploaded!'; PL } PL } PL It does not even enter the if($File) part (checked it witch echos).

Re: [PHP] Re: unable to upload a directory using the web brower (HTTP).

2004-11-16 Thread Scott Fletcher
Thanks for the info, will check it out. I also saw one at http://www.javazoom.net/applets/jclientupload/jclientupload.html and it cost some money. But I did the trial download to see if it is flexible enough for me and I found that it is not. So, I'm thinking that I might not find one and might

Re: [PHP] Automatically Escape?

2004-11-16 Thread Richard Davey
Hello GH, Tuesday, November 16, 2004, 1:45:28 PM, you wrote: G What is the Diffrencce between mysql_escape_string and mysql_real_escape_string? One of them is depreciated, meaning it could drop from the PHP list of functions at any point and shouldn't be relied on (my fault, sorry! use the

Re: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Jason Wong
On Tuesday 16 November 2004 22:13, Jay Blanchard wrote: I have done ini_set(short_open_tag, 0); It's probably not settable at runtime. Check manual. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet

Re: [PHP] unable to upload a directory using the web brower(HTTP).

2004-11-16 Thread Scott Fletcher
I can try that but right now I have a bigger problem. The web browser can't upload folder, so I'm stuck there for now. I'm looking into JAVA as a workaround to this problem. Scott Angelo Zanetti [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] cant you create the folder using php and

Re: [PHP] copy() not working

2004-11-16 Thread Burhan Khalid
On Tue, 2004-11-16 at 14:58 +0100, Peter Lauri wrote: Best groupmember, I am implementing a script to upload a file to my webserver. I am using this form that I copied from a working application: [ snipped ] To handle the form I am using this script... if($File) { if(copy($File,

Re: [PHP] copy() not working

2004-11-16 Thread Jason Wong
On Tuesday 16 November 2004 21:58, Peter Lauri wrote: Is there anyone that see any errors in the problem? I have checked severeal manuals and this is how it should be. Funny, the example(s) in the manual look quite different. Try the ones in the manual, when you get them working then modify

Re: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Richard Davey
Hello Jay, Tuesday, November 16, 2004, 2:13:28 PM, you wrote: JB And when the pareser hits the first line of the XML file ... JB ?xml version=1.0 encoding=ISO-8859-1? JB ... it throws an error from xml_get_error_code JB syntax error Hard to tell without seeing the XML source, but could it be a

[PHP] copy function?

2004-11-16 Thread Garth Hapgood - Strickland
I have a button which I want to add a function to, so that when it is clicked, the data from one textarea will be copied to another textarea Which event handler of the button should I use and hoe should I construct the function? Garth -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Jay Blanchard
[snip] ?xml version=1.0 encoding=ISO-8859-1? ... it throws an error from xml_get_error_code Trim your xml file. Whitespace can cause this problem. [/snip] I trimmed and chopped to no avail. Argh. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

RE: [PHP] Date handling

2004-11-16 Thread Mike
Ryan, I had those problems in the past and to simply avoid the matter altogether, when I store dates I just do so with the time() function. $cur_date = time(); That way, when I poll the DB, I have a timestamp that I can then use date() to format in whatever manner I wish. I haven't run into

Re: [PHP] Automatically Escape?

2004-11-16 Thread Marek Kilimajer
GH wrote: -- Forwarded message -- From: GH [EMAIL PROTECTED] Date: Tue, 16 Nov 2004 08:45:08 -0500 Subject: Re: [PHP] Automatically Escape? To: Jordi Canals [EMAIL PROTECTED] What is the Diffrencce between mysql_escape_string and mysql_real_escape_string? the *_real_* one takes

RE: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Jay Blanchard
[snip] xml_parser_set_option($this-parser, XML_OPTION_CASE_FOLDING, 0); xml_parser_set_option($this-parser, XML_OPTION_SKIP_WHITE, 1); [/snip] I had those in there as well...here is the first few liners of the XML source ?xml version=1.0 encoding=ISO-8859-1? !DOCTYPE response SYSTEM

Re: [PHP] php broken pipe

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 09:59:57 +, Rui Francisco [EMAIL PROTECTED] wrote: I'm using a query in loop and go through all records to do some operations in the middle of the script i fork(); to do other things When i return to the parent process i try to make one update and i get the following

Re: [PHP] London - One Day Workshop How to Build a Professional Database-Driven Website

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 08:24:26 -, Ryan Carson [EMAIL PROTECTED] wrote: This definitely isn't spam. I'm a PHP developer myself who values the PHP General Mailing list. I thought everyone would want to know about the workshop, as it's a great opportunity to improve your skills and get ahead

Re: [PHP] copy function?

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 16:42:31 +0200, Garth Hapgood - Strickland [EMAIL PROTECTED] wrote: I have a button which I want to add a function to, so that when it is clicked, the data from one textarea will be copied to another textarea Which event handler of the button should I use and hoe should I

RE: [PHP] copy function?

2004-11-16 Thread Jay Blanchard
[snip] I have a button which I want to add a function to, so that when it is clicked, the data from one textarea will be copied to another textarea Which event handler of the button should I use and hoe should I construct the function? [/snip] Both textareas on the same page? Want to do the copy

Re: [PHP] copy function?

2004-11-16 Thread Matt M.
I have a button which I want to add a function to, so that when it is clicked, the data from one textarea will be copied to another textarea Which event handler of the button should I use and hoe should I construct the function? onclick. This is not really a php question. do some

[PHP] Array unset

2004-11-16 Thread Bruno B B Magalhães
Hi, I my system can handle invisible modules, so they can't show in the menu but stills works... here is the code: $c = count($modules)-1; for($i = 0; $i = $c; $i++) { if($modules[$i]['moduleVisibility'] == 0) {

Re: [PHP] copy function?

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 16:42 +0200, Garth Hapgood - Strickland wrote: I have a button which I want to add a function to, so that when it is clicked, the data from one textarea will be copied to another textarea Which event handler of the button should I use and hoe should I construct the

Re: [PHP] copy function?

2004-11-16 Thread Richard Davey
Hello Garth, Tuesday, November 16, 2004, 2:42:31 PM, you wrote: GHS Which event handler of the button should I use and hoe should I construct GHS the function? This is a JavaScript question. Please post to a JavaScript mailing list. Best regards, Richard Davey -- http://www.launchcode.co.uk

RE: [PHP] XML + PHP is going to eat my shorts [SOLVED]

2004-11-16 Thread Jay Blanchard
[snip] ?xml version=1.0 encoding=ISO-8859-1? [/snip] using fread the above line comae out like this(even though I was not echoing the line, just processing) ?xml version=\1.0\ encoding=\ISO-8859-1\? ...as soon as I added stripslashes the syntax error disappeared and VIOLA!...xml file

[PHP] Is Perl faster than PHP?

2004-11-16 Thread Merlin
Hi there, it came to my attention that most of the high traffic portals are using perl in the backend. Those sites do also apear to me to be very fast in comparison to most php sites. Are there any known performance comperissons between the two available? Or can one say that PHP or Perl is

Re: [PHP] my own extension

2004-11-16 Thread Klaus Reimer
Uffe Kousgaard wrote: If I want to write my own extension for PHP/Linux, is there any specification on how to do that? Some specific functions that the SO should always include, call convention etc.? Those who know don't talk. Those who talk don't know. It's all in the docs (not much, but enough):

Re[2]: [PHP] XML + PHP is going to eat my shorts

2004-11-16 Thread Richard Davey
Hello Jay, Tuesday, November 16, 2004, 3:01:45 PM, you wrote: JB I had those in there as well...here is the first few liners of the XML JB source Does the XML file validate? Maybe post a complete file (or if too long a URL to one) so we could test it? Would at least narrow down if the error

Re: [PHP] my own extension

2004-11-16 Thread Uffe Kousgaard
Klaus Reimer [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It's all in the docs (not much, but enough): http://www.php.net/manual/en/zend.php I had looked at the docs, but didn't check out Zend, since that word didn't made me think of extensions. Kylix? Isn't it a Delphi-like

Re: [PHP] copy() not working

2004-11-16 Thread Peter Lauri
Thank you. Now I am getting somewhere, but I get this error-msg now, I do not understand the content of it. Have tried to read about the Auth in PHP but I did not get any information to solve the problem: Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid is

Re: [PHP] Date handling

2004-11-16 Thread Ryan
Yes, but time() returns a Unix timestamp which has a limit of 2038. For example, what if I would like to calculate the date of 40 years from today? I can't do that with the normal PHP date functions. I would have to use PEAR Date or something similar, which is my original question - of what

Re: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Richard Davey [EMAIL PROTECTED] wrote: Use urldecode() to get them back to normal again. Changed the form action line to this: action=searchresults.php?Ind=?php echo urldecode(((isset($_POST[Ind[]]))?$_POST[Ind[]]:)) Still getting this: ?Ind%5B%5D=1Ind%5B%5D=2Ind%5B%5D=3 I'm under

[PHP] latest GD dll binary for windows?

2004-11-16 Thread lister
hi - is there anywhere I can get a pre-compiled GD (graphics library) DLL for windows, that supports the GIF writing? The notices on the GD page say in big letters not intended for use with PHP!... http://www.boutell.com/gd/ For some reason the PHP install I have (Zend IDE has taken over my

Re: [PHP] Is Perl faster than PHP?

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 16:54 +0100, Merlin wrote: Hi there, it came to my attention that most of the high traffic portals are using perl in the backend. Those sites do also apear to me to be very fast in comparison to most php sites. Are there any known performance comperissons between

Re: [PHP] Authentication Class

2004-11-16 Thread raditha dissanayake
Bruno B B Magalhães wrote: Hi guys, well, I wrote a class for a big project (a framework), and here it is, I was wondering if someone have any suggestions regarding flexibility and security. Wow it's the most artistic piece of php i have ever seen. -- Raditha Dissanayake.

Re: [PHP] Is Perl faster than PHP?

2004-11-16 Thread raditha dissanayake
Merlin wrote: Hi there, it came to my attention that most of the high traffic portals are using perl in the backend. Those sites do also apear to me to be very fast in comparison to most php sites. Are there any known performance comperissons between the two available? Or can one say that PHP

[PHP] weekly email idea

2004-11-16 Thread Robby Russell
On some of the general lists (like I am on the python list), they have a weekly email that someone puts together and sends out to the list with tips and urls to things found throughout the week on the mailing list. People post valuable links and information and it would be a quick overview of the

[PHP] How to path global object

2004-11-16 Thread Hongwei Li
Hi, I have a question of how to path global object's values. Below are some simplified codes. It has 4 pieces: 1. tsstart.php: -- this is the start point to be browsed ?php include tsdata.php; include tsshow.php; ? 2. tsdata.php: -- to get data, here I set it as a 2-d array and assign values

[PHP] Auto-load class if it doesn't exists!

2004-11-16 Thread Bruno B B Magalhães
Hi people, is it possible to have a solution that works like an autoloader... for example: $myclass = new class(); but if this class wasn't loaded yet, it loads by itself... egg: if(class_exists(class)) { $myclass = new class(); } else { require_once(PATH_DIR.'class.class.php');

Re: [PHP] my own extension

2004-11-16 Thread Klaus Reimer
Uffe Kousgaard wrote: It is a large delphi library I want to call from PHP, so I don't think it is easier. But you know your library and you have it under control so maybe it's easier to write C include files to interface your Kylix library from C instead of writing Delphi-Units to interface PHP

RE: [PHP] Question on query string

2004-11-16 Thread Chris W. Parker
Stuart Felenstein mailto:[EMAIL PROTECTED] on Tuesday, November 16, 2004 8:28 AM said: --- Richard Davey [EMAIL PROTECTED] wrote: Use urldecode() to get them back to normal again. [snip] Or should I do a $_GET['Ind'] = urlencode('Ind') on searchresults.php ? ?php // this is what

Re: [PHP] XML + PHP is going to eat my shorts [SOLVED]

2004-11-16 Thread Marek Kilimajer
Jay Blanchard wrote: [snip] ?xml version=1.0 encoding=ISO-8859-1? [/snip] using fread the above line comae out like this(even though I was not echoing the line, just processing) ?xml version=\1.0\ encoding=\ISO-8859-1\? ...as soon as I added stripslashes the syntax error disappeared and

Re: [PHP] Question on query string

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 00:28, Stuart Felenstein wrote: --- Richard Davey [EMAIL PROTECTED] wrote: Use urldecode() to get them back to normal again. Changed the form action line to this: action=searchresults.php?Ind=?php echo urldecode(((isset($_POST[Ind[]]))?$_POST[Ind[]]:)) When

[PHP] splitting string

2004-11-16 Thread Afan Pasalic
I create a string from other strings: $string = $string1.\n.$string2.\n.$string3.\n.$string4.\n.$string5; and then store it in DB. But, I can't figure out how to split them back? Tried: $string_back = explode('\n', $string); $string_back = explode('br', $string); $string_back = explode('br /',

[PHP] http header script to stimluate upload with drag and drop??

2004-11-16 Thread Scott Fletcher
Hi! I wonder is is it possible to have an http header that would stimluate files/folders upload via dragging over to the browser window? If so then what are the sample functions or scripts that make this possible... Thanks, Scott -- PHP General Mailing List (http://www.php.net/) To

RE: [PHP] Question on query string

2004-11-16 Thread Ford, Mike
To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm On 16 November 2004 16:28, Stuart Felenstein wrote: --- Richard Davey [EMAIL PROTECTED] wrote: Use urldecode() to get them back to normal again. Changed the form action

Re: [PHP] link in ModalDialog

2004-11-16 Thread vlad georgescu
first of all thanks for response. and second, some clarification. i have a main window (with a txtarea - html-editor), from this page I want to open a little page (upload_img.php) to handle the uploadimg2-onserver and return path2img-onserver (where was uploaded) on close. showModalDialog in js

Re: [PHP] Is Perl faster than PHP?

2004-11-16 Thread Brent Baisley
Since both Perl and PHP are scripting languages, I don't think you could definitively say one is faster than the other. First and foremost it's the talent of the coder that makes a program fast or slow. Perl has been around a lot longer and so the libraries (i.e. CPAN) are more refined and

Re: [PHP] Authentication Class

2004-11-16 Thread Bruno B B Magalhães
Is this good or bad? heheh! Regards, Bruno B B Magalhaes On Nov 16, 2004, at 3:31 PM, raditha dissanayake wrote: Bruno B B Magalhães wrote: Hi guys, well, I wrote a class for a big project (a framework), and here it is, I was wondering if someone have any suggestions regarding flexibility and

RE: [PHP] Question on query string

2004-11-16 Thread Stuart Felenstein
--- Ford, Mike [EMAIL PROTECTED] wrote: The main problem with the above snippet that I can see is that there's very unlikely to be such a thing as $_POST[Ind[]] -- form fields with name=Ind[] will turn up as an array in $_POST[Ind] ($_POST[Ind][0], $_POST[Ind][1], etc.). But the whole

Re: [PHP] Auto-load class if it doesn't exists!

2004-11-16 Thread Jonel Rienton
Hi, you would need something like a singleton class if my memory serves me. cheers, jonel -- I not know English well, but I know 7 computer languages. anonymous On Nov 16, 2004, at 11:36 AM, Bruno B B Magalhães wrote: Hi people,

[PHP] Re: http header script to stimluate upload with drag and drop??

2004-11-16 Thread M. Sokolewicz
Scott Fletcher wrote: Hi! I wonder is is it possible to have an http header that would stimluate headers don't stimulate. They are simple messages, a bit of text with no real meaning until the browser/server/whatever gives it meaning locally to itself. files/folders upload via dragging over

[PHP] Re: splitting string

2004-11-16 Thread M. Sokolewicz
Afan Pasalic wrote: I create a string from other strings: $string = $string1.\n.$string2.\n.$string3.\n.$string4.\n.$string5; and then store it in DB. But, I can't figure out how to split them back? Tried: $string_back = explode('\n', $string); $string_back = explode('br', $string); $string_back

Re: [PHP] splitting string

2004-11-16 Thread Greg Donald
On Tue, 16 Nov 2004 12:01:04 -0600, Afan Pasalic [EMAIL PROTECTED] wrote: I create a string from other strings: $string = $string1.\n.$string2.\n.$string3.\n.$string4.\n.$string5; and then store it in DB. But, I can't figure out how to split them back? Tried: $string_back =

Re: [PHP] php.ini

2004-11-16 Thread lister
thanks for the replies, but... If there is a php.ini file in the php root directory, then that gets used. Otherwise, the php.ini file in C:\Windows (iirc). If the Actually it seems like the Zend IDE installed another apache server. But the situation is more confusing. When I start my standard

Re: [PHP] splitting string

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 02:01, Afan Pasalic wrote: I create a string from other strings: $string = $string1.\n.$string2.\n.$string3.\n.$string4.\n.$string5; and then store it in DB. But, I can't figure out how to split them back? Tried: $string_back = explode('\n', $string);

Re: [PHP] splitting string

2004-11-16 Thread Dennis Lahay
I usually put a bar | between each string, if I need to. $string = $string1.|.$string2.|.$string3.|.$string4.|.$string5; D On Nov 16, 2004, at 12:01 PM, Afan Pasalic wrote: I create a string from other strings: $string = $string1.\n.$string2.\n.$string3.\n.$string4.\n.$string5; and then store it

Re: [PHP] http header script to stimluate upload with drag and drop??

2004-11-16 Thread Robby Russell
On Tue, 2004-11-16 at 13:10 -0500, Scott Fletcher wrote: Hi! I wonder is is it possible to have an http header that would stimluate files/folders upload via dragging over to the browser window? If so then what are the sample functions or scripts that make this possible... Thanks,

Re: [PHP] splitting string

2004-11-16 Thread M. Sokolewicz
Afan Pasalic wrote: Chris W. Parker wrote: Yes. $string = $string1|$string2|$string3|$string4|$string5; $string_back = explode(|, $string); Ok, I'm going to change the code and use pipes :) Thanks to all of you.! -afan please explain... WHY is that better? -- PHP General Mailing List

Re: [PHP] php.ini

2004-11-16 Thread Jason Wong
On Wednesday 17 November 2004 01:33, [EMAIL PROTECTED] wrote: thanks for the replies, but... If there is a php.ini file in the php root directory, then that gets used. Otherwise, the php.ini file in C:\Windows (iirc). If the Actually it seems like the Zend IDE installed another apache

Re: [PHP] splitting string

2004-11-16 Thread Klaus Reimer
Afan Pasalic wrote: But, I can't figure out how to split them back? $string_back = explode('\n', $string); That one is the right one. But you must use double quotes, not single quotes. Escaped characters (except \') in single quoted strings are not processed. -- PHP General Mailing List

Re: [PHP] splitting string

2004-11-16 Thread Afan Pasalic
That was the trick? At least - I was close :) Thanks! -afan Klaus Reimer wrote: Afan Pasalic wrote: But, I can't figure out how to split them back? $string_back = explode('\n', $string); That one is the right one. But you must use double quotes, not single quotes. Escaped characters (except \')

[PHP] odbc question

2004-11-16 Thread Adil
$sql = SELECT * FROM users WHERE username='$username' AND password='$password'; $result = odbc_exec($dbConnection, $sql); while ($rows = odbc_fetch_array($result)) { //This doesn't work with odbc_fetch_object either print $rows-COLUMNNAME; } It's returning an array, not an object (I

Re: [PHP] http header script to stimluate upload with drag anddrop??

2004-11-16 Thread Scott Fletcher
:-) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: http header script to stimluate upload with drag and drop??

2004-11-16 Thread Scott Fletcher
I have written lot of http header scripts myself, so I'm familiar with what they are used for. Scott M. Sokolewicz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Scott Fletcher wrote: Hi! I wonder is is it possible to have an http header that would stimluate headers don't

Re: [PHP] Problem typing in PHP forms on Mac OS

2004-11-16 Thread Jonel Rienton
do you have the actual link of this page, i can test it for you. -- I not know English well, but I know 7 computer languages. anonymous On Nov 16, 2004, at 2:24 PM, Jeff - Webmaster wrote: Hello all. I have created a few PHP pages

Re: [PHP] splitting string

2004-11-16 Thread Brent Baisley
The problem is that you are using single quotes, so php is looking for a literal \n rather than escaping it to a new line character. Try double quotes and then PHP will parse the contents of the quotes, looking for escape characters and variables. explode(\n) Use nl2br() to convert new lines

  1   2   >