[PHP] RSS/RDF generator

2004-05-22 Thread electroteque
Hi there, I was wondering if there is a standard pear class like the XML_Tree to build RSS/RDF documents from the database ? Let me know -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] FreeBSD and phpize

2004-05-22 Thread Curt Zirzow
* Thus wrote Justin Hendrickson ([EMAIL PROTECTED]): FreeBSD and phpize have never cooperated with me. The phpize script requires a number of files, like automake, autoconf, libtool, ect, however FreeBSD installs these files as automake14, autoconf253 and libtool14. Has anyone out there

[PHP] Re: Searching a file

2004-05-22 Thread Torsten Roehr
Ian Barnes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, [code] $file=file(/ian/testing.file); file://Load the file into array unset($file[0]); file://Remove the first #gc line foreach($file as $line){ // Run through each array line $array[]=explode(,,

[PHP] Re: RSS/RDF generator

2004-05-22 Thread Torsten Roehr
Electroteque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi there, I was wondering if there is a standard pear class like the XML_Tree to build RSS/RDF documents from the database ? Let me know You just had to go to pear.php.net and type rss into the search form - not too much

[PHP] Re: Searching a file

2004-05-22 Thread Torsten Roehr
Ian Barnes [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, [code] $file=file(/ian/testing.file); file://Load the file into array unset($file[0]); file://Remove the first #gc line foreach($file as $line){ // Run through each array line $array[]=explode(,,

RE: [PHP] Re: RSS/RDF generator

2004-05-22 Thread electroteque
You just had to go to pear.php.net and type rss into the search form - not too much effort, right? http://pear.php.net/package/XML_RSS Regards, Torsten Hi there, if you read my email properly build RSS/RDF, not parse. Or is it something we have to hack up with XML_Tree ? -- PHP General

Re: [PHP] Re: RSS/RDF generator

2004-05-22 Thread Torsten Roehr
Electroteque [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] You just had to go to pear.php.net and type rss into the search form - not too much effort, right? http://pear.php.net/package/XML_RSS Regards, Torsten Hi there, if you read my email properly build RSS/RDF, not

Re: [PHP] Detect if a file is hidden or not (win32)

2004-05-22 Thread Burhan Khalid
Simon Fredriksson wrote: Is there any built-in function to find out if a file/directory is hidden in Win32? Not a function in PHP, but you just need to execute : dir /a:h to find all hidden files in a directory. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Cpanel accounting library

2004-05-22 Thread Burhan Khalid
Jordi Canals wrote: Hi all, Cpanel is a control panel to manage accounts for ISP's (And espcially ISP's resellers). I knnow there is some librarys to directly manage the accounts from PHP-Scripts and I got some very small and undocummented samples. I'm working on some scripts to manage the

[PHP] concatenating strings

2004-05-22 Thread Bill Freeburg
how do I add newline commands in the middle of a text string? I'm sending an email with the function mail($sendto,$subject,$message,$headers) The message is $message = My name is . $myname . My favorite color is . $color; How do I write it so the email message text is on two lines, My name

Re: [PHP] concatenating strings

2004-05-22 Thread Richard Davey
Hello Bill, Saturday, May 22, 2004, 11:43:17 AM, you wrote: BF how do I add newline commands in the middle of a text string? BF How do I write it so the email message text is on two lines, BF My name is BILL BF My favorite color is RED $message = My name is . $myname . \nMy favorite color is

[PHP] Re: concatenating strings

2004-05-22 Thread Torsten Roehr
Bill Freeburg [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] how do I add newline commands in the middle of a text string? I'm sending an email with the function mail($sendto,$subject,$message,$headers) The message is $message = My name is . $myname . My favorite color is .

[PHP] curl_execute() hangs

2004-05-22 Thread Kani
hi, my system hangs when i execute cuel_execute($ch); i guess the reason is the version... i want to upgrade to CURL 7.9.8 or later in my shared server environment on my LINUX server.. some one please guide me to upgrade to the latest... please. since i am new to this please give a

Re: [PHP] concatenating strings

