[PHP] conditional statement problems

2002-09-30 Thread Pablo Oliva
$title_err = ($adTitle == "") ? 1 : strlen($adTitle) > 50 ? 2 : 0; Can anyone tell me why this is not evaluating correctly (returning a value of 1) when $adTitle is an empty string? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: PHP Include Help

2002-09-30 Thread Erwin
> On line "6", I have the list of musicians in the song. > Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry - > - bass vocal" > Is there a way to make it so that, when I include line 6 in my PHP > template, the ";" will be replaced with a line break so I get one > musician per

RE: [PHP] remote desktop control

2002-09-30 Thread Smith, Benjamin
Not really, no. It goes well beyond the capabilities of a server-side scripting language. There is a java implementation in VNC that allows this capability, though. -Original Message- From: Rahul [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 4:53 PM To: [EMAIL PROTECTED] Subj

[PHP] remote desktop control

2002-09-30 Thread Rahul
Hello all, Is it possible to implement Web Based Remote Desktop Control using PHP or anyother webbased language? Aim is to share the remote(visitor's) system(desktop). If possible, plz let me know how to proceed. Advance thanks, -sadha

[PHP] Re: image wrapper - graphs

2002-09-30 Thread Jome
> Does anyone know of image creation libraries that will generate graphs? http://www.aditus.nu/jpgraph/ Jome -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Configure php for windows

2002-09-30 Thread Khalid El-Kary
Hi, why do you want to run it from a cd, PHP doesn't pass the 6 MB limit! i suggest for reliability reasons that you run PHP from your disk, i don't think Apache would do okay if it didn't fine the PHP path (in case that you eject the cd) do you have special reasons? khalid ___

RE: [PHP] Configure php for windows

2002-09-30 Thread Uma Shankari T.
Hello, On Tue, 1 Oct 2002, Peter Houchin wrote: PH> ScriptAlias /php/ "c:/path-to-php-dir/" PH> PH>one would assume that you change the "C:/path-to-php-dir/" to the path of PH>the cd drive to get it to work I have changed like the following you have mentioned above..abut anyway it couldn;t r

RE: [PHP] Configure php for windows

2002-09-30 Thread Peter Houchin
ScriptAlias /php/ "c:/path-to-php-dir/" one would assume that you change the "C:/path-to-php-dir/" to the path of the cd drive to get it to work -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP] error in php script

2002-09-30 Thread prasanna shetye
Hi Thanks but the path is set . Othere php scripts are running well . My problem is as it is . Have a nice time! On Tue, 01 Oct 2002 Lejanson C. Go wrote : >Hello, > >I guess you forgot to edit your php.ini file. > >Append to the include_path the path to where your >index.php is located.

[PHP] Re: .php to .html?

2002-09-30 Thread Steve Yates
"Steve Yates" <[EMAIL PROTECTED]> wrote in message news:... > "Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > How can I make my pages come out as .html instead of .php? > > Rename your pages to .html, and configure Apache to sen

[PHP] Re: .php to .html?

2002-09-30 Thread Steve Yates
"Jean-Christian Imbeault" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > How can I make my pages come out as .html instead of .php? Rename your pages to .html, and configure Apache to send all .html pages through PHP: -- PHP General Mailing List (http:

[PHP] Configure php for windows

2002-09-30 Thread Uma Shankari T.
Hello, I am trying to run php from the cd itself..apache and mysql are running.. To what i have to change the following settings so that it will run from the cd.. * ScriptAlias /php/ "c:/path-to-php-dir/" * AddType application/x-httpd-php .php * Add

[PHP] Email user

2002-09-30 Thread prasanna shetye
Hi I have downloaded an email client twiggi from http://twiggi.sourceforge.net . It has complete funtionality of email client like read , compose . forward , folder management , etc . But the only problem is creating new account . Can you help me to create an email account on linux and / or

RE: [PHP] image wrapper - graphs

2002-09-30 Thread Smith, Benjamin
Try gnuplot: -Original Message- From: Mike Mannakee [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 2:31 PM To: [EMAIL PROTECTED] Subject: [PHP] image wrapper - graphs Hi, Does anyone know of image creation libraries that will generate graphs? Mike -- PHP General Mailing

[PHP] image wrapper - graphs

2002-09-30 Thread Mike Mannakee
Hi, Does anyone know of image creation libraries that will generate graphs? Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] readfile without stating filelength

2002-09-30 Thread Justin French
1. I can't see a file length statement in the docs for readfile. 2. Can't you just use include('somefile.html'); or require('somefile.html'); Just make sure any PHP code in the include file is wrapped in tags. HTH Justin French on 01/10/02 1:12 PM, Daniel Jung ([EMAIL PROTECTED]) wrote: > H

[PHP] inputbox?

2002-09-30 Thread Jeff Bluemel
is there a way to for an input box to come up looking for a value? I know there are a few ways I could resolve my current issue, but I would prefer to display an inputbox, and use that value in my query. basically I would do a $HTTP_SERVER_VARS['PHP_SELF'] as the action of a form, but then I wou

Re: [PHP] error notice - valid code

2002-09-30 Thread Tom Rogers
Hi, Tuesday, October 1, 2002, 1:02:46 PM, you wrote: PO> Notice: Use of undefined constant year - assumed 'year' in PO> c:\apache\htdocs\jotr\includes\globalFooter.php on line 3 PO> $year = getdate(); PO> $print_year = $year[year]; ?>> PO> Is this not valid code? No It should be

RE: [PHP] Regular Expression

2002-09-30 Thread John W. Holmes
> What about foreign names...such as the umlaut in > German? I'm not interested in allowing ALL of the > characters, just the most common ones...I'd hate to > restrict a genuine registration because the name > contains an unaccepted character. Know what I mean? Well, that wasn't in your original

[PHP] Re: mail headers & filtering

2002-09-30 Thread Manuel Lemos
Hello, On 09/30/2002 01:42 PM, Debbie Dyer wrote: > Jon > > Thanks but I already did all that - I first noticed it a while ago when > people signing up on my site (and having to respond to a confirmation mail) > were complaining that they never received the confirmation mail - not all > people j

[PHP] Reading a PHP-as-CGI script into another PHP script

2002-09-30 Thread Phil Powell
I have the following URL: http://valsignalandet.com/cgi-bin/cgiwrap/ppowell/php4.cgi/~ppowell/my/style.php This is a PHP script that is evaluated and compiled by a CGI script, php4.cgi, to allow for file and directory manipulation w/o having to change file and directory permissions to world-wr

RE: [PHP] readfile without stating filelength

2002-09-30 Thread John W. Holmes
> I want to read a pure html file into a php-generated html file. > print(readfile("somefile.html")); > How do I get rid of the filelength statement? > Messes up the page. Your error is using the print(). You just want readfile("file") without the print. Readfile() returns the number of bytes rea

[PHP] Re: Can I pass the ftp transfer mode in a string?

2002-09-30 Thread John Kelly
Thanks guys, I was unaware having quotes around it would make a difference. Works fine once I removed the quotes. "John Kelly" <> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Can I pass the ftp transfer mode in a string like ... > > $filetype = "FTP_ASCII"; > $upload = ftp_fput

[PHP] Re: mail headers & filtering

2002-09-30 Thread Manuel Lemos
Hello, On 09/30/2002 01:29 PM, Henry wrote: > How about somebody making a javascript email encoder so that if you use a > javascript enabled mail client it will get decoded only once it arrives with > the recipient. With a link for those people without javascript enabled email > clients to view t

[PHP] readfile without stating filelength

2002-09-30 Thread Daniel Jung
Hi I want to read a pure html file into a php-generated html file. print(readfile("somefile.html")); How do I get rid of the filelength statement? Messes up the page. Thanks - Daniel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] error notice - valid code

2002-09-30 Thread Martin Towell
This is what you're really after - quoting the index -Original Message- From: Pablo Oliva [mailto:[EMAIL PROTECTED]] Sent: Tuesday, October 01, 2002 1:03 PM To: [EMAIL PROTECTED] Subject: [PHP] error notice - valid code Notice: Use of undefined constant year - assumed 'year' in c:\ap

[PHP] error notice - valid code

2002-09-30 Thread Pablo Oliva
Notice: Use of undefined constant year - assumed 'year' in c:\apache\htdocs\jotr\includes\globalFooter.php on line 3 Is this not valid code? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Re: seeking data validation class

2002-09-30 Thread Manuel Lemos
Hello, On 09/28/2002 12:56 AM, Peter J. Schoenster wrote: >>Assumming that you tried the forms generation and validation class, what >>did you realize that was missing to match your needs? >> >>http://www.phpclasses.org/formsgeneration > > > Well that's the first thing I found and I downloaded

RE: [PHP] Regular Expression

2002-09-30 Thread Daren Cotter
John, What about foreign names...such as the umlaut in German? I'm not interested in allowing ALL of the characters, just the most common ones...I'd hate to restrict a genuine registration because the name contains an unaccepted character. Know what I mean? --- "John W. Holmes" <[EMAIL PROTECTED

RE: [PHP] Can I pass the ftp transfer mode in a string?

2002-09-30 Thread Smith, Benjamin
What if you enclose it in single quotes? -Original Message- From: John Kelly [mailto:[EMAIL PROTECTED]] Sent: Tuesday, 1 October 2002 12:36 PM To: [EMAIL PROTECTED] Subject: [PHP] Can I pass the ftp transfer mode in a string? Can I pass the ftp transfer mode in a string like ... $filet

RE: [PHP] Can I pass the ftp transfer mode in a string?

2002-09-30 Thread John W. Holmes
> Can I pass the ftp transfer mode in a string like ... > > $filetype = "FTP_ASCII"; > $upload = ftp_fput($conid, $dfile, $sfile, $filetype); > > I ask as when I do I get the following error message ... > > Warning: ftp_fput() expects parameter 4 to be long, string given > > If I replace $file

[PHP] Re: Can I pass the ftp transfer mode in a string?

2002-09-30 Thread Philip Hallstrom
Why not do... $filetype = FTP_ASCII; $upload = ftp_fput($conid, $dfile, $sfile, $filetype); On Mon, 30 Sep 2002, John Kelly wrote: > Can I pass the ftp transfer mode in a string like ... > > $filetype = "FTP_ASCII"; > $upload = ftp_fput($conid, $dfile, $sfile, $filetype); > > I ask as when I d

[PHP] Can I pass the ftp transfer mode in a string?

2002-09-30 Thread John Kelly
Can I pass the ftp transfer mode in a string like ... $filetype = "FTP_ASCII"; $upload = ftp_fput($conid, $dfile, $sfile, $filetype); I ask as when I do I get the following error message ... Warning: ftp_fput() expects parameter 4 to be long, string given If I replace $filetype with the text F

[PHP] Re: image viewing in the mail client

2002-09-30 Thread Manuel Lemos
Hello, On 09/30/2002 11:18 AM, Ramesh Nagendra Pillai wrote: > I have developed an application to send newsletter > periodically using simple mail function in PHP, the > newsletter is in HTML format and also have some > images. The problem is when we see the newsletter in > the inbox, images are

[PHP] Re: mail headers & mail filtering

2002-09-30 Thread Manuel Lemos
Hello, On 09/30/2002 11:09 AM, Debbie_dyer wrote: > More and more emails seem to be getting blocked by mail filtering > systems looking for spam (but trashing legitimate mail at the same Some people use anti-spam systems that give a lot of false positives due to criteria that make general as

Re: [PHP] Pay Pal

2002-09-30 Thread Lowell Allen
> From: "Anup" <[EMAIL PROTECTED]> > > Hello everybody, I thought programming pay pal would be a cinch. I can;t > find any information in programming pay pal. All I need to do is one simple > transaction to paypal. payapldev.org is down for the next week. Does any one > know any other site I can

Re: [PHP] checking if a MySQL update worked

2002-09-30 Thread Justin French
If result is true, I take this to mean that the query could be executed. And I take MySQL affected rows to mean that N rows were affected AND the result was true: I haven't dug right down to make sure this method works for every problem, but so far, no problems found. Justin French on 01/1

RE: [PHP] Determining platform PHP is running on?

2002-09-30 Thread John W. Holmes
> I'm looking for something that returns just the OS type, not tons of > information. :) I think the constant PHP_OS is what I'm looking for. > I just found it. > > Thanks for the suggestion though, The idea was that you look at that "tons of information" and find the variable you are after. T

[PHP] Re: error: loading extensions / php_xslt.dll on win32

2002-09-30 Thread Mark Johnson
I still seem to be having a problem. When I run depends on my php_xslt.dll it says: "At least one module has an unresolved import due to a missing export function in an implicitly dependent module." When I look, I see a call to _ecalloc from php4ts.dll that is marked with a red icon. I just d

RE: [PHP] Need help creating a mysql query in PHP

2002-09-30 Thread John W. Holmes
> I have a form containing a text field where the user types in a sentence. > I > need to search a mysql table, specifically a text field and display a list > of found results. My criteria selections are: > > 1) return a record if all the words are contained in a record > 2) return a record if a

Re: [PHP] mime type list

2002-09-30 Thread christian haines
cheers for that... that listing should do the trick it was right under my nose as usual also thanks for your reply in my other post christian Marek Kilimajer wrote: > I know about /etc/mime.types, does that help? > > christian haines wrote: > > >hi all, > > > >i have been looking around on

Re: [PHP] echo writes number of chars written

2002-09-30 Thread Tom Rogers
Hi, Tuesday, October 1, 2002, 4:12:46 AM, you wrote: DB> List, DB> On my php.4.2.3, Apache 4.0.42 install my echo statements all output the DB> number of characters written (in hex). DB> So this code: DB> echo "$id->addrone"; DB> echo "$id->addrtwo"; DB> echo "$id->city"; DB> Makes this

RE: [PHP] Regular Expression

2002-09-30 Thread John W. Holmes
> I need a regular expression to verify various inputs > on my form. I know the base case of: > > "^[a-zA-Z0-9]+$" > > matches any letter or number. I'm looking for various > input from the list as to what characters should be > allowed in the following fields: > > Name: I would think -, ', and

Re: [PHP] xml encodeing with new_xmldoc("1.0");

2002-09-30 Thread Tom Rogers
Hi, Monday, September 30, 2002, 10:54:25 PM, you wrote: DÖJ> I need to apply iso-8859-1 encodeing to the that DÖJ> this function creates: DÖJ> new_xmldoc(“1.0”). DÖJ> I tried to replace the line but ofcourse the new_xmldoc function creates DÖJ> object-tree of the document and I don’t know I ca

[PHP] Multiple Tables Select

2002-09-30 Thread Bob Irwin
G'day, Hoping someone can help me with a mysql select statement. I have two tables that I am trying to do a select on. The basic table details are below. table name: time | ID | timefinished| status | |1| 11 |C | table name: details | sid | completed

RE: SV: [PHP] Quickie

2002-09-30 Thread John W. Holmes
> Another thing - the first time the page is loaded every link on the page > gets a '?PHPSESSID=...etc...' attached to itself. But only the first time. > It dissapears after the first click i make. Do you have a session_start() on the page? It looks like you have a trans_sid enabled. PHP will add

Re: [PHP] vulnerabilities??

2002-09-30 Thread Brad Bonkoski
Is there such a thing of a software package with no vulnerabilities and/or bugs?? (Windows perhaps :-) The advantage to apache/php is the ability to quickly address those problems once found. -Brad Steve Keller wrote: > At 9/30/2002 06:17 PM, you wrote: > > >Is there any version of php and apac

Re: [PHP] vulnerabilities??

2002-09-30 Thread Steve Keller
At 9/30/2002 06:17 PM, you wrote: >Is there any version of php and apache for which there are no known >vulnerabilities?? It's the vulnerabilities you don't know about that get you. -- S. Keller UI Engineer The Health TV Channel, Inc. (a non - profit organization) 3820 Lake Otis Pkwy. Anchorage

[PHP] MSSQL_ERROR() ?

2002-09-30 Thread [-^-!-%-
Is there an SQL Server quivalent function, to the mysql_error() function-available for msyql? If not, then how do you retrieve the db error for an SQL Server error? -j =P e p i e D e s i g n s www.pepiedesigns.com Providing Solutions That Increase Productivity Web Developement. Database.

[PHP] Regular Expression

2002-09-30 Thread Daren Cotter
I need a regular expression to verify various inputs on my form. I know the base case of: "^[a-zA-Z0-9]+$" matches any letter or number. I'm looking for various input from the list as to what characters should be allowed in the following fields: Name: I would think -, ', and space for sure. Any

Re: [PHP] Including Text File in PHP/HTML Template

2002-09-30 Thread Steve Keller
At 9/30/2002 04:39 AM, Rick Beckman wrote: >On line "6", I have the list of musicians in the song. >Example (ignore the quotes): "Doyle Lawson -- lead vocal; Dale Perry -- bass >vocal" >Is there a way to make it so that, when I include line 6 in my PHP template, >the ";" will be replaced with a l

[PHP] Including Text File in PHP/HTML Template

2002-09-30 Thread Rick Beckman
I have a series of text files that are set up with each line being a different field. Line "0" is song title, "1" is artist, "2" is album, and so forth. I know how to use PHP to include those files in an HTML template using 'echo' so that I don't have to make a separate page for each song, however

[PHP] Re: [PHP-INST] vulnerabilities??

2002-09-30 Thread Rasmus Lerdorf
Sure, grab the latest Apache 1.3.x and the latest PHP. On Mon, 30 Sep 2002, Anil Garg wrote: > hi, > > Is there any version of php and apache for which there are no known > vulnerabilities?? > > regards > anil :) > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, visit:

[PHP] PHP Include Help

2002-09-30 Thread Rick Beckman
I have a series of text files that are set up with each line being a different field. Line "0" is song title, "1" is artist, "2" is album, and so forth. I know how to use PHP to include those files in an HTML template so that I don't have to make a separate page for each song, however, I do have t

[PHP] vulnerabilities??

2002-09-30 Thread Anil Garg
hi, Is there any version of php and apache for which there are no known vulnerabilities?? regards anil :) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Installing php - 4.2.3 with apache - 2.0.40

