[PHP] how to use php from mysql to xml

2008-01-05 Thread Yang Yang
hi,everyone,i am a newbuy for php world and i have a problem when i study php i want to make a script,it works for: a mysql table,like title authorcontentdate a1a2 a3 a4 b1b2 b3b4 .. and i want to use php ,select

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-05 Thread chris smith
Once it settles down, it will run every Friday at 4:00p to summarize the week. For bragging rights, to keep track of how much time you've spent doing community service or whatever else. Why? Does anybody really care how many emails they send to the list? While I don't doubt your good

Re: [PHP] how to use php from mysql to xml

2008-01-05 Thread chris smith
On Jan 5, 2008 9:14 PM, Yang Yang [EMAIL PROTECTED] wrote: hi,everyone,i am a newbuy for php world and i have a problem when i study php i want to make a script,it works for: a mysql table,like title authorcontentdate a1a2 a3 a4 b1b2 b3

[PHP] menu andfolder question

2008-01-05 Thread Alain Roger
Hi, Serveral web sites have a menu and when you pass your mouse over a link, the browser statusbar only shows the folder where is located the file link, not the complete address including the file link. i mean if you take web site : http://www.zend.com/en/ when you pass your mouse cursor over

Re: [PHP] menu andfolder question

2008-01-05 Thread chris smith
On Jan 5, 2008 10:23 PM, Alain Roger [EMAIL PROTECTED] wrote: Hi, Serveral web sites have a menu and when you pass your mouse over a link, the browser statusbar only shows the folder where is located the file link, not the complete address including the file link. i mean if you take web

Re: [PHP] menu andfolder question

2008-01-05 Thread Alain Roger
ok, maybe i did not write my question well. i already used it because i setup the DirectoryIndex to index.php, index.html my concern for now, how to have the same behavior on my local computer (development computer) ? my computer has IP 200.170.1.2 (for example) so in my brower i type :

Re: [PHP] menu andfolder question

2008-01-05 Thread chris smith
On Jan 5, 2008 10:36 PM, Alain Roger [EMAIL PROTECTED] wrote: ok, maybe i did not write my question well. i already used it because i setup the DirectoryIndex to index.php, index.html my concern for now, how to have the same behavior on my local computer (development computer) ? my computer

[PHP] Re: menu andfolder question

2008-01-05 Thread John Gunther
Unless I misunderstand your question, this is normal behavior. The page designer purposely enters the link in the simpler form: http://www.zend.com/en/company because the web server is configured to assume that index.htm is the default page in that folder and correctly displays it. Alain

Re: [PHP] problem sending emamil across one postfix server

2008-01-05 Thread Miren Urkixo
Now i have chage the php scripts with the bellow script but appears the bellow error. Can anybody helps me please. I don't know how can i solve mi proble for sending emails using php againts one postfix into one SuSE linux. Thnaks //script ?php $para = '[EMAIL PROTECTED]'; $asunto=

[PHP] Delete rows from database

2008-01-05 Thread Balasubramanyam A
Hi all, I'm searching names from MySQL and printing it on a browser. Also, I've provided checkbox for all the rows and a delete button for a page. I want to delete the selected rows from MySQL when I click on the Delete button. How do I do that? Here is the code which I used to print the rows

[PHP] http_request

