[PHP] Insert or update in Oracle database

2002-02-04 Thread SIM/HAOUHACH
Hello, To these that use the PHP by integrating an Oracle database, I wanted to know how made you your idea to be able to make the update or insert in your database. Thanks LYNDA HAOUHACH Ingénieur Systèmes SONATRACH LTH Émail: [EMAIL PROTECTED] -- PHP General Mailing List

Re: [PHP] Can php Read contents from MS Word in Exactly sameformat

2002-02-04 Thread Jason G.
Not that I know of - which doesn't mean much. I do know that the RTF format is a published spec, that you could read if you felt like taking the time to code a reader. However, give google a try, and maybe you'll turn something up. -Jason Garber At 03:07 AM 2/4/2002 -0500, jtjohnston

[PHP] defining the dpi of an image while uploading -gdlibrary-

2002-02-04 Thread Andy
Hi there, I would like to define the dpi to 72 for images users can upload on my website. Is there a way to do this with gd2.0? Thanx Andy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] SAX + attributes

2002-02-04 Thread Jon Farmer
can anyone tell me how I can retrieve attributes of a node using SAX parser in PHP?? Yes use a Start Element Handler. The attribues are passed to it as a associative array. Regards Jon -- Jon Farmer Systems Programmer, Entanet www.enta.net Tel 01952 428969 PGP Key available, send email with

[PHP] eregi_replace HELP!!

2002-02-04 Thread Martin Cabrera Diaubalick
Hello all! I would like to change all the links containing string microsite from $contenido1 to: a href=http://www.whatever.com;Link not available/a. The rest of the links of $contenido1 would have to be ontouched. To do this, I tried $contenido1=eregi_replace((a href=.*microsite.*/a),a

[PHP] Re: Natively compiled classes

2002-02-04 Thread Lars Wilhelmsen
[EMAIL PROTECTED] (Stephano Mariani) wrote in news:004801c1ad03 $2d208e60$8000a8c0@sknet01: My question, is there any way of doing this with classes? I know I can write individual functions in C and build them into a module, but how can I do this with classes, if at all? TIA Stephano

Re: [PHP] mail() function not sending to Yahoo address

2002-02-04 Thread Jason G.
Just a note... Make sure your server's IP address is not black holed by some spam list... -Jason Garber IonZoft.com At 08:22 AM 2/4/2002 +0100, TV Karthick Kumar wrote: Hi, I use a form on my website for the visitors to send me the feedback and use the mail() to do this job for me.

[PHP] PHP's include_path

2002-02-04 Thread Neil Freeman
Hi there, Am I correct in thinking that you can specify the PHP include_path line within an Apache .htaccess file? If so does anyone know the correct syntax of doing this? If you cannot specifiy PHP's include_path line from within this file - how do you use different include paths for different

[PHP] PHP 'via' JServ/servlets ?

2002-02-04 Thread Espen Lyngaas
Running a 3rd party developet servlet (Apache JServ) driven site, and desperately want to be able to execute PHP code within this system. Unfortunately the developer has virtually no knowledge of how PHP sits in the system. Is it possible to somehow get PHP code executed if the code is read

RE: [PHP] PHP and XML

2002-02-04 Thread Sandeep Murphy
If its parsing xml using PHP is what u r looking for, chk out: http://www.phpbuilder.com/columns/joe2907.php3 http://www.zend.com/zend/art/parsing.php http://www.melonfire.com/community/columns/trog/archives.php -Original Message- From: Peter J. Schoenster [mailto:[EMAIL

RE: [PHP] SAX + attributes

2002-02-04 Thread Sandeep Murphy
thnx.. had figured it out :) thnx all the same.. sands -Original Message- From: Jon Farmer [mailto:[EMAIL PROTECTED]] Sent: segunda-feira, 4 de Fevereiro de 2002 9:26 To: Sandeep Murphy; [EMAIL PROTECTED] Subject: Re: [PHP] SAX + attributes can anyone tell me how I can retrieve

[PHP] HTTP Header

2002-02-04 Thread Daniel Reichenbach
Hy list :-) I need to manually send the HTTP header with PHP. The following is an example what I have to send to the client: HTTP/1.1 200 OK Date: Mon, 04 Feb 2002 10:01:54 GMT Server: Apache/1.3.20 (Unix) mod_ssl/2.8.4 OpenSSL/0.9.6 Connection: Keep-alive, close Expires: Thu, 01 Dec 1994