2002-09-30 Thread Rasmus Lerdorf
You need a current unstable snapshot of PHP to work with recent versions of Apache 2. However, unless you have a really good technical reason for using Apache 2, I would highly suggest sticking with Apache 1 for now. -Rasmus On Mon, 30 Sep 2002, Anil Garg wrote: > Hi, > > I am using following

Re: [PHP] Re: mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT
This is what I am using here: $db = DB::connect("mysql://$username:$password@$hostName/$databaseName"); if (DB::iserror($db)) die($db->getMessage()); $sql = "SELECT idnum, title, DATE_FORMAT(date, '%W, %M %D \@ %l:%i%p'), news FROM newslist ORDER BY idnum DESC"; $query = $db->query($sq

[PHP] Installing php - 4.2.3 with apache - 2.0.40

2002-09-30 Thread Anil Garg
Hi, I am using following versions: php - 4.2.3 apache - 2.0.40 I am reffering to intallationg intruction at : http://www.php.net/manual/en/install.apache.php while intalling php i use the following: ./configure --prerfix=/usr/local -- with -mysql = /usr/local/msyql

Re: [PHP] Re: mysql timestamp and php date

2002-09-30 Thread Jason Young
No problem! Refresh MY memory here.. I noticed you didn't return the DATE_FORMAT column "AS " .. is that working okay? I seemed to think that it returned a long unwieldy column name.. maybe things are good.. let me know :-D --Jason Bryan Koschmann - Gkt wrote: > Hi Jason, > > I had come ac

[PHP] Apache 1.3.26 + PHP 4.2.3

2002-09-30 Thread James Mackie
Got a strange problem that I can't find any info on. Maybe someone can give me some insight. On most of my servers that are running 4.2.2 (and before) I used 'killall -USR1 httpd' to reload my apache config. Now all servers that I install with 4.2.3 instead of 4.2.2 this shuts down apache instead

Re: [PHP] Re: mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT
Hi Jason, I had come across this earlier, and while I can get it to return perfectly, I was more looking for something that I could do without having to pull 2 queries. Err, well wait, I wouldn't have to would I? I have 4 columns: idnum, title, date, news I was just doing a select * from newlis

RE: [PHP] GET - POST problem

2002-09-30 Thread Francisco Vaucher
OK. That would be a solution. I've been working with this one, but I can't send back the information. Maybe i'm doing something wrong (I really think this). What I've been wondering if this is a common problem ¿? Francisco M. Vaucher Departamento IT Tyco / ADT Security Services Buenos Aires -

Re: [PHP] GET - POST problem

2002-09-30 Thread Kevin Stone
I can think of at least two solutions... 1) Open the item queries in a new window (target="_new") leaving the list page open and unmodified. 2) Send NoCache headers and use a PHP session or cookie to store the Form data and resubmit when the back button is pressed. -Kevin - Original Messag

