Re: [PHP] _POST not working (using mini_httpd) - 2 attachments

2005-02-28 Thread Burhan Khalid
overbored wrote: Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In particular, the POST data is not being received. Here's what I did... What version of P

[PHP] Problem with mail() and attachment

2005-02-28 Thread Stefan Sturm
Hi, I'm using the script below to send ascii files attached to mails via mail(). I'm running the script on different servers and it works fine. Now I got a problem on windows server 2003. The attachment of the mail is disturbed, the first 76 characters are missing, the rest of the attachment is co

[PHP] problem with mail() and attachment

2005-02-28 Thread Stefan Sturm
Hi, I'm using the script below to send ascii files attached to mails via mail(). I'm running the script on different servers and it works fine. Now I got a problem on windows server 2003. The attachment of the mail is disturbed, the first 76 characters are missing, the rest of the attachment is co

[PHP] Logging with PHP to SMTP server

2005-02-28 Thread kioto
Hi all, there is a way to create log-system to authenticate to smtp server ? Thanks so much to all. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: Like ternary but without the else.

2005-02-28 Thread anirudh dutt
dunno if u've read the options ppl have given u or u've ignored their answers: imho, these are the answers to ur question: On Sat, 26 Feb 2005 00:46:36 +0100, rich <[EMAIL PROTECTED]> wrote: > > is this what you're after? > > $this = ($something ? $that : $this) > > rich > On Fri, 25 Feb 200

RE: [PHP] Re: Like ternary but without the else.

2005-02-28 Thread David Robley
Chris W. Parker wrote: > Richard Lynch > on Monday, February 28, 2005 5:12 PM said: > >> Course, I gotta say that maybe you're coming at this wrong in the >> first place, if you have to change $this based on $something to $that >> but $this already has a value... >>

Re: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-02-28 Thread Comm23A
On 28 Feb 2005 dan wrote: > Go ahead and look at my first email. For some reason you didn't get the > idea that I was looking for solutions. Ideas. I wasn't looking for > anything solid. It really wasn't so clear what you were looking for. It is to you, but not necessarily to the reader.

[PHP] _POST not working (using mini_httpd) - 2 attachments

2005-02-28 Thread overbored
Hi all, I'm learning PHP and I'd need to create a simple Web-based ifconfig tool for a Soekris box (running Pebble). However, I've been unsuccessful at getting PHP working with mini_httpd. In particular, the POST data is not being received. Here's what I did... First, I applied (only) the SCRIP

[PHP] Current dilema for Novice