Re: [PHP] PHP's include_path

2002-02-04 Thread Jason Wong
On Monday 04 February 2002 17:43, Neil Freeman wrote: Hi there, Am I correct in thinking that you can specify the PHP include_path line within an Apache .htaccess file? If so does anyone know the correct syntax of doing this? If you cannot specifiy PHP's include_path line from within this

[PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman
Hi, This is my first time attempting to use htaccess files. I am running Apache 1.3.20 with PHP v4.0.6 installed as a module. Within Apache's httpd.conf file I have the following value set: AccessFileName apache.htaccess And within an 'Alias' directory I have a file entitled 'apache.htaccess'

Re: [PHP] PHP's include_path

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 01:43, Neil Freeman wrote: Hi there, Am I correct in thinking that you can specify the PHP include_path line within an Apache .htaccess file? If so does anyone know the correct syntax of doing this? Something along the lines of: IfModule mod_php4.c AddType

RE: [PHP] ereg_replace help

2002-02-04 Thread Lars Torben Wilson
On Sun, 2002-02-03 at 21:34, Martin Towell wrote: is that a direct copy from your code? - if it is, there's two errors 1. you have a comma just before the closing backet 2. the function is : implode(string glue, array pieces) so that would be : $content = implode(\n, $lines); ie. the

Re: [PHP] HTTP Header

2002-02-04 Thread Mike Maltese
Just use header(). header(HTTP/1.1 200); header(Date: Mon, 04 Feb 2002 10:01:54 GMT); etc., etc. Just make sure that they are all sent before you start any output to the browser. Mike - Original Message - From: Daniel Reichenbach [EMAIL PROTECTED] To: Php-General [EMAIL PROTECTED]

Re: [PHP] PHP's include_path

2002-02-04 Thread Neil Freeman
Thanks for the quick reply Jason. This looks like it'll achieve what I want but I think that using a htaccess file is a better 'overall' method. Cheers, Neil Jason Wong wrote: On Monday 04 February 2002 17:43, Neil Freeman wrote: Hi there, Am I correct in thinking that you can specify

Re: [PHP] PHP's include_path

2002-02-04 Thread Neil Freeman
Thanks for the syntax info Lars. Neil Lars Torben Wilson wrote: On Mon, 2002-02-04 at 01:43, Neil Freeman wrote: Hi there, Am I correct in thinking that you can specify the PHP include_path line within an Apache .htaccess file? If so does anyone know the correct syntax of doing

[PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman
Hi, This is my first time attempting to use htaccess files. I am running Apache 1.3.20 with PHP v4.0.6 installed as a module. Within Apache's httpd.conf file I have the following value set: AccessFileName apache.htaccess And within an 'Alias' directory I have a file entitled 'apache.htaccess'

[PHP] using HTML objects into PHP code

2002-02-04 Thread Eduardo Melo
How can i accessa HTML object into a PHP code ? as such as : select name=~x~ option A option option B option option C option /select) How can a access ~x~ content into a PHP variable ? best regards, eduardo melo copmuter programmer

Re: [PHP] using HTML objects into PHP code

2002-02-04 Thread David Otton
On Mon, 04 Feb 2002 09:32:31 -0200, you wrote: First, you need to fix those tags : select name=~x~ select name=x option A option option A /option How can a access ~x~ content into a PHP variable ? It happens automatically. When you submit a form, PHP variables are created for the

Re: [PHP] Insert or update in Oracle database

2002-02-04 Thread David Otton
On Mon, 4 Feb 2002 09:23:24 - , you wrote: Hello, To these that use the PHP by integrating an Oracle database, I wanted to know how made you your idea to be able to make the update or insert in your database. http://www.php.net/manual/en/function.ociexecute.php or maybe

[PHP] Nothing to do with PHP, sorry

2002-02-04 Thread Liam MacKenzie
Hello everyone, I have a problem that has nothing to do with PHP. I know I shouldn't ask it here, but I need a response urgently as it's a major security hole. I'm trying to set up a firewall, I've sucessfully got my portblocking working and all the ones I need open are open, but I can't

Re: [PHP] using HTML objects into PHP code

2002-02-04 Thread bvr
best regards, eduardo melo copmuter programmer Any cops on this list: watch out for this guy! bvr. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] tab inserting tab