[PHP] Need help creating a mysql query in PHP

2002-09-30 Thread DonPro
Hi, I have a form containing a text field where the user types in a sentence. I need to search a mysql table, specifically a text field and display a list of found results. My criteria selections are: 1) return a record if all the words are contained in a record 2) return a record if all any w

[PHP] XML SAX & DOM together?!

2002-09-30 Thread Assistant to Foreign Student Advisor
Hi, I am puzzled by a question about XML's SAX and DOM engines compatibility. Is it possible to have both installed, and use them interchangeably, depending on the function calls. Or you you have to choose only one. And if so, can WDDX library operate with DOM XML or only SAX. Thank you for yo

[PHP] intalling php.

2002-09-30 Thread Anil Garg
Hi, I want to upload my website..i had a machine on local lan which had already php installed on it...so i made my website there.. Now on a news new unit. I am trying to install php on free bsd machine...the apache webserver is runniing fine.. on installing php it doesnt edit lines like:

[PHP] Pay Pal

2002-09-30 Thread Anup
Hello everybody, I thought programming pay pal would be a cinch. I can;t find any information in programming pay pal. All I need to do is one simple transaction to paypal. payapldev.org is down for the next week. Does any one know any other site I can use? -- PHP General Mailing List (http://w

Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Chris Hewitt
Debbie Dyer wrote: >mailboxes too - next one who does I will ask them to check their dns as > Its a problem with the sender's domain, rather than the recipient. Chris -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Annoying Install Problem

2002-09-30 Thread Steve Keller
I'm hoping someone here might be able to spot what I'm doing wrong with my installation. This is new to me and I've done the best I can by following the documentation, but I can't find a solution to this problem anywhere, even Googling for the error. We're trying to upgrade our version of PHP

[PHP] GET - POST problem

2002-09-30 Thread Francisco Vaucher
Hi, I have a problem when i'm sending form data. The issue happens when I build a mysql query with some form input data. I send the info and I get 'n' results. With this I build a list that has links to the records that match the query. Next step I display one of the items on my query. OK, now h

[PHP] GZip

2002-09-30 Thread Jay
I have the "output_handler = ob_gzhandler" turned on in the php.ini file so it will automatically compress all my pages. I was just wondering what is a good zlib.output_compression level to put it on or is the default (4kb) a good size? thanks! -- PHP General Mailing List (http://www.php.net/

RE: [PHP] Determining platform PHP is running on?

2002-09-30 Thread Matt Giddings
I'm looking for something that returns just the OS type, not tons of information. :) I think the constant PHP_OS is what I'm looking for. I just found it. Thanks for the suggestion though, Matt > -Original Message- > From: Jay Blanchard [mailto:[EMAIL PROTECTED]] > Sent: Monday, Septem

[PHP] Strange output using PHP 4.2.3/Apache 2.0.42 with domxml

2002-09-30 Thread David Busby
List, When using echo or print to output data to the response buffer, these functions also put the number of bytes in the buffer into the output stream. This only happens when I use this code in my script: $doc = domxml_open_mem($HTTP_RAW_POST_DATA); After that script echo and p

RE: [PHP] Determining platform PHP is running on?

2002-09-30 Thread Jay Blanchard
[snip] Is there a way to determine what platform PHP is running on? I'm trying to write a script that parses path names which we all know unix and windose don't agree with each other. [/snip] Put in a page and then load in the browser from your server. It's revealing ... HTH! Jay -- PHP Ge

[PHP] Determining platform PHP is running on?

2002-09-30 Thread Matt Giddings
Is there a way to determine what platform PHP is running on? I'm trying to write a script that parses path names which we all know unix and windose don't agree with each other. Thanks, Matt --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). V

[PHP] Re: mysql timestamp and php date

2002-09-30 Thread Jason Young
In my pages, I just format the date from the SQL query: "SELECT DATE_FORMAT(last_modified, '%m/%d/%Y %h:%i:%s %p') AS last_modified (...)" Look up the DATE_FORMAT on mysql.com to get a list of the arguments. Hope this helps! -Jason Bryan Koschmann - Gkt wrote: > Hello, > > I have a table wit

[PHP] Re: xml_set_character_data_handler logic

2002-09-30 Thread Leendert Brouwer
Cardinal from IRC answered my question. It turns out that when you indent your childs with tabs, it sees those tabs as cdata of the root element. I had the following XML file: sampleDBName sampleUser localhost The tabs in front of the child elements were treated as CDATA of the roo

[PHP] mysql timestamp and php date

2002-09-30 Thread Bryan Koschmann - GKT
Hello, I have a table with timestamps in mysql. The timestamps of course are in the format of 20020930014535 but I would like to format the output as this: date("l F jS H:i:s", $last_modified) What is the simplest way to do this? I see there are a few ways to convert it, but I was hoping for so

Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Debbie Dyer
Ok, thx Chris. I'll have to take that up with my providers. Maybe its the same problem for the others who've been contacting me re mails not arriving at their mailboxes too - next one who does I will ask them to check their dns as well. Debbie - Original Message - From: "Chris Hewitt" <

[PHP] echo writes number of chars written

2002-09-30 Thread David Busby
List, On my php.4.2.3, Apache 4.0.42 install my echo statements all output the number of characters written (in hex). So this code: echo "$id->addrone"; echo "$id->addrtwo"; echo "$id->city"; Makes this XML: 1d PO BOX 698 13 1a ABCDEF GHIJKL Couldn't see anything in the bug report, id

Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Chris Hewitt
Debbie Dyer wrote: >addresses and got it bounced back with the following:- > >X-AntiAbuse: This header was added to track abuse, please include it with >any abuse report >X-AntiAbuse: Primary Hostname - server.securesite7.com >X-AntiAbuse: Original Domain - c-u-online.co.uk >X-AntiAbuse: Originat

[PHP] Re: general apache list

2002-09-30 Thread electroteque
[EMAIL PROTECTED] if anyone needs it here it is. "@ Edwin" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > ...I mean lot of "places"... :) > > - E > > "@ Edwin" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Lots of ways