2008-01-05 Thread peeyush gulati
Greetings on New Year :) We have a script, say layer.php, which uses HTTP_REQUEST package to authenticate a user to an existing application (viz., wordpress, mediawiki etc.) I would like help on the following two fronts: 1. How do I return the cookies, headers etc. from the layer (which are

Re: [PHP] Delete rows from database

2008-01-05 Thread Per Jessen
Balasubramanyam A wrote: Hi all, I'm searching names from MySQL and printing it on a browser. Also, I've provided checkbox for all the rows and a delete button for a page. I want to delete the selected rows from MySQL when I click on the Delete button. How do I do that? You process the

Re: [PHP] Delete rows from database

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 9:03 AM, Balasubramanyam A [EMAIL PROTECTED] wrote: Hi all, Hi! [snip] while ($line = mysql_fetch_array($resultset, MYSQL_ASSOC)) { [snip] Just a side note: wouldn't it be easier to just use mysql_fetch_assoc() ? It does the exact same thing, with less typing. --

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-05 Thread Daniel Brown
Had everything gone as it was supposed to, I think it would've been welcomed with open arms. Unfortunately, my stupid ass flipped the wrong flag while testing for approximately an hour, which sent posts to the list every minute for one hour. However, they weren't coming through at the time,

Re: [PHP] http_request

2008-01-05 Thread Dave Goodchild
Also, supply an absolute URL when using header redirects. On Jan 5, 2008 3:44 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 5, 2008 9:06 AM, peeyush gulati [EMAIL PROTECTED] wrote: Greetings on New Year :) To you, as well! We have a script, say layer.php, which uses HTTP_REQUEST

Re: [PHP] http_request

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 9:06 AM, peeyush gulati [EMAIL PROTECTED] wrote: Greetings on New Year :) To you, as well! We have a script, say layer.php, which uses HTTP_REQUEST package to authenticate a user to an existing application (viz., wordpress, mediawiki etc.) I would like help on the

Re: [PHP] need opinions regarding php.ini

2008-01-05 Thread Afan Pasalic
That was my thought too, but, when I create new folder - it will automatically create php.ini inside and there is no point of deleting them. HOW insecure it is? Because, since you know there is php.ini you can easy open every of them (http://mydomain.com/gallery/images/php.ini) and look.

Re: [PHP] need opinions regarding php.ini

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 2:35 AM, Afan Pasalic [EMAIL PROTECTED] wrote: hi, after my host moved my account from old server (shared hosting) with php 4.4.7, mysql 4.x to new one with php 5.x and mysql 5.x. nice. they did it fast and without problems. but then I realized that every folder has it's own

Re: [PHP] http_request

2008-01-05 Thread Dave Goodchild
It's advisable as the page you will be redirected to will be relative to the one the browser actually requested, so it's a good habit to get into. On Jan 5, 2008 4:05 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 5, 2008 10:59 AM, Dave Goodchild [EMAIL PROTECTED] wrote: Also, supply an

Re: [PHP] http_request

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 10:59 AM, Dave Goodchild [EMAIL PROTECTED] wrote: Also, supply an absolute URL when using header redirects. That's not necessary, as far as I know. Relative redirections have always worked just fine. -- Daniel P. Brown [Phone Numbers Go Here!] [They're Hidden From View!]

Re: [PHP] menu andfolder question

2008-01-05 Thread Alain Roger
this is how i solved my issue :-) On Jan 5, 2008 4:28 PM, jeffry s [EMAIL PROTECTED] wrote: On Jan 5, 2008 7:36 PM, Alain Roger [EMAIL PROTECTED] wrote: ok, maybe i did not write my question well. i already used it because i setup the DirectoryIndex to index.php, index.html my

Re: [PHP] http_request

2008-01-05 Thread peeyush gulati
Thank you will do that Ok can i redirect the response to the browser from the layer after my layer has recieved the response from the application. On Jan 5, 2008 10:05 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Jan 5, 2008 11:14 AM, peeyush gulati [EMAIL PROTECTED] wrote: Thank you for

Re: [PHP] need opinions regarding php.ini

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 11:20 AM, Afan Pasalic [EMAIL PROTECTED] wrote: That was my thought too, but, when I create new folder - it will automatically create php.ini inside and there is no point of deleting them. HOW insecure it is? Because, since you know there is php.ini you can easy open every of

Re: [PHP] http_request

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 11:14 AM, peeyush gulati [EMAIL PROTECTED] wrote: Thank you for the reply But i am not asking for simple rediredtion. I am aware of the (header:Location:url); From a layer i am sending a http_request to an existing application, now the application will response back to the

