Re: [PHP] not sure why form submission gives me error

2005-07-15 Thread Edward Vermillion
Bruce Gilbert wrote: Hello, I have a form on my site http://www.inspired-evolution.com/Contact.php produces this error on submission Parse error: parse error, unexpected T_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line 35 Well.. it says it's found a strin

[PHP] Getting server information

2005-07-15 Thread Matt Palermo
I am working on a script which will open a remote PHP file (located on one of my other website servers) and collect information that gets outputted from the remote file. I have it working now by using the fopen() function to open the file on the remote webserver. I am just wondering if it is

Re: [PHP] not sure why form submission gives me error

2005-07-15 Thread glumtail
I recommend PSPad 2005/7/16, Bruce Gilbert <[EMAIL PROTECTED]>: > > Hello, > > I have a form on my site > > http://www.inspired-evolution.com/Contact.php > > produces this error on submission > > Parse error: parse error, unexpected T_STRING in > /hsphere/local/home/bruceg/inspired-evolution

Re: [PHP] skewed up images

2005-07-15 Thread Richard Davey
Hello Ryan, Saturday, July 16, 2005, 3:53:16 AM, you wrote: RA> in the beginning if the height is more, then its resizing RA> perfectly...but if the width is more I want to cut out 90pix from RA> the middle of the pic...instead its giving me a skewed image as RA> you can see from RA> Any ideas?

[PHP] skewed up images

2005-07-15 Thread Ryan A
Hey, Below the code code I am using, but before you see it let me try to explain it a bit to you. Basically I first check to see if a certain image has a bigger width, bigger height or they are equal, according to that I call the correct function. I point the script to a image file (.jpg) then th

Re[2]: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Richard Davey
Hello Matt, Saturday, July 16, 2005, 3:31:26 AM, you wrote: MP> I don't have access to edit the php.ini settings. Is there anyway to MP> copy part of the file, then copy the rest where it left off? [ Note: Please reply to the mailing list - not to me personally ] The suggestion I gave you does

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Darby
Wouldn't something like rsync be better suited for this? I only ask because I've run something like this before... Matt Darby Richard Davey wrote: Hello Matt, Saturday, July 16, 2005, 3:04:29 AM, you wrote: MP> I am writing a script that will read a file from a remote server MP> and write it

Re: [PHP] Copy Remote File to Local Server

2005-07-15 Thread Richard Davey
Hello Matt, Saturday, July 16, 2005, 3:04:29 AM, you wrote: MP> I am writing a script that will read a file from a remote server MP> and write it to the local server. It works fine except when large MP> files are attempted. It times out and gives the error that the MP> maximum execution time has

[PHP] Copy Remote File to Local Server

2005-07-15 Thread Matt Palermo
I am writing a script that will read a file from a remote server and write it to the local server. It works fine except when large files are attempted. It times out and gives the error that the maximum execution time has been reached and the file will only be partially copied to the local ser

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
Hi Rasmus, You are right. It was the problem with the browser. I used Mozilla Firefox to try, and do not know what consideration it just serialized the identical url http requests. I then turned to use 2 IE 6.0 windows, 2 tabs within Maxthon browser, one IE windows and one Firefox, to test. Th

[PHP] not sure why form submission gives me error

2005-07-15 Thread Bruce Gilbert
Hello, I have a form on my site http://www.inspired-evolution.com/Contact.php produces this error on submission Parse error: parse error, unexpected T_STRING in /hsphere/local/home/bruceg/inspired-evolution.com/Thankyou.php on line 35 here is the PHP code, please let me know if you see where

Re: [PHP] Is GD available

2005-07-15 Thread Jasper Bryant-Greene
Todd Cary wrote: Damn! I should have checked the error_log first! PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'libgd.so.2' in Unknown on line 0 And this is the library from the rpm specified in ww.php.net: http://www.boutell.com/gd/. However, the site says that gd sho

[PHP] Re: Displaying HTML safely

2005-07-15 Thread Jasper Bryant-Greene
Lauri Harpf wrote: Now, if I make a point of not "chmod 755"ing the .html files in question, the server should be safe from someone feeding a html file with an embedded PHP script, right? Is there something else I should be looking out for - or is there an even better way of handling the transfer

Re: [PHP] How to run .sql files using php

2005-07-15 Thread glumtail
Ahmed: It's real perfect! B/R 2005/7/14, Ahmed Saad <[EMAIL PROTECTED]>: > > hi babu > > On 7/13/05, babu <[EMAIL PROTECTED]> wrote: > > i have a set of queries which i have placed them in one .sql file.i want > to run this file using php's mssql and oracle(oci) functions. > > you need a d