[PHP] What to use for multilanguage

2002-09-30 Thread Uros Gruber
Hi! I'm developing some CMS engine and right now i'm at designing multilanguage feature. I nee some advices what is the best way to solve this. What is with memory because if i have some big language files etc. What to use, pure php, db, gettext. What about speed. Any ideas would be good.

RE: [PHP] general apache list

2002-09-30 Thread Chuck Payne
apache.org or on Google for Apache Today, I think it apachetoday.org. There you will find your list. Chuck Payne -Original Message- From: electroteque [mailto:[EMAIL PROTECTED]] Sent: Monday, September 30, 2002 10:45 AM To: [EMAIL PROTECTED] Subject: [PHP] general apache list where can

RE: [PHP] Security and register globals

2002-09-30 Thread ed
I think I would rather do it using a new table than have to handle sessions. It actually sounds harder to do it this way but I like hard. :) Thanks, Ed On Mon, 30 Sep 2002, John W. Holmes wrote: > > It would be possible to do this if I then created another table to > load > > their profile

SV: SV: [PHP] Quickie

2002-09-30 Thread Daniel Alsén
Thanks guys! That did the trick. Time to study these sessions a bit more thourough it seems :) Another thing - the first time the page is loaded every link on the page gets a '?PHPSESSID=...etc...' attached to itself. But only the first time. It dissapears after the first click i make. I've neve