2005-02-28 Thread James Marcinek
Hello Everyone, I'm somewhat new to PHP. I've read quite a bit of material and have a background with perl and Apache and Linux. Let me explain my situation. - Fedora Core 3 with Apache 2 and PHP - Using SSL. - Each Directory under $_SERVER['DOCUMENT_ROOT'] is an NFS mounted directory (read onl

Re: [PHP] Charset and filenames

2005-02-28 Thread Gustavo Lopes
"Jochem Maas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gustavo Lopes wrote: >> I appreciate your reply but I'm not satisfied. >> >> "Richard Lynch" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >> >>>Gustavo Lopes wrote: >>> I'm building a script that make

Re: [PHP] Charset and filenames

2005-02-28 Thread Jochem Maas
Gustavo Lopes wrote: I appreciate your reply but I'm not satisfied. "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] Gustavo Lopes wrote: I'm building a script that makes a list of files available in a directory (PHP 4.3.10, Apache 2.0.53, windows, NTFS file system). The

RE: [PHP] Re: Like ternary but without the else.

2005-02-28 Thread Richard Lynch
Chris W. Parker wrote: > Jason Barnett > on Friday, February 25, 2005 2:10 PM said: > >> $this = $something ? $that : null; > > That won't work because I'm setting a default value for $this and want > it to change only if it has to. The long winded way to write this w

Re: [PHP] Charset and filenames

2005-02-28 Thread Gustavo Lopes
I appreciate your reply but I'm not satisfied. "Richard Lynch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Gustavo Lopes wrote: >> I'm building a script that makes a list of files available in a directory >> (PHP 4.3.10, Apache 2.0.53, windows, NTFS file system). The XHTML is >>

Re: [PHP] Not able to add data to a MySQL database

2005-02-28 Thread John Holmes
Richard Lynch wrote: Vaibhav Sibal wrote: Hi, I am not able to insert data into my mysql database using php even if i use a simple code as follows : ADD SOME ERROR CHECKING!!! http://php.net/die and http://us2.php.net/mysql_error ;) -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/

Re: [PHP] Not able to add data to a MySQL database

2005-02-28 Thread Richard Lynch
Vaibhav Sibal wrote: > Hi, > I am not able to insert data into my mysql database using php even if > i use a simple code as follows : > $link=mysql_connect("localhost","username","password"); > mysql_select_db("test_db"); > $query="INSERT INTO 'login' ('uname','access') VALUES ('try','super')"; >

RE: [PHP] Re: Like ternary but without the else.

2005-02-28 Thread Chris W. Parker
Richard Lynch on Monday, February 28, 2005 5:12 PM said: > Course, I gotta say that maybe you're coming at this wrong in the > first place, if you have to change $this based on $something to $that > but $this already has a value... > > Maybe you should have figured

Re: [PHP] header('www-Authenticate ...') Problem

2005-02-28 Thread Jochem Maas
Richard Lynch wrote: [EMAIL PROTECTED] wrote: I can't remember where the example below came from, but the event handler for the 're-authenticate' button doesn't allow a re-authentication /** * reset event handler does not work

Re: [PHP] header('www-Authenticate ...') Problem

2005-02-28 Thread Richard Lynch
[EMAIL PROTECTED] wrote: > I can't remember where the example below came from, but the event handler > for the 're-authenticate' button doesn't allow a re-authentication > /** > * reset event handler does not work as expected

Re: [PHP] getting mac id

2005-02-28 Thread Richard Lynch
Tyler Replogle wrote: > I'm working at this site that has an MMORPG, a big online game, and we > have > this ban script. it bans the ip for the user and the user acount for an > amount of time. This doesn't seem to be doing its job because people just > change there ip and make a new user. There's

Re: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-02-28 Thread dan
Richard Lynch wrote: Dan Trainor wrote: I'm not quite sure why you chose the PHP community as a recipient -- There are quite a few Apache modules out there. And Modules such as mod_auth_mysql and mod_auth_ldap (?) and, really, any old mod_auth_XYZ module would be a closer "match" for what you want,

RE: [PHP] PHP slowness

2005-02-28 Thread Richard Lynch
Gerard wrote: >> I'm no expert on this stuff, but I'd be checking my swap space usage and >> RAM usage with 'top' or any other tools available... I suppose you >> probably already did that, but... > > Top shows that there's still normal non-swap memory available, so I don't > think that's it. Wha

Re: [PHP] convert MS DOC -> PDF

2005-02-28 Thread Richard Lynch
mbneto wrote: > Hi, > > I have a bunch of M$ WORD documents (rtf and doc) that I'd like to > transform to pdf. > > It would simple except that I'd like to allow the user to fill a > couple of variables (name, email, telephone) and replace this before > if generates the pdf. > > After searching

[PHP] Inline Frame and php

2005-02-28 Thread Todd Cary
My client insists on using inline Frames that uses my php pages. As an example, this is on one page: This works well with the "control" being given to search.php. What I do not understand is that within search.php, I have a statement that is suppose to pass "control" to anther page. The l

Re: [PHP] How to handle actions that may take a long time?

2005-02-28 Thread Richard Lynch
Cajus Pollmeier wrote: > I'd like to know your opinion about how to handle events that may take > more than a minute to finish in PHP. In this case, the code is > performing a recursive action on a large LDAP tree where I'd like to > present something like a status page ("Please wait, blah blah" w

[PHP] Re: Problem submitting a POST request "by hand"

2005-02-28 Thread Manuel Lemos
on 02/28/2005 08:19 AM Vallo Reima said the following: Hello! I send the parameters from one php script to another via POST method. The solution works (see example below) but the receiver page loads ONLY if I include the echo $c; command after send_host (see PROBLEM!!! line). Otherwise a blank

Re: [PHP] break/exit

2005-02-28 Thread Richard Lynch
timothy johnson wrote: > I have a single php script that I am using to upload my gaim logs to a > mysql server, but I want to put in some type of means to where if that > log was already added then it will exit. what ways would you > recommend? How do you know if one gaim log matches another one i

Re: [PHP] php DBMS

2005-02-28 Thread Manuel Lemos
Hello, on 02/28/2005 07:21 PM [EMAIL PROTECTED] said the following: I'm wondering if there is any DBMS, like MySQL, which is (fully) implemented in php. This so you don't have to buy a MySQL database. MySQL is free... MySQL is free for use with applications that are themselves open source. If you'

Re: [PHP] Charset and filenames

2005-02-28 Thread Richard Lynch
Gustavo Lopes wrote: > I'm building a script that makes a list of files available in a directory > (PHP 4.3.10, Apache 2.0.53, windows, NTFS file system). The XHTML is > served > as ISO-8859-1. However, I'm having trouble in generating correct links for > files with accents, etc. > The problem is r

Re: [PHP] Mailing List Tool

2005-02-28 Thread Richard Lynch
GH wrote: > Does someone know of a mailing list tool that runs via PHP that can > check periodically (ie via a scheduled task) an email account for a > message and then send it out to an entire list of addresses? http://php.net/imap http://php.net/mail I think all the code you need is in the User

Re: [PHP] get_defined_vars in all scopes?

2005-02-28 Thread Richard Lynch
Anguz wrote: > John Holmes wrote: > >>>I'm using this at the end of a script >>> >>>echo ''; var_dump(get_defined_vars()); echo ''; >>> >>>but it only returns what get_defined_vars gives, which is what's >>>available in the current scope. Is there any way to get also the vars >>>used in functions t

Re: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-02-28 Thread Richard Lynch
Dan Trainor wrote: I'm not quite sure why you chose the PHP community as a recipient -- There are quite a few Apache modules out there. And Modules such as mod_auth_mysql and mod_auth_ldap (?) and, really, any old mod_auth_XYZ module would be a closer "match" for what you want, I think. I know a

Re: [PHP] Apache and PHP

2005-02-28 Thread Jochem Maas
Gustav Wiberg wrote: Hi there! Thanx! :-) I hope I can solve this myself now... :-) If you get stuck another good line of approach might be to install a preconfigured bundle (php/apache/mysql) and then possibly compare you configs with theres e.g: http://www.devside.net/ http://www.apachefriends.or

Re: [PHP] Pop-up message

2005-02-28 Thread Richard Lynch
Lester Caine wrote: > At the risk of being shouted at because *I* know it's not a PHP problem! Actually, it's a client problem :-) > I have a page that is being refreshed every 30 seconds or so, and > displays a list of 'tickets' waiting to be dealt with on a list from a > database query. No prob

Re: [PHP] HTTP Include Error

2005-02-28 Thread Marek Kilimajer
Suhas wrote: Hi This issue has been discusses many times before, but no perticular solution found. include '/www/.../file.php' => works fine include 'http://google.com/' => works fine include 'http://myserver.com/file.php' => Warning: main(http://myserver.com/file.php): failed to o

Re: [PHP] problems with several JPEGs in GD2

2005-02-28 Thread Richard Lynch
Mario Lopez wrote: > I've noticed that there is a group of JPEG files > that cannot be operated with GD2 functions. > > For example, if you try to imagecreatefromjpeg("my.jpg") it > replies: > > Warning: imagecreatefromjpeg(): 'my.jpg' is not a valid JPEG file > in C:\Program Files\Apache Group\Apa

Re: [PHP] Syntax Highlighting variables not appearing

2005-02-28 Thread Richard Lynch
Tom Whitbread wrote: > Can anyone explain why this is happening. > > I am using the following code For giving code examples on my website > with syntax highlighting > > $text = ' 'bar';"; example_function(\$my_code); ?>'; This is not a valid

Re: [PHP] Apache and PHP

2005-02-28 Thread Gustav Wiberg
Hi there! Thanx! :-) I hope I can solve this myself now... :-) /G @varupiraten.se - Original Message - From: "dan" <[EMAIL PROTECTED]> To: Sent: Monday, February 28, 2005 11:23 PM Subject: Re: [PHP] Apache and PHP Gustav Wiberg wrote: Hi there! I've just installed Apache on a new comput

Re: [PHP] php DBMS

2005-02-28 Thread Bret Hughes
On Mon, 2005-02-28 at 13:35, Jochem Maas wrote: > Bret Hughes wrote: > > Does MySQL cost money? I thought it was open source and available at no > > cost. > > true its free, but you can also run a comcercial version which gives you > indemnity and support and stuff Google for instance are k

Re: [PHP] textarea posting duplicate text

2005-02-28 Thread Richard Lynch
Elizabeth Lawrence wrote: > Hello. I have been asked to look at a PHP issue for someone, and I can't > figure out what the problem is. I'm hoping one of you experts can help! > > They are using Red Hat Linux / Ensim Pro 4.0.2, PHP 4.3.10, and Apache > 2.0. > > The problem: When a lot of text is ent

Re: [PHP] Problem configuring mhash

2005-02-28 Thread Srinadh Sannidhanam
Thank you very much for the information. As you expected PHP installed as an RPM in my server. If I found the "PHP mhash module" with the *SAME* version numbers of PHP, is that going to work with existing PHP(installed as RPM) ? Also, what kind of "PHP mhash module" should I look for? RPM or an

[PHP] HTTP Include Error

2005-02-28 Thread Suhas
Hi This issue has been discusses many times before, but no perticular solution found. include '/www/.../file.php' => works fine include 'http://google.com/' => works fine include 'http://myserver.com/file.php' => Warning: main(http://myserver.com/file.php): failed to open stream

Re: [PHP] function to resize images

2005-02-28 Thread Richard Lynch
Bosky, Dave wrote: > Does anyone have a nice function that will resize an uploaded image to > specific width/height dimensions? Not a function, per se, but I use this script: $height){ $scale = $target/$width; } else{ $scale = $target/$height; } if ($scale < 1){ $w = round($s

[PHP] header('www-Authenticate ...') Problem

2005-02-28 Thread dpgirago
I can't remember where the example below came from, but the event handler for the 're-authenticate' button doesn't allow a re-authentication following a successful login. If you run the code, it allows you to login the first time, or even catch the incorrect password and display via the line wi

Re: [PHP] php DBMS

2005-02-28 Thread rogerk
Quoting Richard Lynch <[EMAIL PROTECTED]>: > Gerben wrote: > > I'm wondering if there is any DBMS, like MySQL, which is (fully) > > implemented > > in php. This so you don't have to buy a MySQL database. > > MySQL is free... MySQL is free for use with applications that are themselves open source.

Re: [PHP] Apache and PHP

2005-02-28 Thread Mike Smith
For Apache2.x: http://www.php.net/manual/en/install.windows.apache2.php For Apache1.x: http://www.php.net/manual/en/install.windows.apache1.php Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php DBMS

2005-02-28 Thread Richard Lynch
Gerben wrote: > I'm wondering if there is any DBMS, like MySQL, which is (fully) > implemented > in php. This so you don't have to buy a MySQL database. MySQL is free... So is PostgreSQL: http://postgresql.org But both packages are external software packages with API modules to use with PHP. >

Re: [PHP] Apache and PHP

2005-02-28 Thread dan
Gustav Wiberg wrote: Hi there! I've just installed Apache on a new computer. (just for testing) It's Windows XP. I've then installed PHP and it says that Apache could be not configured automatically. Newbies question as hell probably but here it goes: I can access my Apache-server, I have the doc

Re: [PHP] Problem configuring mhash

2005-02-28 Thread Richard Lynch
Srinadh Sannidhanam wrote: > I am trying to configure mhash. I installed mhash. But I found that I > have to compile php with > --with-mhash option. But I am unable to found configure command > corresponding to PHP. Where can I found that. Are there any other ways to > configure the same. Can't I

[PHP] Apache and PHP

2005-02-28 Thread Gustav Wiberg
Hi there! I've just installed Apache on a new computer. (just for testing) It's Windows XP. I've then installed PHP and it says that Apache could be not configured automatically. Newbies question as hell probably but here it goes: I can access my Apache-server, I have the document-root to c:\webb

[PHP] Authentication fails

2005-02-28 Thread John Swartzentruber
Somehow my PHP 5.0.3 or something is configured incorrectly. When I try to get past an authentication input, nothing happens. For example, I have phpMyAdmin configured now to use mysqli, but when I enter the username and password, the screen doesn't change. In previous testing, I saw that an in

Re: [PHP] Re: [MondayMorningRant] Re: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-02-28 Thread Robert Cummings
On Mon, 2005-02-28 at 14:37, dan wrote: > Well I'll be God Damned. You're pretty clever. You're surly going to > Heaven, now! Oh no, he'll surely terrorize all of heaven with his surliness ;) Cheers, Rob. -- .. | InterJinn Applicatio

Re: [PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread John Holmes
Vallo wrote: > Client sends request (submits form to my script) to me (i.e. server) and I want to send back to client a page with POST parameters from my script. But the page doesn't display in the clients browser (blank page opens). Question: what is missing in this script? echo and/or print?

Re: [PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread Chris Shiflett
--- Vallo <[EMAIL PROTECTED]> wrote: > I send something using fsockopen() & fputs() :-) Yes, you send something to another server, not the client. You send stuff to the client by using things like echo. > Client sends request (submits form to my script) to me (i.e. server) > and I want to send ba

Re: [PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread Vallo
I send something using fsockopen() & fputs() :-) Client sends request (submits form to my script) to me (i.e. server) and I want to send back to client a page with POST parameters from my script. But the page doesn't display in the clients browser (blank page opens). Question: what is missing in

[PHP] Re: [MondayMorningRant] Re: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-02-28 Thread dan
Jochem Maas wrote: if you any of the following might apply to you, please hit delete now: 1. easily offended. 2. think this email _needs_ a reply. 3. no sense of humour. 4. can't accept that humour varies from person to person. thanks, that will save alot of heart-ache and bandwidth... LETS RANT BA

Re: [PHP] php DBMS

2005-02-28 Thread Jochem Maas
Bret Hughes wrote: On Mon, 2005-02-28 at 11:31, Gerben wrote: Hi, I'm wondering if there is any DBMS, like MySQL, which is (fully) implemented what do you mean by 'fully' - there are lots of DB drivers implemented (as extensions) for php. in php. This so you don't have to buy a MySQL database. sql

Re: [PHP] function to resize images

2005-02-28 Thread Andre Dubuc
On Monday 28 February 2005 10:34 am, Bosky, Dave wrote: > Does anyone have a nice function that will resize an uploaded image to > specific width/height dimensions? > > I wanted to find something that would work for only GIF and JPG image > types. I've converted my shopping cart > > application fro

Re: [PHP] php DBMS

2005-02-28 Thread Bret Hughes
On Mon, 2005-02-28 at 11:31, Gerben wrote: > Hi, > > I'm wondering if there is any DBMS, like MySQL, which is (fully) implemented > in php. This so you don't have to buy a MySQL database. > > I'm currently trying to put something together, but this would be a waste of > time if it already exists.

Re: [PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread Chris Shiflett
--- Vallo Reima <[EMAIL PROTECTED]> wrote: > I send the parameters from one php script to another via POST method. > The solution works (see example below) but the receiver page loads > ONLY if I include the echo $c; command after send_host (see PROBLEM!!! > line). Without looking at your code, I

Re: [PHP] Mailing List Tool

2005-02-28 Thread The Disguised Jedi
this list runs on emlzm i do believe...and that is a tool you could use... On Sun, 27 Feb 2005 19:11:21 -0500, GH <[EMAIL PROTECTED]> wrote: > Does someone know of a mailing list tool that runs via PHP that can > check periodically (ie via a scheduled task) an email account for a > message and th

Re: [PHP] sentence case

2005-02-28 Thread John Nichel
Stephen Johnson wrote: OK -- dumb question -- what is an OP? Original Poster -- John C. Nichel ÜberGeek KegWorks.com 716.856.9675 [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] php DBMS

2005-02-28 Thread John Holmes
Gerben wrote: I'm wondering if there is any DBMS, like MySQL, which is (fully) implemented in php. This so you don't have to buy a MySQL database. I'm currently trying to put something together, but this would be a waste of time if it already exists. SQLite is probably what you're after. It comes w

Re: [PHP] sentence case

2005-02-28 Thread Stephen Johnson
OK -- dumb question -- what is an OP? http://www.thelonecoder.com [EMAIL PROTECTED] 562.924.4454 (office) 562.924.4075 (fax) continuing the struggle against bad code */ ?> > From: John Nichel <[EMAIL PROTECTED]> > Date: Wed, 23 Feb 2005 14:13:20 -0500 > To: php Mailing Lists > Subject: Re:

[PHP] Problem configuring mhash

2005-02-28 Thread Srinadh Sannidhanam
Hi I am trying to configure mhash. I installed mhash. But I found that I have to compile php with --with-mhash option. But I am unable to found configure command corresponding to PHP. Where can I found that. Are there any other ways to configure the same. Can't I configure that in php.ini fil

[PHP] php DBMS

2005-02-28 Thread Gerben
Hi, I'm wondering if there is any DBMS, like MySQL, which is (fully) implemented in php. This so you don't have to buy a MySQL database. I'm currently trying to put something together, but this would be a waste of time if it already exists. greetings Gerben Holland -- PHP General Mailing List

Re: [PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread Chris
Vallo Reima wrote: Hello! I send the parameters from one php script to another via POST method. The solution works (see example below) but the receiver page loads ONLY if I include the echo $c; command after send_host (see PROBLEM!!! line). Otherwise a blank page loads without any error message

Re: [PHP] uploading files with a single quote in the filename

2005-02-28 Thread AdamT
On 24 Feb 2005 08:22:39 -0600, Bret Hughes <[EMAIL PROTECTED]> wrote: > On Thu, 2005-02-24 at 01:04, Dotan Cohen wrote: > > > that. A little javascript goes a long way in these sort of situations > > > > You don't want to do that will javascript. I, for one, surf with > > javascript turned off. T

Re: [PHP] Improving a MySQL Search

2005-02-28 Thread Gareth Williams
Create some indexes. I spend most of my day messing around with a table of 200 records, and indexes increased the speed from 40 seconds to 55 minutes for a query, down to the longest being less than 5 seconds. On 28 Feb 2005, at 16:42, James Nunnerley wrote: I'm creating a serious of pages

Re: [PHP] function to resize images

2005-02-28 Thread Robby Russell
On Mon, 2005-02-28 at 10:34 -0500, Bosky, Dave wrote: >Does anyone have a nice function that will resize an uploaded image to >specific width/height dimensions? > >I wanted to find something that would work for only GIF and JPG image types. >I've converted my shopping cart > >application from Cold

Re: [PHP] function to resize images

2005-02-28 Thread Frank Arensmeier
Dave! I would start by reading the PHP manual. Look for a function called 'imagecopyresized()'. This might help. /frank 2005-02-28 kl. 16.34 skrev Bosky, Dave: Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? I wanted to find something that

[PHP] Improving a MySQL Search

2005-02-28 Thread James Nunnerley
I'm creating a serious of pages that show various aspects from a Syslog output. The main information is currently stored in one MySQL table - which after having been run for about 2 and a bit months has got nearly 100 records. With this amount of information, it's taking a large time to carryo

[PHP] function to resize images

2005-02-28 Thread Bosky, Dave
Does anyone have a nice function that will resize an uploaded image to specific width/height dimensions? I wanted to find something that would work for only GIF and JPG image types. I've converted my shopping cart application from Cold Fusion to PHP and need to create thumbnails and reduce the si

Re: [PHP] how to move files from one place to another ?

2005-02-28 Thread Rory Browne
I think you should read his post before telling him to RTFM. AFAICT He wants to move the files, not copy them. I think the command he is looking for is infact http://www.php.net/rename , which isn't immediately obvious, when you are infact moving and not just renaming. It's only something you'd con

[PHP] textarea posting duplicate text

2005-02-28 Thread Elizabeth Lawrence
Hello. I have been asked to look at a PHP issue for someone, and I can't figure out what the problem is. I'm hoping one of you experts can help! They are using Red Hat Linux / Ensim Pro 4.0.2, PHP 4.3.10, and Apache 2.0. The problem: When a lot of text is entered into a textarea on a form,

Re: [PHP] How to retrieve form data?

2005-02-28 Thread Gregg Nelson
You are correct, and I must apologize. In addition to the modifications below I added a pair of brackets to the select clause: After removing those the $_POST array looks much better and I was able print the selected item using echo "Selected item is: ".$_POST['item']; Results now: -

Re: [PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread Vallo
The problem is that the URL which I posted to doesn't display in a browser again. I want to do the following: 1) www.someserver.com/feedback.phtml sends the user-entered form data to www.someserver.com/mailer.php 2) www.someserver.com/mailer.php (the example below) checks these data and submits

[PHP] Syntax Highlighting variables not appearing

2005-02-28 Thread Tom Whitbread
Can anyone explain why this is happening. I am using the following code For giving code examples on my website with syntax highlighting $text = ''; $body = preg_replace('/<(.*?)>/es', 'highlight_string(

Re: [PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread Jochem Maas
Vallo Reima wrote: Hello! I send the parameters from one php script to another via POST method. The solution works (see example below) but the receiver page loads ONLY if I include the echo $c; command after send_host (see PROBLEM!!! line). AFAICS $c contains the response output of the URL whic

[PHP] [MondayMorningRant] Re: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-02-28 Thread Jochem Maas
if you any of the following might apply to you, please hit delete now: 1. easily offended. 2. think this email _needs_ a reply. 3. no sense of humour. 4. can't accept that humour varies from person to person. thanks, that will save alot of heart-ache and bandwidth... LETS RANT BABY :-) Dan Trainor

Re: [PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora

2005-02-28 Thread John Swartzentruber
On 2/28/2005 8:27 AM Robby Russell wrote: On Mon, 2005-02-28 at 07:30 -0500, John Swartzentruber wrote: On 2/28/2005 2:47 AM M. Sokolewicz wrote: well, for some reason it didn't compile in the mysql extension at all... even though it was configured to. That's strange, and I have no idea why it wo

Re: [PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-28 Thread Robby Russell
On Mon, 2005-02-28 at 07:30 -0500, John Swartzentruber wrote: >On 2/28/2005 2:47 AM M. Sokolewicz wrote: >> well, for some reason it didn't compile in the mysql extension at all... >> even though it was configured to. That's strange, and I have no idea why >> it would do that. However, since you'

[PHP] Re: Getting PHP to work with MySQL 4.1.10 under Fedora Core 3

2005-02-28 Thread John Swartzentruber
On 2/28/2005 2:47 AM M. Sokolewicz wrote: well, for some reason it didn't compile in the mysql extension at all... even though it was configured to. That's strange, and I have no idea why it would do that. However, since you're using mysql 4.1.x, you should be using the mysqli interface anyway.

[PHP] Problem submitting a POST request "by hand"

2005-02-28 Thread Vallo Reima
Hello! I send the parameters from one php script to another via POST method. The solution works (see example below) but the receiver page loads ONLY if I include the echo $c; command after send_host (see PROBLEM!!! line). Otherwise a blank page loads without any error messages. The problem is

[PHP] problems with several JPEGs in GD2

2005-02-28 Thread Mario Lopez
Hi, PHP 4.3.10, GD2 I've noticed that there is a group of JPEG files that cannot be operated with GD2 functions. For example, if you try to imagecreatefromjpeg("my.jpg") it replies: Warning: imagecreatefromjpeg(): 'my.jpg' is not a valid JPEG file in C:\Program Files\Apache Group\Apache2\htdocs

Re: [PHP] seach engines that don't suck

2005-02-28 Thread Zouari Fourat
> I wrote all search code > to split words on commas and then builds SQL using LIKE statements (i know, > i know it's bad but i was a newbie when i wrote it). What is the professional way so ? On Sun, 27 Feb 2005 17:04:31 +0300, Burhan Khalid <[EMAIL PROTECTED]> wrote: > Colin Olkowski wrote: >

[PHP] Pop-up message

2005-02-28 Thread Lester Caine
At the risk of being shouted at because *I* know it's not a PHP problem! I have a page that is being refreshed every 30 seconds or so, and displays a list of 'tickets' waiting to be dealt with on a list from a database query. No problems there, but a couple of sites now want me to add a pop-up w

RE: [PHP] Open source portal systems???

2005-02-28 Thread Christo van Rooyen
You can find it here: http://www.mamboserver.com/ Christo van Rooyen >Try MAMBO, not to sure where you can find it. Google should know >Cheers , >Christo van Rooyen >>I've got an order for the media portal. Thus, I'm looking for an open source portal systems. First that comes to my mi

[PHP] Re: Hmmm

2005-02-28 Thread Lester Caine
Jason Bennett wrote: I just installed a new MYSQL version 4.1 (from 4.0) and now none of my PHP scripts work anymore. They are all complaining about attempting to login as root. Normally, I referance a class like: Not a MySQL user, but don't you have to change drivers between 4.0 and 4.1 - the s

[PHP] Semi-OT: Anti-password trading/sharing solutions

2005-02-28 Thread Dan Trainor
Hello, all - First, I'd like to appologize for treading a bit off-topic here, but I think that it will cover a lot of questions that others may have. My company hosts several "Adult-oriented" Web Sites. Among other tools that we use to combat Password Trading are ProxyPass and iProtect. They'r

RE: [PHP] Open source portal systems???

2005-02-28 Thread Christo van Rooyen
Try MAMBO, not to sure where you can find it. Google should know Cheers , Christo van Rooyen I've got an order for the media portal. Thus, I'm looking for an open source portal systems. First that comes to my mind is PHP-Nuke, but I heared that it requires a powerful server and i'll have j