Re: [PHP] PHP 5 Object Inheritance

2005-07-15 Thread Chris
Brian V Bonini wrote: On Fri, 2005-07-15 at 17:53, Chris wrote: Yeah, I understand... Is multiple inheritance something that true OOP languages can do? Yes. Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Rasmus Lerdorf
Liang ZHONG wrote: > Could you please explain it a little bit more? > I did test this way. > > The code is the same for a.php and b.php > >sleep(20); >print Done. "; > > ?> > > I place request from 2 browser windows. > First time, I placed with http://baseURL/a.php with both 2

Re: [PHP] PHP 5 Object Inheritance

2005-07-15 Thread Brian V Bonini
On Fri, 2005-07-15 at 17:53, Chris wrote: > > > Yeah, I understand... Is multiple inheritance something that true OOP > languages can do? > Yes. -- s/:-[(/]/:-)/g BrianGnuPG -> KeyID: 0x04A4F0DC | Key Server: pgp.mit.edu

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
Could you please explain it a little bit more? I did test this way. The code is the same for a.php and b.php "; ?> I place request from 2 browser windows. First time, I placed with http://baseURL/a.php with both 2 browsers, starting times have 5 second interval. Then the first "Done" shows aft

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Rasmus Lerdorf
Liang ZHONG wrote: > As I know, apache-php works this way. When the web server gets an http > request with file name extension ".php", it will start the php > interpreter to process the php file. > > Now I have a php program does something like this: when it is executing > with one parameter p1, t

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
As I know, apache-php works this way. When the web server gets an http request with file name extension ".php", it will start the php interpreter to process the php file. Now I have a php program does something like this: when it is executing with one parameter p1, the program code goes to con

Re: [PHP] PHP 5 Object Inheritance

2005-07-15 Thread Chris
Jochem Maas wrote: Chris wrote: Hi, I've got a collection of Element classes (about 8 different ones). They are all subclasses of a single parent element. I'm trying to extend their functionality (both the individual classes, and the parent class they inherit). I can extend each Element

[PHP] Re: PHP 5 Object Inheritance

2005-07-15 Thread Matthew Weier O'Phinney
* Chris <[EMAIL PROTECTED]>: > I've got a collection of Element classes (about 8 different ones). They > are all subclasses of a single parent element. I'm trying to extend > their functionality (both the individual classes, and the parent class > they inherit). > > I can extend each Element sub

Re: [PHP] PHP 5 Object Inheritance

2005-07-15 Thread Jochem Maas
Chris wrote: Hi, I've got a collection of Element classes (about 8 different ones). They are all subclasses of a single parent element. I'm trying to extend their functionality (both the individual classes, and the parent class they inherit). I can extend each Element subclass with it's new

Re: [PHP] Question about apache-php concurrent process control

2005-07-15 Thread Rasmus Lerdorf
Liang wrote: > I am a programmer and new to php. I wonder what process control can php > interpreter do for multithreading . I notice that through http request, php > interpreter can execute 2 php programs simataneously, but will only > sequentially queued and execute if I try to execute one ph

RE: [PHP] searching multiple fields