2004-05-22 Thread Matt
From: Richard Davey [EMAIL PROTECTED] Saturday, May 22, 2004 6:46 AM Subject: Re: [PHP] concatenating strings BF how do I add newline commands in the middle of a text string? $message = My name is . $myname . \nMy favorite color is . $color; \n = new line Also \n only works in double

Re: [PHP] Re: Decompressing files via php

2004-05-22 Thread Kim Steinhaug
There is some ZIP classes on phpclasses.org that work very well, you dont need to install anything on the server aswell as all code is included in the class. -- -- Kim Steinhaug -- There are 10 types of people when it comes to

[PHP] download security

2004-05-22 Thread mattias lundberg
Hi! Why isn't there any way to verify the authenticity of downloadable files, like you can do on apache.org where there are PGP hashes for each file? I know that there are MD5 sums on the website, but I can't assume that the webpage is not spoofed. There doesn't seem to be any SSL connection to

Re: [PHP] FreeBSD and phpize

2004-05-22 Thread Justin Hendrickson
I actually did try symlinking them at one point, but it still refused to work. I'll give it another try and see if it works or not. My mistake listing autoconf253 as the version I was using. I'm actually using autoconf213, I just didn't check before posting that. -- PHP General Mailing List

[PHP] bg execution

2004-05-22 Thread Martin Helie
Hello, I need to start a php-based socket server that doesn't die if the client closes their browser window. Is there another (maybe cleaner) method to accomplish this, other than exec('bash -c exec nohup setsid php server.php /dev/null 21 '); ? Thanks -- PHP General Mailing List

[PHP] Re: RSS/RDF generator

2004-05-22 Thread Manuel Lemos
Hello, On 05/22/2004 03:20 AM, Electroteque wrote: Hi there, I was wondering if there is a standard pear class like the XML_Tree to build RSS/RDF documents from the database ? Let me know You may want to try this class: http://www.phpclasses.org/rsswriter You will also need this:

[PHP] mod_php + oracle

2004-05-22 Thread André Ventura Lemos
Though I have: OCI8 Supportenabled Revision$Revision: 1.183.2.12 $ Oracle Version 10.1 Compile-time ORACLE_HOME/opt/oracle/product/10.1.0/db_1 Libraries Used no value and

[PHP] Re: bg execution

2004-05-22 Thread Martin Geisler
[EMAIL PROTECTED] (Martin Helie) writes: Hello, I need to start a php-based socket server that doesn't die if the client closes their browser window. Is there another (maybe cleaner) method to accomplish this, other than exec('bash -c exec nohup setsid php server.php /dev/null 21 '); I

[PHP] Re: Newbie error with cookies and headers already declared

2004-05-22 Thread Martin Geisler
[EMAIL PROTECTED] (Chris W. Parker) writes: 2. you cannot create/write a session value after you send any html output to the client. That's not entirely true --- you just have to call session_start() before any HTML output is sent to the browser, for session_start() must be able to set the

[PHP] thanks

2004-05-22 Thread Bill Freeburg
Thanks. Those solutions work. Bill -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] email address Bill%40domain.com, hello+world

2004-05-22 Thread Bill Freeburg
A previous program is passing an email address to my code via method=post. When I print it, it looks like bill%40Domain.com instead of [EMAIL PROTECTED] Also, text comes in as Hello+World instead of Hello World. What's going on? I'm obviously missing something. I can't wait until I'm furthur

Re: [PHP] email address Bill%40domain.com, hello+world

2004-05-22 Thread John W. Holmes
Bill Freeburg wrote: A previous program is passing an email address to my code via method=post. When I print it, it looks like bill%40Domain.com instead of [EMAIL PROTECTED] Also, text comes in as Hello+World instead of Hello World. What's going on? I'm obviously missing something. I can't wait

[PHP] Random Record Retrieval

2004-05-22 Thread Robb Kerr
How's that for alliteration in a subject line? Got a simple MySQL table that contains records which are made up of only three fields - ID, quote and author. These are inspirational quotes that I want to appear at the bottom of the pages of my website. I want them to come up randomly with every

Re: [PHP] Random Record Retrieval

2004-05-22 Thread John W. Holmes
Robb Kerr wrote: These are inspirational quotes that I want to appear at the bottom of the pages of my website. I want them to come up randomly with every page load. SELECT * FROM table ORDER BY RAND() LIMIT 1 -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/