2002-02-04 Thread val petruchek
Hello, list! I have textarea in my page and want it to insert \tabs when clicking Tab instead of focusing on the next control element. Any thoughts or suggestions? Thanks Valentin Petruchek (aki Zliy Pes) *** Cut the beginning *** http://zliypes.com.ua mailto:[EMAIL PROTECTED] -- PHP

Re: [PHP] Can php Read contents from MS Word in Exactly same format

2002-02-04 Thread Chip Wiegand
On Mon, 04 Feb 2002 01:29:11 -0500 Jason G. [EMAIL PROTECTED] wrote: MS Word is a proprietary, binary (i think), format... Have fun. There may be a solution out there. If you could convince her to save it in Rich Text Format (rtf) and then upload it, your life would be much easier...

Re: [PHP] Variable problem

2002-02-04 Thread Randy Johnson
I heard before that you can store session variables in a database rather than using the tmp directory etc etc..Does anybody have any links on this? Thanks Randy - Original Message - From: Yoel Benitez Fonseca [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, January 18, 2002

[PHP] sockets

2002-02-04 Thread Sandeep Murphy
Hi, I am trying to access a remote file by opening a socket on port 80 but keep getting refused... The server does listen on port 80 as i can access it via browser... my code reads like this: ?php $Destination = http://srv157:7001/Palmeira2Application/palmeira2.servlets.communicator.Com

Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-04 Thread Anas Mughal
What would be the easiest and more effective way to check for bouncing email addresses? Thank you. --- Manuel Lemos [EMAIL PROTECTED] wrote: Hello, B Richards wrote: How many emails per hour can people generate on a typical dedicated server? on qmail? on smtp? It depends on many

Re: [PHP] sockets

2002-02-04 Thread Evan Nemerson
This should help you. It is the fsockopen version of what I posed about 6 hours ago. function getdata ($host, $port, $data) { $fp = fsockopen ( $host, $port, $ec, $es, 5.0); if ( !$fp ) { exit (ERROR $ec: $es\n); } fputs ($fp, $data);

Re: [PHP] using HTML objects into PHP code

2002-02-04 Thread Evan Nemerson
ereg() and eregi() should help. Maybe even explode(). On Monday 04 February 2002 03:32, you wrote: How can i accessa HTML object into a PHP code ? as such as : select name=~x~ option A option option B option option C option /select) How can a access ~x~ content into a PHP

RE: [PHP] sockets

2002-02-04 Thread Sandeep Murphy
Hi, nope, its still not working.. Along with the Host and port, I Have to send 3 more fields, Action,Username and Password for authentification and it has to be Post for the Servlet does not respond to Get requests.. any more ideas pl??? Thnx... sands -Original Message- From: Evan

[PHP] prev next links

2002-02-04 Thread Kunal Jhunjhunwala
Hey, Does anyone know of a well written example of this? I have seen so many examples, but the over head just seems to be too much... does anyone have a smooth and well written routine? Regards, Kunal Jhunjhunwala -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] sockets

2002-02-04 Thread Bogdan Stancescu
The server does listen on port 80 as i can access it via browser... http://srv157:7001/Palmeira2Application/palmeira2.servlets.communicator.Co m municator; Am I missing something here? What's srv157:7001? Why don't you first try http://www.google.com? Bogdan -- PHP General Mailing List

RE: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Mark Roedel
-Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 4:45 AM To: PHP General Subject: [PHP] How do I get htaccess files to take effect? This is my first time attempting to use htaccess files. I am running Apache 1.3.20 with PHP

Re: [PHP] prev next links

2002-02-04 Thread Joel Boonstra
Does anyone know of a well written example of this? I have seen so many examples, but the over head just seems to be too much... does anyone have a smooth and well written routine? Regards, Kunal Jhunjhunwala I think this may help out. I wrote a site that has a daily devotional on it, and

[PHP] str_replace problem