2005-07-15 Thread yanghshiqi
Yes, hope you are using the MyISAM, full-text index is much better than 'LIKE'. If you use the way like 'name like '$name%' or org like '$name'', it will cost lots of your time... Best regards, Shiqi Yang -Original Message- From: Amir Mohammad Saied [mailto:[EMAIL PROTECTED] Sent:

Re: [PHP] HTML -> PDF PHP Package

2005-07-15 Thread Christian Calloway
I am converting "simple" html files.. reports that were created in Doc and then converted to html. I am assuming you are executing this tool from PHP and sending back the results once complete? How has it worked for you. Christian ""Chris Boget"" <[EMAIL PROTECTED]> wrote in message news:[EMAI

RE: [PHP] HTML -> PDF PHP Package

2005-07-15 Thread Matt Babineau
Ok I just went through great lengths investigating this. If you have complex HTML, forget it. All the HTML -> PDF conversions only work out with very simple HTML. If you are trying to convert a web page to PDF if most likely will look terrible - to check on this try it using Acrobat Distiller, assu

Re: [PHP] HTML -> PDF PHP Package

2005-07-15 Thread Chris Boget
> I am looking for a PHP based packaged (though it doesn't necesarily have to > be) that will convert HTML files to their PDF representations; on the fly of > course. Anyone know or have any experience w/this? Thanks in advance, We use htmldoc. http://www.easysw.com/htmldoc/ thnx, Chris -- PHP

[PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang ZHONG
I am a programmer and new to php. I wonder what process control can php interpreter do for multithreading . I notice that through http request, php interpreter can execute 2 php programs simataneously, but will only sequentially queued and execute if I try to execute one php code in the same ti

[PHP] HTML -> PDF PHP Package

2005-07-15 Thread Christian Calloway
Hi Everyone, I am looking for a PHP based packaged (though it doesn't necesarily have to be) that will convert HTML files to their PDF representations; on the fly of course. Anyone know or have any experience w/this? Thanks in advance, Christian -- PHP General Mailing List (http://www.php.net/)

[PHP] Displaying HTML safely

2005-07-15 Thread Lauri Harpf
Hello, let's assume a PHP program that allows users to enter a web page address. After the address is entered, the program would fetch the page in question and replace all the occurrences of the word "llama" with the word "alpaca". It would then provide the modified HTML code in a safe fashion

[PHP] Question about apache-php concurrent process control

2005-07-15 Thread Liang
I am a programmer and new to php. I wonder what process control can php interpreter do for multithreading . I notice that through http request, php interpreter can execute 2 php programs simataneously, but will only sequentially queued and execute if I try to execute one php code in the same t

Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread André Medeiros
What about... Database Host: Database User: And then... $parentConfigValue ) { if( is_array( $parentConfigValue ) { foreach( $parentConfigValue as $childConfigKey => $childConfigValue ) { $fileCode .= "$config['$parentConfigKey']['$chil

Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread Edward Vermillion
Bruno B B Magalhães wrote: Hi everybody, well I don´t want to include and use those variables or set then. I want to read the file, parse the vars to a form, so the user can change the system configs using the web instead of FTP... I am thinking reading using a simple include, and then cl

[PHP] PHP 5 Object Inheritance

2005-07-15 Thread Chris
Hi, I've got a collection of Element classes (about 8 different ones). They are all subclasses of a single parent element. I'm trying to extend their functionality (both the individual classes, and the parent class they inherit). I can extend each Element subclass with it's new specific func

Re: [PHP] Re: How to read PHP variables.

2005-07-15 Thread Bruno B B Magalhães
Hi everybody, well I don´t want to include and use those variables or set then. I want to read the file, parse the vars to a form, so the user can change the system configs using the web instead of FTP... I am thinking reading using a simple include, and then clean the file contents and

Re: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 16:03 +0100, Richard Davey wrote: > Hello André, > > Friday, July 15, 2005, 4:24:23 PM, you wrote: > > AM> I am trying to trim some text containing HTML tags. What I want to > AM> do is to trim the text without trimming the tags or html entities > AM> like   and such, wich c

RE: [PHP] Trimming Text

2005-07-15 Thread tg-php
Sounds like maybe he wants to keep his output to 25 chars not including HTML tags.. but wants to output tags if they're present. Turn this: This is regular text with some text inside a span Into this: This is regular text with some text inside a span Then trim to: This is regular text with The

RE: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 10:02 -0500, Jay Blanchard wrote: > [snip] > Let's say that I have an original string like: > > This is regular text with some text inside a > span > > Let's say I want to trim it to 25 chars. > > "Brainless trimming" would give me something like > > "This is regular text

Re: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 16:12 +0100, Raz wrote: > If you really want to do it, you're gonna have to get your hands > dirty, I'm afraid...;) > > ...off with the gloves...! I was affraid that would happen :( Thanks anyway :) Take care! -- PHP General Mailing List (http://www.php.net/) To unsubscr

Re: [PHP] Trimming Text

2005-07-15 Thread Raz
If you really want to do it, you're gonna have to get your hands dirty, I'm afraid...;) ...off with the gloves...! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trimming Text

2005-07-15 Thread Richard Davey
Hello André, Friday, July 15, 2005, 4:24:23 PM, you wrote: AM> I am trying to trim some text containing HTML tags. What I want to AM> do is to trim the text without trimming the tags or html entities AM> like   and such, wich completelly break the design. The problem as I see it, is that while i

RE: [PHP] Trimming Text

2005-07-15 Thread Jay Blanchard
[snip] Let's say that I have an original string like: This is regular text with some text inside a span Let's say I want to trim it to 25 chars. "Brainless trimming" would give me something like "This is regular text tag, thus messing the design also. It also happened to trim   to half, havin

Re: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 15:49 +0100, Raz wrote: > Are you trying to turn, for example > > Some text here. > > into > > Some text here. > > ? Let's say that I have an original string like: This is regular text with some text inside a span Let's say I want to trim it to 25 chars. "Brainless t

Re: [PHP] Trimming Text

2005-07-15 Thread Raz
Are you trying to turn, for example Some text here. into Some text here. ? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Trimming Text

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 15:40 +0100, Raz wrote: > Take a look at http://uk.php.net/manual/en/ref.pcre.php - plenty of > useful functions for this sort of thing... > > raz Implementing regular expressions on this kind of task would be a big PITA... and that's if it works (read my previous e-mail).

Re: [PHP] Is GD available

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 07:41 -0700, Todd Cary wrote: > Damn! I should have checked the error_log first! > > PHP Warning: Unknown(): Invalid library (maybe not a PHP library) > 'libgd.so.2' in Unknown on line 0 > > And this is the library from the rpm specified in ww.php.net: > http://www.boutel

Re: [PHP] Is GD available

2005-07-15 Thread Todd Cary
Damn! I should have checked the error_log first! PHP Warning: Unknown(): Invalid library (maybe not a PHP library) 'libgd.so.2' in Unknown on line 0 And this is the library from the rpm specified in ww.php.net: http://www.boutell.com/gd/. However, the site says that gd should be supported

Re: [PHP] Trimming Text

2005-07-15 Thread Raz
Take a look at http://uk.php.net/manual/en/ref.pcre.php - plenty of useful functions for this sort of thing... raz -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Trimming Text

2005-07-15 Thread Jay Blanchard
[snip] I am trying to trim some text containing HTML tags. What I want to do is to trim the text without trimming the tags or html entities like   and such, wich completelly break the design. Has anyone succeded on doing such a thing? phpclasses.org won't help :( [/snip] What do you mean, "trim s

Re: [PHP] Is GD available

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 07:25 -0700, Todd Cary wrote: > In php 4.3.11, ini files are placed in /etc/php.d that have > "extension=". I have one (i.e. gd.ini) with > "extension=libgd.so.2" and libgd.so.2 is in /usr/lib/php4. > > Todd > > André Medeiros wrote: > > On Fri, 2005-07-15 at 07:06 -0

Re: [PHP] Is GD available

2005-07-15 Thread Todd Cary
In php 4.3.11, ini files are placed in /etc/php.d that have "extension=". I have one (i.e. gd.ini) with "extension=libgd.so.2" and libgd.so.2 is in /usr/lib/php4. Todd André Medeiros wrote: On Fri, 2005-07-15 at 07:06 -0700, Todd Cary wrote: I have php 4.3.11 available, and when I

[PHP] Trimming Text

2005-07-15 Thread André Medeiros
Greetings. I am trying to trim some text containing HTML tags. What I want to do is to trim the text without trimming the tags or html entities like   and such, wich completelly break the design. Has anyone succeded on doing such a thing? phpclasses.org won't help :( Thanks in advance. André --

RE: [PHP] Is GD available

2005-07-15 Thread Jay Blanchard
[snip] I have php 4.3.11 available, and when I do a phpinfo() http://209.204.172.137:81/testphp.php I see it in the configuration, but it is not listed elsewhere. How can I test to see if it is available? gd_info() is not in 4.3.11 and extension_loaded('gd') gives a false. [/snip] You may

Re: [PHP] Is GD available

2005-07-15 Thread André Medeiros
On Fri, 2005-07-15 at 07:06 -0700, Todd Cary wrote: > I have php 4.3.11 available, and when I do a phpinfo() > > http://209.204.172.137:81/testphp.php > > I see it in the configuration, but it is not listed elsewhere. How can > I test to see if it is available? > > gd_info() is not in 4.3.

[PHP] Is GD available

2005-07-15 Thread Todd Cary
I have php 4.3.11 available, and when I do a phpinfo() http://209.204.172.137:81/testphp.php I see it in the configuration, but it is not listed elsewhere. How can I test to see if it is available? gd_info() is not in 4.3.11 and extension_loaded('gd') gives a false. Todd -- PHP General

RE: [PHP] 404 Not Found -> refresh to directory

2005-07-15 Thread Terry Romine
An interesting idea. I'll work on this next week and see how it goes. Can I ask: why two versions of $uriparams? Terry -Original Message- From: Andras Kende <[EMAIL PROTECTED]> Sent: Jul 14, 2005 9:53 PM To: 'Terry Romine' <[EMAIL PROTECTED]>, 'php' Subject: RE: [PHP] 404 Not F

Re: [PHP] SESSION

2005-07-15 Thread Thomas Bonham
Thanks for all of the help. It is working now(On one page). Thomas On 7/11/05, Richard Lynch <[EMAIL PROTECTED]> wrote: > On Sun, July 10, 2005 7:50 pm, Thomas Bonham said: > > I have been trying to update & fix the errors. > > With the new code (That I will post at the end), I'm only getting one

[PHP] SOlaris 10 Build Problems

2005-07-15 Thread Chuck Carson
Trying to build php 5.0.4 on solaris using gcc, and get this error: checking for Apache 2.0 filter-module support via DSO through APXS... no checking for Apache 2.0 handler-module support via DSO through APXS... Sorry, I cannot run apxs. Possible reasons follow: 1. Perl is not installed 2. apxs

RE: [PHP] Usability review - OT

2005-07-15 Thread Jay Blanchard
[snip] Does anyone know of anywhere I can get my website picked apart from a usability point of view? I'm thinking of general first impressions rather than an in-depth review of functionality. [/snip] [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

[PHP] Usability review - OT

2005-07-15 Thread Mark Rees
Hello Sorry for the OT request. Does anyone know of anywhere I can get my website picked apart from a usability point of view? I'm thinking of general first impressions rather than an in-depth review of functionality. Thanks Mark -- www.itsagoodprice.com - top-brand electronics for less. --

Re: [PHP] PDO Error

2005-07-15 Thread Holografix
Yes, you're right. It's false This dont't work too. foreach ($dbh->query('SELECT * FROM words') as $row) { echo $row['word'] . ""; } But this works $stmt = $dbh->prepare('select * from words'); $stmt->execute(); $rows = $stmt->fetchAll(); echo count($rows) . ""; "Marek Kilimajer" <[EMAI

[PHP] Re: PHP5, Tidy: node and parent node

2005-07-15 Thread Markus Fischer
Markus Fischer wrote: I'm trying to figure out the parent of a node in tidy. As it seems to me there's no property/method available for this. I really want to avoid traversing the whole document and build the relation myself; this is getting pretty slow. PHP5 currently doesn't feature this m

Re: [PHP] PDO Error

2005-07-15 Thread Marek Kilimajer
Holografix wrote: print_r($stmt) prints nothing. print($stmt) print nothing too. I checked errorCode() and it prints . Then it seems $stmt is false. var_dump() is more verbose about it. "Marek Kilimajer" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] Holografix wro

Re: [PHP] PDO Error

2005-07-15 Thread Holografix
print_r($stmt) prints nothing. print($stmt) print nothing too. I checked errorCode() and it prints . "Marek Kilimajer" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Holografix wrote: >> Hi Marek >> >> It's print_r($row), not print_r($stmt) ;) > > That's what I'm asking -

Re: [PHP] PDO Error

2005-07-15 Thread Marek Kilimajer
Holografix wrote: Hi Marek It's print_r($row), not print_r($stmt) ;) That's what I'm asking - If you put print_r($stmt) in that line, what does it print? "Marek Kilimajer" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] Holografix wrote: Hi. When using this example

Re: [PHP] PDO Error

2005-07-15 Thread Holografix
Hi Georgi >From php manual: PDO::query Executes an SQL statement, returning a result set as a PDOStatement object () object PDO::query ( string statement ) So, $stmt shoul be an object. Thanks four your answers. I will post a more detailed message in php-db where this problem belongs. My fau

Re: [PHP] PDO Error

2005-07-15 Thread Holografix
Hi Marek It's print_r($row), not print_r($stmt) ;) "Marek Kilimajer" <[EMAIL PROTECTED]> escreveu na mensagem news:[EMAIL PROTECTED] > Holografix wrote: >> Hi. When using this example from >> http://netevil.org/talks/index.php?t=pdo&s=20, the site of pdo's author I >> have this error: >> >>

Re: [PHP] PDO Error

2005-07-15 Thread Georgi Ivanov
> Hi. When using this example from > http://netevil.org/talks/index.php?t=pdo&s=20, the site of pdo's author I > have this error: > > Fatal error: Call to a member function fetchAll() on a non-object in > /www/home/testes/pdo_my1.php on line 17 > > Object creation : > $dbh = new PDO('mysql:host=loc

Re: [PHP] SimpleXML doesn't work with one single XML tag line...

2005-07-15 Thread Christian Stocker
On 7/15/05, Daevid Vincent <[EMAIL PROTECTED]> wrote: > Maybe I'm missing something about XML specifications, but this doesn't seem > right to me. > > http://www.php.net/manual/en/ref.simplexml.php > > Here is a code fragment I use: > > $xml = simplexml_load_string($returnData); > var_dump($xml)

[PHP] PHP5, Tidy: node and parent node

2005-07-15 Thread Markus Fischer
Hi, I'm trying to figure out the parent of a node in tidy. As it seems to me there's no property/method available for this. I really want to avoid traversing the whole document and build the relation myself; this is getting pretty slow. Any ideas on this? thanks, - Markus -- PHP General M