Re: [PHP] Re: mail headers & filtering

2002-09-30 Thread Debbie Dyer
Hi Henry "I think that we just have to accept that emails can no longer be relied upon." <- yes I know we all want to stop spam but when you rely on email to automate signups, speak to customers etc..it's a Good luck finding your javascript encoder Debbie - Original Message -

Re: [PHP] checking if a MySQL update worked

2002-09-30 Thread Marek Kilimajer
mysql_error() will contain error text if "it didn't work" Henry wrote: >Hi All, > >mysql_affected_rows() returns zero if you update without changing the data >in a database record. How do you tell the difference betwix "it worked but >nothing changed" as opposed to "it didn't work"? > >TIA > >He

Re: SV: [PHP] Quickie

2002-09-30 Thread Marek Kilimajer
Your session variable overwrites the get variable, use $newlang session_start(); session_register("lang"); if(isset($newlang) $lang=$newlang; // check here for valid values if (!isset($lang)) { $lang = 'se'; } Daniel Alsén wrote: >John W. Holmes propably said: > > > >>Is register globals on

RE: [PHP] Quickie

2002-09-30 Thread John W. Holmes
> John W. Holmes propably said: > > > Is register globals on or off? > > On. > > Now - without doing anything - i managed to change the value of $lang to > 'en' with a link (pagesname.php?lang=en). But i can't change it back with > ?lang=se. Should i get someting to eat to get my brain working?

RE: [PHP] eregi_replace and regular expressions

2002-09-30 Thread John W. Holmes
> I am trying to add html code using php on the fly while uploading web > pages > to our database. All of my replace functions seem to work well except > one. > I am trying to add a tag after the body tag. It is easy to find > the body tag because there is only one " having a terrible time tryi

[PHP] Re: mail headers & filtering

2002-09-30 Thread Debbie Dyer
Jon Thanks but I already did all that - I first noticed it a while ago when people signing up on my site (and having to respond to a confirmation mail) were complaining that they never received the confirmation mail - not all people just a percentage. I tried manually emailing one of these email

RE: [PHP] image viewing in the mail client

2002-09-30 Thread Steven
Question: Do you need to authenticate to a web proxy type server / firewall to view web pages. In our configuration, if you do not authenticate to our proxy server, you are not only blocked from surfing the web, but any e-mail with images embedded via HTML is also blocked. To view the e-mail pro

[PHP] eregi_replace and regular expressions

2002-09-30 Thread Eric Dean
Hello all, I am trying to add html code using php on the fly while uploading web pages to our database. All of my replace functions seem to work well except one. I am trying to add a tag after the body tag. It is easy to find the body tag because there is only one "". So here is what I've trie

[PHP] Re: mail headers & filtering

2002-09-30 Thread Henry
Hi Debbie et.al. I think that we just have to accept that emails can no longer be relied upon. How about somebody making a javascript email encoder so that if you use a javascript enabled mail client it will get decoded only once it arrives with the recipient. With a link for those people withou

SV: [PHP] Quickie

2002-09-30 Thread Daniel Alsén
John W. Holmes propably said: > Is register globals on or off? On. Now - without doing anything - i managed to change the value of $lang to 'en' with a link (pagesname.php?lang=en). But i can't change it back with ?lang=se. Should i get someting to eat to get my brain working? - D -- PHP

[PHP] checking if a MySQL update worked

2002-09-30 Thread Henry
Hi All, mysql_affected_rows() returns zero if you update without changing the data in a database record. How do you tell the difference betwix "it worked but nothing changed" as opposed to "it didn't work"? TIA Henry -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: h

RE: [PHP] Quickie

2002-09-30 Thread John W. Holmes
Is register globals on or off? ---John Holmes... > -Original Message- > From: Daniel Alsén [mailto:[EMAIL PROTECTED]] > Sent: Monday, September 30, 2002 12:19 PM > To: php general > Subject: [PHP] Quickie > > Guys, > > i've been away for a while - enjoying a much needed vacation in lov

[PHP] Quickie

2002-09-30 Thread Daniel Alsén
Guys, i've been away for a while - enjoying a much needed vacation in lovely Hungary and expanding my company. Now im back to bother you with easy questions ;) I am doing a small site multilingual and will display different content depending on what language the user choses. When the user comes

[PHP] Justing->PDF creation......

2002-09-30 Thread Ryan A
Hey, Thanks, the online tool at Adobe worked great. Cheers, -Ryan.

  1   2   >