2002-02-04 Thread Tomy Wagner
hi, got a weird problem... what i am trying is this: $str = str_replace(é, e, $str); in a string containing a 'é' for sure... but it doesn't replace it.. when i try this: echo str_replace(é, e, dfsdfsdfé); it works !? any suggestions? Tomy Wagner

Re: [PHP] Check Boxes and updating records. (HELP ME....)

2002-02-04 Thread Erik Price
On Friday, February 1, 2002, at 06:05 PM, Georgie Casey wrote: OK, I've a page for my users to sign up on my website and in the form, there's a few checkboxes fields. So I set the name of the check boxes as name[] and PHP made an array of all the options choosen. All the check boxes

Re: [PHP] prev next links

2002-02-04 Thread Joel Boonstra
// build your links // this will, of course, change with your dating schema $prev_link = http://yourdomain.com/?$prev_year-$prev_month-$prev_day; $next_link = http://yourdomain.com/?$next_year-$next_month-$next_day; Sorry, I omitted the closing quote mark on these lines. Here is a

RE: [PHP] sockets

2002-02-04 Thread Sandeep Murphy
srv157 Stands for the server same and 7001 is the port.. with www.google.com, get a request denied error... sands -Original Message- From: Bogdan Stancescu [mailto:[EMAIL PROTECTED]] Sent: segunda-feira, 4 de Fevereiro de 2002 16:01 To: Sandeep Murphy; [EMAIL PROTECTED] Subject: Re:

Re: [PHP] Re: Sending an e-mail to 1,000 people

2002-02-04 Thread Erik Price
On Saturday, February 2, 2002, at 06:05 PM, Sterling Hughes wrote: I think you are confused... Unsolicited e-mail is in fact the definition of spam! Semantics war! You're both right... although originally, it meant repetitive blasts of identical material (to newsgroups). I'm pretty

Re: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman
Thanks for the reply Mark, I am fairly new to this :) Here is a snippet of what I have set up so far (httpd.conf): DocumentRoot D:/Program Files/Apache Group/Apache/realdocs Directory / Options FollowSymLinks AllowOverride None /Directory Directory D:/Program

[PHP] Oddity

2002-02-04 Thread Chris Boget
Ok, could someone tell me why this isn't working? (note, I took out all my error checks. This is just the relevant code... $query = Query that does return row(s); $result = mysql( $dbname, $query ); $macroDataArray = mysql_fetch_array( $result ); for( reset( $macroDataArray ); $elementKey =

[PHP] mysql backup function in php?

2002-02-04 Thread Wilbert Enserink
Hi all, i searched the manual for a php backup function for a mysql DB. I can't seem to find it, but i'm not sure whether it exists. mysql_backup_db maybe?? thx. Wilbert - Pas de Deux Van Mierisstraat 25 2526 NM Den Haag tel 070 4450855 fax 070 4450852

Re: [PHP] Oddity

2002-02-04 Thread Mike Maltese
This could be the problem in your for loop: $elementKey = key( $macroDataArray ) - you're using the = assignment operator. Try == or =. Mike - Original Message - From: Chris Boget [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 8:29 AM Subject: [PHP] Oddity

[PHP] help with imagecopyresampled()

2002-02-04 Thread Nicki Handy
I have a question about the gd function imagecopyresampled- i get an error that i'm not sending it a valid image resourse. I believe it is the variable $new_im that is not valid- when printed, it is a resource id not an image path. but i'm not sure. this is all the code from a function. if

RE: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Mark Roedel
-Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 10:36 AM To: Mark Roedel Cc: PHP General Subject: Re: [PHP] How do I get htaccess files to take effect? Thanks for the reply Mark, I am fairly new to this :) Here is a snippet

Re: [PHP] mysql backup function in php?