Re: [PHP] Random Record Retrieval

2004-05-22 Thread Daniel Clark
How about rand() on your ID column. http://www.php.net/manual/en/function.rand.php How's that for alliteration in a subject line? Got a simple MySQL table that contains records which are made up of only three fields - ID, quote and author. These are inspirational quotes that I want to appear

[PHP] Using php to modify a css file

2004-05-22 Thread Jednorozec Pokojowiec
I would like to use the same basic css file for different sites with some things changed for each site. Since I have the same color in a number of locations in the css file, changing all of them with a text editor is getting to be a bit of a pain. So I wrapped the file with ?php {some php

Re: [PHP] Using php to modify a css file

2004-05-22 Thread Michal Migurski
Then I added the following line to my .htaccess file AddType application/x-httpd-php .css It works just fine at my hosting company but I can't get it to work locally. Try fetching it with cUrl, or using Mozilla's view-headers feature. Make sure that the PHP is in fact being parsed, and that

Re: [PHP] Using php to modify a css file

2004-05-22 Thread Jednorozec Pokojowiec
On Sat, 22 May 2004 21:03:10 -0400 (EDT), [EMAIL PROTECTED] (Michal Migurski) wrote: Then I added the following line to my .htaccess file AddType application/x-httpd-php .css It works just fine at my hosting company but I can't get it to work locally. Try fetching it with cUrl, or using

[PHP] Piping new email to a PHP file

2004-05-22 Thread John
Hi, I'm sorry if this has been asked many times before but how do I pipe new email to a file instead of to a mailbox? I tried adding an alias to a file, but it bounced and said 'Can't write output', then I tried to pipe it to a program (the php interpreter) like this |php /home/php-script.php and

[PHP] How To Do This?

2004-05-22 Thread Justin Kozuch
Hey Everyone, I'm struggling with an application I'm building for a client. Depending on the person logged in, they have an authorization level attached to their profile (1 for Administrator, 2 for Manager, etc). When they successfully login, they are presented with a menu that is customized with

Re: [PHP] Piping new email to a PHP file

2004-05-22 Thread raditha dissanayake
John wrote: Hi, I'm sorry if this has been asked many times before but how do I pipe new email to a file instead of to a mailbox? I tried adding an alias to a file, but it bounced and said 'Can't write output', then I tried to pipe it to a program (the php interpreter) like this Which mail

Re: [PHP] bg execution

2004-05-22 Thread Evan Nemerson
On Saturday 22 May 2004 06:51 am, Martin Helie wrote: Hello, I need to start a php-based socket server that doesn't die if the client closes their browser window. php.net/pcntl Is there another (maybe cleaner) method to accomplish this, other than exec('bash -c exec nohup setsid php

[PHP] OS/PHP Picnic -- Wilmington, NC

2004-05-22 Thread Kenneth Schwartz
Hello all, I'm organizing an OS [Open Source]/PHP Picnic in Wilmington for the weekend of July 3rd and 4th. I've about fifteen people who have shown interest already, hoping to get at least thirty, sixty would be optimal. Plans include brief sessions (~30 minutes) about various OS/PHP topics

Re: [PHP] Using php to modify a css file

2004-05-22 Thread Michal Migurski
The reason for the two files is that My4CSS.css contains code that doesn't break Netscape 4 (people are still using that garbage) and MyCSS.css is the code that I want for decent browsers. Just doing the AddType without changing the css files at all breaks things locally. Without a ?php in

[PHP] Re: How To Do This?

2004-05-22 Thread Aidan Lister
Hi Justin, For future reference, your choice of subject is poor - be more descriptive, your subject could apply to 99% of the questions asked on this list. I have no idea what you've created in DW MX 2004, nor have you given us any information about it. If you have an authorisation level stored

Re: [PHP] Piping new email to a PHP file

2004-05-22 Thread Mark Pecaut
On Sun, May 23, 2004 at 03:59:54AM +0100, John wrote: Hi, I'm sorry if this has been asked many times before but how do I pipe new email to a file instead of to a mailbox? I tried adding an alias to a file, but it bounced and said 'Can't write output', then I tried to pipe it to a program