[PHP] Re: website tree

2008-01-05 Thread John Gunther
Get the various parts from the $_SERVER superglobal variable: 1) scheme (e.g. http://) from $_SERVER['HTTPS'] (https if on) 2) host:port (e.g. bucksvsbytes.com) from $_SERVER['HTTP_HOST'] 3) /path/page?query part (e.g. /catalog/index.php?pid=444) from $_SERVER['REQUEST_URI'] John Gunther Alain

Re: [PHP] website tree

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 12:06 PM, Alain Roger [EMAIL PROTECTED] wrote: Hi, let's imaging we have the following thing : www.mywebsite.com/company/index.php www.mywebsite.com/company/profile.php www.mywebsite.com/services/index.php how can i detect in which address am i ? for example how to

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 12:05 PM, Børge Holen [EMAIL PROTECTED] wrote: On Saturday 05 January 2008 16:31:49 Daniel Brown wrote: Had everything gone as it was supposed to, I think it would've been welcomed with open arms. Unfortunately, my stupid ass flipped the wrong flag while testing for

Re: [PHP] http_request

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 11:41 AM, peeyush gulati [EMAIL PROTECTED] wrote: Thank you will do that Ok can i redirect the response to the browser from the layer after my layer has recieved the response from the application. Absolutely. That's the same premise under which the PayPal IPN works. The

[PHP] website tree

2008-01-05 Thread Alain Roger
Hi, let's imaging we have the following thing : www.mywebsite.com/company/index.php www.mywebsite.com/company/profile.php www.mywebsite.com/services/index.php how can i detect in which address am i ? for example how to retrieve www.mywebsite.com/services or www.mywebsite.com/company -- Alain

Re: [PHP] Posting Summary for Week Ending 4 January, 2008: php-general@lists.php.net

2008-01-05 Thread Børge Holen
On Saturday 05 January 2008 16:31:49 Daniel Brown wrote: Had everything gone as it was supposed to, I think it would've been welcomed with open arms. Unfortunately, my stupid ass flipped the wrong flag while testing for approximately an hour, which sent posts to the list every minute for

Re: [PHP] Login script problem

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 11:50 AM, Reese [EMAIL PROTECTED] wrote: Daniel Brown wrote: Do you expect the value of $key in this condition to be a literal zero? $twoyears = array('alphanumeric_code1', 'alphanumeric_code2', 'alphanumeric_code3', 'alphanumeric_code4',

[PHP] PHTML files showing as blank pages

2008-01-05 Thread A.smith
Hi, I'm having a problem getting .phtml files to display in a web browser. I can successfully display a test.php page as per PHP install instructions but the phtml files show up blank (in firefox or IE). I have added these entries to my apache httpd.conf: LoadModule php5_module

Re: [PHP] PHTML files showing as blank pages

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 9:39 AM, A.smith [EMAIL PROTECTED] wrote: Hi, I'm having a problem getting .phtml files to display in a web browser. I can successfully display a test.php page as per PHP install instructions but the phtml files show up blank (in firefox or IE). I have added these entries

[PHP] Problem viewing phtml files

2008-01-05 Thread A.smith
Hi, I'm having a problem getting .phtml files to display in a web browser. I can successfully display a test.php page as per PHP install instructions but the phtml files show up blank (in firefox or IE). I have added these entries to my apache httpd.conf: LoadModule php5_module

RE: [PHP] which window?

2008-01-05 Thread Bastien Koert
this would be an html / js issue... why have a popup login in this case? just show the logon in the main window and then do the redirect... bastien To: php-general@lists.php.net From: [EMAIL PROTECTED] Date: Sat, 5 Jan 2008 10:17:55 -0800

RE: [PHP] PHTML files showing as blank pages

2008-01-05 Thread Bastien Koert
Andy, try this AddHandler php5-script .php .phtml #AddType text/html .php .phtml AddType application/x-httpd-php .php .phtml .html .htm bastien Date: Sat, 5 Jan 2008 14:39:49 + To: php-general@lists.php.net From: [EMAIL PROTECTED] Subject:

[PHP] which window?

2008-01-05 Thread jekillen
Hello; I have a login panel that is opened as a javascript window. In the processing script, a successful login uses the header function to send the user to the restricted content index page. But this page is loading into the javascript window instead of the opener window of the browser. Is it

Re: [PHP] PHTML files showing as blank pages

2008-01-05 Thread A.smith
- Original Message From: Daniel Brown [EMAIL PROTECTED] To: A.smith [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] PHTML files showing as blank pages Date: 05/01/08 17:48 A decent HOWTO to setup Apache2 and PHP5 on *nix systems:

RE: [PHP] PHTML files showing as blank pages

2008-01-05 Thread A.smith
Hi Bastien, thanks for the suggestion, unfortunately I still have no page displayed... thanks Andy. - Original Message From: Bastien Koert [EMAIL PROTECTED] To: A.smith [EMAIL PROTECTED], php-general@lists.php.net php-general@lists.php.net Subject: RE: [PHP] PHTML files

Re: [PHP] PHTML files showing as blank pages

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 1:50 PM, A.smith [EMAIL PROTECTED] wrote: Hi Bastien, thanks for the suggestion, unfortunately I still have no page displayed... thanks Andy. Are you restarting Apache after you've made the changes? Every time you modify php.ini or httpd.conf, you have to restart

Re: [PHP] Login script problem

2008-01-05 Thread Reese
Daniel Brown wrote: if(!isset($key=='1')) //caused parse error That's because isset() isn't able to eval() an expression. Got it, I see the mistake now. Remove the !isset() part, or the =='1' part and that will remove the parse error. I changed it to if(!isset($key)) and

[PHP] login and read ad email

2008-01-05 Thread Yui Hiroaki
HI! I try to login and read ad email in server. Does any one know how to do this? Below does not run correctly. Regards, Yui p.s I try to see pop3 email. I can not find the example! ?php $host = abc.com; $port = 110; $user ='[EMAIL PROTECTED]'; $pwd ='password'; $fp = fsockopen($host,

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-05 Thread Nisse Engström
On Sat, 5 Jan 2008 01:08:13 -0500, tedd wrote: At 1:41 AM +0100 1/5/08, Nisse Engström wrote: On Fri, 4 Jan 2008 09:16:54 -0500, tedd wrote: At 10:33 AM +0100 1/4/08, Nisse Engström wrote: On Thu, 3 Jan 2008 12:39:36 -0500, tedd wrote: Nisse: Thanks again for your time and guidance.

Re: [PHP] login and read ad email

2008-01-05 Thread Børge Holen
On Saturday 05 January 2008 22:06:47 Yui Hiroaki wrote: HI! I try to login and read ad email in server. Does any one know how to do this? Below does not run correctly. right, the line: if( !eregi(OK, $line) ) // login faile?if( !eregi(OK, $line) ) //ogin faile? it looks just like this?

Re: [PHP] PHTML files showing as blank pages

2008-01-05 Thread Casey
On Jan 5, 2008, at 10:50 AM, A.smith [EMAIL PROTECTED] wrote: Hi Bastien, thanks for the suggestion, unfortunately I still have no page displayed... thanks Andy. - Original Message From: Bastien Koert [EMAIL PROTECTED] To: A.smith [EMAIL PROTECTED],

Re: [PHP] which window?

2008-01-05 Thread Casey
Try adding target=_top or target=_parent to the form element in HTML. On 1/5/08, Bastien Koert [EMAIL PROTECTED] wrote: this would be an html / js issue... why have a popup login in this case? just show the logon in the main window and then do the redirect... bastien

Re: [PHP] First stupid post of the year. [SOLVED]

2008-01-05 Thread Daniel Brown
On Jan 5, 2008 5:04 PM, Nisse Engström [EMAIL PROTECTED] wrote: [snip!] The page encoding is determined by the HTTP `Content-Type:´ header. Period. [snip=again] Negative. If that were the case, what would be the sense in providing browser encoding translation? Have you noticed, for

Re: [PHP] PHTML files showing as blank pages

2008-01-05 Thread Brady Mitchell
On Jan 5, 2008, at 639AM, A.smith wrote: I'm having a problem getting .phtml files to display in a web browser. I can successfully display a test.php page as per PHP install instructions but the phtml files show up blank (in firefox or IE). A blank page often means that there's an error

[PHP] HTML form upload works, CURL fails when uploading file from c:

2008-01-05 Thread John Gunther
PHP 5.2.1 on Apache/Linux. Client is Firefox and IE7 on Windows XP. Uploading C:\boot.ini works great from an HTML type=file form element but fails using what should be the equivalent: curl_setopt($ch,CURLOPT_POSTFIELDS,array('peru'='@C:/boot.ini')); CURL error is failed creating formpost

[PHP] Re: HTML form upload works, CURL fails when uploading file from c:

2008-01-05 Thread John Gunther
Well, dope slap I think I understand the problem now: CURL is operating from the server so it knows nothing about C: on the client! So how do I solve my problem? I want to upload multiple files from C: to the server based on a single wildcard spec typed into an HTML form by the user. John

RE: [PHP] Re: HTML form upload works, CURL fails when uploading file from c:

2008-01-05 Thread Andrés Robinet
-Original Message- From: John Gunther [mailto:[EMAIL PROTECTED] Sent: Saturday, January 05, 2008 8:57 PM To: php-general@lists.php.net Subject: [PHP] Re: HTML form upload works, CURL fails when uploading file from c: Well, dope slap I think I understand the problem now: CURL is

[PHP] Execute a script from command line on a Linux system with Plesk (safe mode)

2008-01-05 Thread Leonidas Safran
Hello, I am trying to execute this script (from command line): function getMailboxSize($domain, $mailbox){ // Maildirectories are stored under /var/qmail(mailnames/domain/mailuser $path = /var/qmail/mailnames/ . $domain . / . $mailbox; $size = shell_exec(cd . $path . ;du -bc * | grep total |

[PHP] client time zone?

2008-01-05 Thread jekillen
Hello; I am running a server that is using UTC and I want to be able to convert to clients local time in some display presentations. Is this indicated by $_SERVER[REQUEST_TIME]? If not, is there a way to get the requesting host's time zone so I can offset the servers clock value correctly? Thank

[PHP] Execute a script from command line on a Linux system with Plesk (safe mode) [solved]

2008-01-05 Thread Leonidas Safran
Hello, I found it myself... I just start php in command line with --php-ini other_php.ini where I set safe_mode Off. Bye :) -- GMX FreeMail: 1 GB Postfach, 5 E-Mail-Adressen, 10 Free SMS. Alle Infos und kostenlose Anmeldung: http://www.gmx.net/de/go/freemail -- PHP General Mailing List

Re: [PHP] which window?

2008-01-05 Thread jekillen
On Jan 5, 2008, at 3:09 PM, Casey wrote: Try adding target=_top or target=_parent to the form element in HTML. On 1/5/08, Bastien Koert [EMAIL PROTECTED] wrote: this would be an html / js issue... why have a popup login in this case? just show the logon in the main window and then do

Re: [PHP] how to use php from mysql to xml

2008-01-05 Thread Nathan Nobbe
On Jan 5, 2008 5:14 AM, Yang Yang [EMAIL PROTECTED] wrote: hi,everyone,i am a newbuy for php world and i have a problem when i study php i want to make a script,it works for: a mysql table,like title authorcontentdate a1a2 a3 a4 b1b2 b3