2002-02-04 Thread Mike Maltese
Use PHPMyAdmin. You can dump to a CSV file or it can output all of the INSERT statements to rebuild a table. - Original Message - From: Wilbert Enserink [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 8:22 AM Subject: [PHP] mysql backup function in php? Hi

Re: [PHP] Oddity

2002-02-04 Thread Chris Boget
$macroDataArray = mysql_fetch_array( $result ); I'm still curious what is going wrong, but I've found a work arround. One of the things I love about PHP is that you learn something new just about every day. Instead of fetch_array(), I can use fetch_assoc() and it'll do just what I need. :)

Re: [PHP] Oddity

2002-02-04 Thread Mike Maltese
You may want to give mysql_fetch_object a try. I like it because you end up typing less. You access elements like this: $row-data, instead of $row['data']. Just my $0.02. Mike - Original Message - From: Chris Boget [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002

[PHP] Zend Studio

2002-02-04 Thread Alex Shi
Hi, After a long time absent from Zend I came across to it today just for any new articles. To my surprise they changed their home page and it seems like they are promoting their Zend Studio 2.0. I have no idea what it is. Is it like a Visual Studio? Does it support template? If any out there

Re: [PHP] How do I get htaccess files to take effect?

2002-02-04 Thread Neil Freeman
I've taken out the '=' sign and.we have success!!! Thanks a lot for your time Mark. Neil :) Mark Roedel wrote: -Original Message- From: Neil Freeman [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 10:36 AM To: Mark Roedel Cc: PHP General Subject: Re:

Re: [PHP] How to get the URL into a var?

2002-02-04 Thread bvr
You can get the requested location from: $_SERVER[QUERY_STRING] and use the dirname() function on it. bvr. On Sat, 2 Mar 2002 10:29:09 +0100, Andy wrote: Hi there, I am trying to find out which dir the user is browsing. How can I get the URL into a var? I tryed path_info, but it only

Re: [PHP] can't fint php.ini on OS X

2002-02-04 Thread Erik Price
I think that it depends on where you put it at compile time... but on my system it's /usr/local/lib/php.ini Erik On Monday, February 4, 2002, at 01:40 AM, Andy wrote: does anybody know where the php.ini is on Mac OS X? I would like to activate gdlibrary. Thanx for the hint Andy --

Re: [PHP] can't fint php.ini on OS X

2002-02-04 Thread Erik Price
On Monday, February 4, 2002, at 02:37 AM, Richard Baskett wrote: Actually there is not a php.ini in MacOS X. When you run phpinfo() see where the php.ini file should be located and you can put your own there. Oh yes, I should have realized you were talking about the built-in PHP. I

[PHP] allow_url_fopen, remote URLs and cookies

2002-02-04 Thread Chris Searle
OK. I don't know if what I'm trying to do is going to work this way. I have three servers that I need to fetch data from. To do this, I have set allow_url_fopen to On, and I use fopen to retrieve the data into a variable. This works on two servers. The third server requires cookies (you get

[PHP] Yet another regex question

2002-02-04 Thread Simon H
I'm trying to validate an input form, for database INSERT/UPDATE. I'm looking for a couple of Techniques and I cant seem to find examples anywhere: 1. Validate Alpha Text with spaces, such as NAME, CITY, STATE, but limit the length of each one separately, and remove unwanted characters

Re: [PHP] Yet another regex question

2002-02-04 Thread bvr
Hi, To prevent user input from messing with your query you just need to escape the characters used to delimit query values. MySQL for example uses ' (single quote) to delimit values so you should use addslashes() on all values. This will make inserting values containing the ' character work

RE: [PHP] Can this be done in PHP?

2002-02-04 Thread Andrew Chase
You might want to take a look at PhpAdsNew, a banner rotation/management system using PHP and MySQL: http://sourceforge.net/projects/phpadsnew The system's admin tools assume that you're selling ad space, but there's no reason you couldn't use it for a banner exchange instead. -Andy On Fri,

[PHP] Why does heredoc fail in this instance?

2002-02-04 Thread Peter J. Schoenster
Hi If I use $snippet = ; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? Thanks, Peter function GetAddCommentSnippet($args) { $topic_id = $args[id]; $return_page =

Re: [PHP] mysql backup function in php?

2002-02-04 Thread Miles Thompson
Take that a little further and extract the code from phpMyAdmin for use in your own project. Miles At 08:36 AM 2/4/2002 -0800, Mike Maltese wrote: Use PHPMyAdmin. You can dump to a CSV file or it can output all of the INSERT statements to rebuild a table. - Original Message - From:

Re: [PHP] Why does heredoc fail in this instance?

2002-02-04 Thread mike cullerton
on 2/4/02 11:32 AM, Peter J. Schoenster at [EMAIL PROTECTED] wrote: Hi If I use $snippet = ; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? not sure if this is it or not, but from the manual

[PHP] Two SQL tables: asking data in chronological order??

2002-02-04 Thread Lauri Vain
Hi there, I have a somewhat urgent issue so I'll get right to the point. There are two tables and for simplicitys sake I stripped about 2/3 of the tables structure. I need to order the data from two SQL tables by date. Basically a chronological list from the two tables. Now, ordinarily I

[PHP] HTTP Error 405 using POST method

2002-02-04 Thread Scott Adams
Hi. I'm learning PHP3 on an IIS 4.0 box and I started by trying out this simple HTML form. The form lets the user input his/her name, email address, and select whether he/she likes oranges or apples and sends the data to a .php file that displays what the user input on the HTML form. The form

Re: [PHP] Two SQL tables: asking data in chronological order??

2002-02-04 Thread Miles Thompson
Well, w/o any where condition, etc., what does select * from activities, disbursement order by activities.fillin, disbursements fillin; give you? I'd suspect all the activities, followed by the disbursements. How about creating a results table, with all the fields, and do an INSERT ... SELECT

[PHP] Installing PHP 4.1.1 on Redhat w/ RPMs

2002-02-04 Thread Darren Gamble
Good day, This isn't strictly a PHP question, but, I am hoping someone on this list has gone through this already and can provide some assistance. I'd like to upgrade to PHP 4.1.1 on our Redhat 7.2 servers, and so I've downloaded all of the PHP RPMs from Rawhide. I would really, really like to

[PHP] trouble passing variables through a URL

2002-02-04 Thread James Hallam
This is the URL in its A tag: A HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee k1Media Coverage Test Page/A Those variables are supposed to be used to populate this SQL statement: -Original Message- From: mike cullerton [mailto:[EMAIL PROTECTED]] Sent:

[PHP] Parse error

2002-02-04 Thread Ron Clark
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello all, I am getting the following error trin to use the mysql_connect command in a script: Parse error: parse error in /usr/home/rclark/phptest/addrecord.php on line 19 Here is line 19: $connection = mysql_connect(localhost,phpkid,d0wn) or

RE: [PHP] trouble passing variables through a URL

2002-02-04 Thread James Hallam
(try again - Sorry for the double) my config: PHP 4.1.1/NT/iPlanet 6.1 This is the URL in its A tag: A HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee k1Media Coverage Test Page/A Those variables are supposed to be used to populate this SQL statement: $sql = SELECT

[PHP] IMAP error from Linux

2002-02-04 Thread Chris Sim
I have made a simple IMAP mail checker. IT doesn't let you read the mail, just lets you see the headers and delete messages. I have it working great running under Apache 1.3.22 and PHP 4.1.1 on Windows XP. All of the IMAP functions work as expected. The problem is when I take the same php

[PHP] Server crashing?

2002-02-04 Thread Lazor, Ed
I'm starting to have a horrible time of pulling web pages from the server. I checked and found the following entries in the MySQL database server log. The error doesn't occur all the time, but it occurs a lot and only when communicating to the server through PHP. Any idea of what's going on?

RE: [PHP] Yet another regex question

2002-02-04 Thread Simon H
Thanks bvr This is good to know, but I still need some validation with my particular application, as below. Thanks for your time. Simon H -Original Message- From: bvr [mailto:[EMAIL PROTECTED]] Sent: 04 February 2002 17:44 To: php-general; Simon H Subject: Re: [PHP] Yet another

[PHP] Re: help - config setting directives in Apache config files not working

2002-02-04 Thread Mike Frazer
The flexibility of the dynamic module is great. I recommend it. I haven't discovered an major advantages of the static modul myself, although I know they've got to exist (either that or it's just a remnant of previous versions, there for those who are afraid of change :) ). Compile Apache

Re: [PHP] Re: help - config setting directives in Apache config files not working

2002-02-04 Thread Erik Price
On Monday, February 4, 2002, at 05:11 PM, Mike Frazer wrote: I haven't discovered an major advantages of the static modul myself, although I know they've got to exist (either that or it's just a remnant of previous versions, there for those who are afraid of change :) ). Compile Apache

RE: [PHP] Parse error

2002-02-04 Thread Johnson, Kirk
Check for a missing line or block terminator just above line 19. Kirk -Original Message- From: Ron Clark [mailto:[EMAIL PROTECTED]] Sent: Monday, February 04, 2002 11:32 AM To: [EMAIL PROTECTED] Subject: [PHP] Parse error I am getting the following error trin to use the

Re: [PHP] Why does heredoc fail in this instance?

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 10:32, Peter J. Schoenster wrote: Hi If I use $snippet = ; and escape the quotes in the block then it works. But if I use it as is below, it fails with no useful error message. Why? Thanks, Peter This function cut-and-pasted? If so, then you may have fallen

RE: [PHP] trouble passing variables through a URL

2002-02-04 Thread Lars Torben Wilson
On Mon, 2002-02-04 at 11:49, James Hallam wrote: (try again - Sorry for the double) my config: PHP 4.1.1/NT/iPlanet 6.1 This is the URL in its A tag: A HREF=test_mediacoverage.php?locale=en_nasec=newssubsec=medianame=infowee k1Media Coverage Test Page/A Those variables are

Re: [PHP] Re: imagecopy or why men don't use maps.

2002-02-04 Thread Chris Williams
Hugh, I experimented with JPEG when I started using the GD libraries and was not satisfied with the results. Just too many image quality issues. Unless your map is a image (vs a graphic) I wouldn't use Jpeg. The coloring you speak of may be a result of jpeg compression. Using no compression will

Re: [PHP] file validation

2002-02-04 Thread Lars Torben Wilson
On Sun, 2002-02-03 at 14:06, Lars Torben Wilson wrote: On Sun, 2002-02-03 at 12:12, Mike Frazer wrote: Your reply piqued my curiosity so I whipped together a script that times the execution of a foreach(), a while() and a for() loop executing the same commands. The results were rather

Re: [PHP] Sockets

2002-02-04 Thread Mike Frazer
I've found fsockopen to be very reliable. I've done a few socket scripts with PHP (WhoisPro, et al). I believe the easiest way to check for a remotely closed socket is to do an fgets() and check for EOF: while (!feof($connection)) { $buffer .= fgets($connection, 4096); // 4096 is the

RE: [PHP] trouble passing variables through a URL

2002-02-04 Thread James Hallam
That was *exactly* it.. I copied that code in and everything worked! Thanks so much - my head was getting sore from beating it on my desk! I still have much to get used to with 4.1.x .. James -Original Message- From: Lars Torben Wilson [mailto:[EMAIL PROTECTED]]On Behalf Of Lars

[PHP] date problems

2002-02-04 Thread toni baker
$date1 = 12/12/2001; $date1 = date(D M j Y, strtotime($date1)); print $date1.br; When I execute the code above I get the following output: Tue Dec 11 2001 instead Wed Dec !2 2001 Why does this happen and how can I get the Dec 12 output? Thanks

[PHP] problems using an elsif statement on apache php 4.06

2002-02-04 Thread cyberskydive
I have two php scripts being included on my website. one is a switch statement used for page navigation, and the other is an elseif used to display different html code based on the value of a variable (different on each page) My apache server keeps freezing up and my hosting company tells me

[PHP] general question...

2002-02-04 Thread jas
Using php3 is there a way to have a page only be access if the user is coming from another page? I don't quite know how to word what I am thinking but for instance... Form -- page that contains a form to submit an email address to a mailing list Confirm -- page that confirms the users email

[PHP] Large File Uploads

2002-02-04 Thread Ben Sinclair
I'm having some trouble with a file upload script that runs over SSL. It seems that the file is kept in memory while being uploaded and then flushed to disk as a temp file. This is fine, but when you are dealing with large files, you can run out of memory. Apache (or PHP?) also doesn't seem to

Re: [PHP] general question...

2002-02-04 Thread Tyler Longren
if (eregi(page_user_has_to_come_from,$HTTP_REFERER) != ) { print You didn't come from the right page, please go back.; } else { print Congrats, you came from the right page!; } Tyler - Original Message - From: jas [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, January

[PHP] problem with mail()/html/outlook

2002-02-04 Thread ryan-php
I'm trying to send an html email via a php script, but I'm running into a rather bizarre problem. I can get it to send the email just fine, but when it is read on windows Outlook (macintosh outlook express are unaffected) clients, it strips two characters after any '=' signs, so it plays

[PHP] javascript delete

2002-02-04 Thread Mostafa Al-Mallawani
hi, i know this question's been asked before but i can't find the email...how do i do the delete link that pops up a message box with the information of the deleted entry using php? like the one in phpmyadmin 2.2.3. thanks. :)

[PHP] HELP! I was just wondering

2002-02-04 Thread cyberskydive
I've been playing around with php alot lately and started to scheme ways to use it-lol so heres what I tried to do: first there is a switch statement: ? switch($page) { case refer: require(some_file.php); exit; ? On that some_file.php I have an elseif like so: ? if($page == $refer) { $title

Re: [PHP] date problems

2002-02-04 Thread Jim Lucas [php]
sounds like it might have something to do with leap year. Jim Lucas - Original Message - From: toni baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 12:03 PM Subject: [PHP] date problems $date1 = 12/12/2001; $date1 = date(D M j Y, strtotime($date1));

[PHP] Re: PEAR IMAGICK [WAS- RANT: Why doesn't PHP have built-in support for dynamic]

2002-02-04 Thread Michael Kimsal
Christian Stocker wrote: see (which is how I labelled it above) and what I'm capable of actually contributing. Doing C-code PHP extensions is beyond my capabilities, so I make do with what others contribute. Simply because something is opensource doesn't mean everyone has equal talent to add

Re: [PHP] date problems

2002-02-04 Thread Edward van Bilderbeek - Bean IT
i think it is the strtotime() function that gives the trouble... why don't you try mktime() ? sounds like it might have something to do with leap year. Jim Lucas - Original Message - From: toni baker [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 04, 2002 12:03

[PHP] strtotime problem

2002-02-04 Thread toni baker
$date1 = 10/12/2002; $date1 = date(D M j Y, strtotime($date1)); $date2 = date(D M j Y); $date3 = date(D M j Y, $date1); print $date1.br; print $date2.br; print $date3.br; The code above gives me the following output: Fri Oct 11 2002 Mon Feb 4 2002 Wed Dec 31 1969 Is the strtotime()

Re: [PHP] PHP and Apache authorization: how to logout. Help!

2002-02-04 Thread LaserJetter
I read somewhere that if you type an underscore it clears authentication info. I haven't tried it and it seems obscure but its worth a try! LJ Frederick L. Steinkopf [EMAIL PROTECTED] wrote in message 018201c1ac67$c4d9c6a0$851a88ac@frederis">news:018201c1ac67$c4d9c6a0$851a88ac@frederis...

[PHP] General question...

2002-02-04 Thread jas
Ok I think I know what I need to learn... how can I do a redirect based on whether or not a user came from a certain page? For example... if a user comes from a page called confirm.php then it takes them to a page called thanks.php and if the user came from a different server or typed the url

[PHP] Re: General question...

2002-02-04 Thread Philip Hallstrom
Something along the lines of: if( ereg(/confirm.php, $_SERVER['HTTP_REFERER']) ) { Header(Location: thanks.php); exit; }else { Header(Location: index.php); exit; } You might want to do some additional checking as well.. the above would match both

[PHP] uksort wisdom

2002-02-04 Thread Sondra Russell
Hi Guys! I'm looking to get a *deeper understanding* of uksort. My quandry: $array[listing1][name] = listing 1; $array[listing1][premiere] = ; $array[listing2][name] = listing 2; $array[listing2][premiere] = ; $array[listing3][name] = listing 3; $array[listing3][premiere] = yes; I'd like the

Re: [PHP] Email Attachment

2002-02-04 Thread Mauricio Sthandier
Thanxs... I couldn't use your script (because of my lack of experiencie maybe) but you gave me a very good hint about what to look for. I sent an attachment (with a class located in this URL : http://renoir.vill.edu/~ylee/mailfile.txt), but that wasn't what my boss was thinking of. (Now he tells

[PHP] Apache/PHP get stuck when using form POST.

2002-02-04 Thread Scott Fletcher
Hi! I have an interesting problem. I am wondering if it is related to PHP or Apache. So, I need your feedback on this one. What happen is when I use the HTML Form POST and submitted it. It worked fine and getting to the 2nd page. The 2nd page include some PHP script and a modem script..

  1   2   >