[PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Suamya Srivastava
Hello, How can I pass variables on clicking a hyperlink to a PHP script? I have 5 hyperlinks, all pointing to the same PHP script. However, on clicking each hyperlink a different value of the variable needs to be passed to the PHP script. i.e. I have 5 databases from which I want to obtain

Re: [PHP] PHP and SOAP calls

2007-08-24 Thread Angelo Zanetti
Paul Scott wrote: On Fri, 2007-08-24 at 07:55 +0200, Angelo Zanetti wrote: I have been using nusoap to development a client that makes SOAP calls to a server. I have however been stuck on a small issue but can't seem to solve it and therefore I need to relook at using another package to

Re: [PHP] PHP and SOAP calls

2007-08-24 Thread Paul Scott
On Fri, 2007-08-24 at 07:55 +0200, Angelo Zanetti wrote: I have been using nusoap to development a client that makes SOAP calls to a server. I have however been stuck on a small issue but can't seem to solve it and therefore I need to relook at using another package to get a solution.

Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
On 8/23/07, Suamya Srivastava [EMAIL PROTECTED] wrote: Hello, How can I pass variables on clicking a hyperlink to a PHP script? I have 5 hyperlinks, all pointing to the same PHP script. However, on clicking each hyperlink a different value of the variable needs to be passed to the PHP

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
On Fri, 24 Aug 2007 07:57:48 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: Dear all Im using nusoap to create a cleint and I am having a small issue but its a fairly large one because I cant get the correct XML to send. I have a scenario as follows: My client:

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Goltsios Theodore
I think that you can also do that buy making a drop down list with the available databases and pass the chosen database to another (or perhaps the same) script and make the queries and output results there. You can catch the posted or got option buy using the $_REQUEST array ($_GET and

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
On 8/24/07, Goltsios Theodore [EMAIL PROTECTED] wrote: the posted or got option buy using the $_REQUEST array ($_GET and $_POST are included in that like a less lame solution). Let's say you have a Please do not encourage the use of $_REQUEST. You might as well just tell people to enable

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Goltsios Theodore
I thought I just did a comment and suggested that it is a lame solution to use $_REQUEST plus I did not know witch of the two method (POST or GET) would be appropriate so I picked up the lame way :-) . mike wrote: On 8/24/07, Goltsios Theodore [EMAIL PROTECTED] wrote: the posted or got

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Angelo Zanetti
Thijs Lensselink wrote: On Fri, 24 Aug 2007 07:57:48 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: Dear all Im using nusoap to create a cleint and I am having a small issue but its a fairly large one because I cant get the correct XML to send. I have a scenario as follows: My client:

Re: [PHP] Spam Post Defense / ID spam form posts

2007-08-24 Thread Stut
Instruct ICC wrote: Because that means messing with the recipient list - that's donkey work your client should do, hence my use of reply-to-all. Wouldn't gmail thread it but still have 2 copies? I could send email TO/CC/BCC the list to a specific folder, but I'd still get the copy to me

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Angelo Zanetti
It's probably better to ask on a NuSOAP list. The call method needs an array with parameters as far as i remember. But i never use the call method anyway. I always go for the send method. First create your request XML. $request = 'SubscriptionStatus xmlns='http://localhost/'

[PHP] Re: CURL receiving content data

2007-08-24 Thread Brian Rue
Bruce, I tried using curl to just get the feed and it worked ok: $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'http://api.beta.blogs.aol.com/bsteinback0224/service.xml'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_HEADER, 1); print curl_exec($ch); My guess would

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Suamya Srivastava
Thank you all for the help. I did not want to use dropdown box..that was the very reason i was wondering if I can pass the variables through a hyperlink. I used $_GET and it worked fine. However, as mentioned in the posts its not advisable to use $_REQUEST. Could you please elaborate on the

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Angelo Zanetti
Thijs Lensselink wrote: On Fri, 24 Aug 2007 07:57:48 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: Dear all Im using nusoap to create a cleint and I am having a small issue but its a fairly large one because I cant get the correct XML to send. I have a scenario as follows: My client:

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
On Fri, 24 Aug 2007 11:53:12 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: It's probably better to ask on a NuSOAP list. The call method needs an array with parameters as far as i remember. But i never use the call method anyway. I always go for the send method. First create your request

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Brian Rue
In this case $_POST would be the appropriate array, since your form is using the POST method: form method=post Goltsios Theodore wrote: I thought I just did a comment and suggested that it is a lame solution to use $_REQUEST plus I did not know witch of the two method (POST or GET)

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Angelo Zanetti
Thijs Lensselink wrote: On Fri, 24 Aug 2007 11:53:12 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: It's probably better to ask on a NuSOAP list. The call method needs an array with parameters as far as i remember. But i never use the call method anyway. I always go for the send method.

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Suamya Srivastava
Hi.. in the settings, session.use_cookies is turned ON but session.trans_sid is turned OFF. do i need to enable this as well? by doing this can i disable the register_globals? - suamya Hi Me again Check on Your setting - ; Whether to use cookies.

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
On Fri, 24 Aug 2007 12:39:06 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: Thijs Lensselink wrote: On Fri, 24 Aug 2007 11:53:12 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: It's probably better to ask on a NuSOAP list. The call method needs an array with parameters as far as i

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Johan de Wit
Hi Me again Check on Your setting - ; Whether to use cookies. session.use_cookies = 1 session variable is saved here if the user have cookies turned off it will still work if your have trans-sid turn on. BTW you don't have to use a dropdown radio buttons or

[PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread Johan de Wit
Hi I have sessions working like a charm, i use it for my user login vars and so on, here is the settings i used. register_globals = Off session.use_cookies = 1 and switch on session.trans_sid if you know that not all your users will have cookies turned on This worked for me Johan Suamya

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Angelo Zanetti
Thijs Lensselink wrote: On Fri, 24 Aug 2007 12:39:06 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: Thijs Lensselink wrote: On Fri, 24 Aug 2007 11:53:12 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: It's probably better to ask on a NuSOAP list. The call method needs

[PHP] Good php-news newsletter?

2007-08-24 Thread Bogdan Ribic
Hi all, I was wandering if anyone knows a good php newsletter, one where you would get a digest of interesting news libraries etc in your mailbox. You know, to keep you up-to-date and spark a few ideas without actively searching the net for it. Boban. -- PHP General Mailing List

RE: [PHP] Good php-news newsletter?

2007-08-24 Thread Edward Kay
I was wandering if anyone knows a good php newsletter, one where you would get a digest of interesting news libraries etc in your mailbox. You know, to keep you up-to-date and spark a few ideas without actively searching the net for it. This list is the best resource I've found for this

Re: [PHP] Good php-news newsletter?

2007-08-24 Thread Bogdan Ribic
Edward Kay wrote: I was wandering if anyone knows a good php newsletter, one where you would get a digest of interesting news libraries etc in your mailbox. You know, to keep you up-to-date and spark a few ideas without actively searching the net for it. This list is the best resource I've

RE: [PHP] Good php-news newsletter?

2007-08-24 Thread Edward Kay
Well, I'm already subscribed to this one :) Too much noise, newbie questions and stuff that I already know about. There's lots of valuable info but it needs to be plowed through. Also too many individual emails, I was looking for a daily / weekly digest. But thanx for the answer anyway.

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
On Fri, 24 Aug 2007 13:55:29 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: Thijs Lensselink wrote: On Fri, 24 Aug 2007 12:39:06 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: Thijs Lensselink wrote: On Fri, 24 Aug 2007 11:53:12 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: It's

RE: [PHP] SQL Distinct-like behaviour

2007-08-24 Thread Bastien Koert
Read them all into an array and do an array-unique on it bastien Date: Thu, 23 Aug 2007 23:54:40 -0300 From: [EMAIL PROTECTED] To: php-general@lists.php.net Subject: [PHP] SQL Distinct-like behaviour How could I iterate over the files in a directory and build a list of unique filenames?

[PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Steve Brown
Recently, I've been doing a lot of benchmarking with Apache to compare different OSes and platforms. I did a stock install of Ubuntu 7.04 Server w/ Apache2 and PHP5. To do the test, I used ab to fetch the following document: html head titlePHP Web Server Test/title /head body ?php phpinfo(); ?

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Nathan Nobbe
what are the changes that supposedly make php5 faster than php4? when java went from the 1.4 series to the 5 series it became much faster. this is because of enhancements to the jitter mechanism for sure. i dont know what else they changed, but i know that had a great impact on the performance.

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
PHP5 being faster than PHP4 is greatly dependent on what features you use. I've consistently found PHP4 to be faster for my purposes also. Cheers, Rob. On Fri, 2007-08-24 at 11:38 -0400, Nathan Nobbe wrote: what are the changes that supposedly make php5 faster than php4? when java went from

[PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Jason Pruim
Hi Everyone, I'm attempting to figure out the proper way to use sessions to log someone into my system. The idea being, if they arn't logged in all they can see is the login form, and if they are logged in, they and have access to a database of addresses. I think I understand how to

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Daniel Brown
On 8/24/07, Jason Pruim [EMAIL PROTECTED] wrote: Hi Everyone, I'm attempting to figure out the proper way to use sessions to log someone into my system. The idea being, if they arn't logged in all they can see is the login form, and if they are logged in, they and have access to a database

Re: [PHP] nuSoap client SOAP Call problem

2007-08-24 Thread Thijs Lensselink
Angelo Zanetti wrote: Thijs Lensselink wrote: On Fri, 24 Aug 2007 07:57:48 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: Dear all Im using nusoap to create a cleint and I am having a small issue but its a fairly large one because I cant get the correct XML to send. I have a

Re: [PHP] Re: [PHP-DB] Re: [PHP] Passing variables to a PHP script on clicking a hyperlink

2007-08-24 Thread mike
On 8/24/07, Suamya Srivastava [EMAIL PROTECTED] wrote: Hi.. in the settings, session.use_cookies is turned ON but session.trans_sid is turned OFF. do i need to enable this as well? by doing this can i disable the register_globals? - suamya You need to make sure session_start() is called on

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Greg Donald
On 8/24/07, Steve Brown [EMAIL PROTECTED] wrote: The only difference I can figure is that PHP5 was the packaged version that comes with Ubuntu and I had to compile PHP4 from source since there is no package for it in Feisty. But I wouldn't expect a 50% increase as a result of that. Any

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Borokov Smith
Daniel Brown schreef: ? session_start(); if(!$_SESSION['user']) { if($_POST['user'] $_POST['pass']) { // Keep in mind, PASSWORD has meaning in MySQL // Do your string sanitizing here // (e.g. - $user = mysql_real_escape_string($_POST['user']);) $sql = SELECT * FROM

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Daniel Brown
On 8/24/07, Borokov Smith [EMAIL PROTECTED] wrote: [snip] A warrant about your example not being validated, will most likely not stop the OP from using this code as is, thereby subjecting himself to SQL injection. And all it needed was mysql_real_escape_string() in there. Kinda' like this

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
On Fri, 2007-08-24 at 12:24 -0500, Greg Donald wrote: On 8/24/07, Steve Brown [EMAIL PROTECTED] wrote: The only difference I can figure is that PHP5 was the packaged version that comes with Ubuntu and I had to compile PHP4 from source since there is no package for it in Feisty. But I

Re: [PHP] Good php-news newsletter?

2007-08-24 Thread Ben Ramsey
On 8/24/07 9:21 AM, Edward Kay wrote: http://www.planet-php.org/rss/ http://www.php-mag.net/magphpde/psecom,id,26,noeid,26,.html http://www.phpdeveloper.org/phpdev.rss And also try http://devzone.zend.com/. They have regular PHP community news, articles, and weekly summaries of activity within

[PHP] Re: [PHP-WIN] Confused

2007-08-24 Thread Gustav Wiberg
AHA.. Thanx :-) /Gustav - Original Message - From: John Mertic [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED] Cc: Aaron Kenney [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Friday, August 24, 2007 9:47 PM Subject: Re: [PHP-WIN] Confused Just grab the windows installer and

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Lester Caine
Greg Donald wrote: On 8/24/07, Steve Brown [EMAIL PROTECTED] wrote: The only difference I can figure is that PHP5 was the packaged version that comes with Ubuntu and I had to compile PHP4 from source since there is no package for it in Feisty. But I wouldn't expect a 50% increase as a result of

[PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
I swear, it was just working last week! Well, a while ago, on another machine. You get the idea. Here's the deal... PHP 5.1.6 and MySQL 5.x on FC6 fully patched. 1. A simple page with a call to phpinfo() works fine. 2. A barely more complicated page also works fine, in that it throws an

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread comex
On 8/24/07, Linux NG/Lists [EMAIL PROTECTED] wrote: b) Why does the error reporting NOT work as soon as I jam a $db new mysql call into the code? Because you disabled it with an '@'. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
comex wrote: On 8/24/07, Linux NG/Lists [EMAIL PROTECTED] wrote: b) Why does the error reporting NOT work as soon as I jam a $db new mysql call into the code? Because you disabled it with an '@'. Well, I suppose I should say Doh! but even when I get rid of the @, I still get a blank

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Borokov Smith
Daniel Brown schreef: On 8/24/07, Borokov Smith [EMAIL PROTECTED] wrote: [snip] A warrant about your example not being validated, will most likely not stop the OP from using this code as is, thereby subjecting himself to SQL injection. And all it needed was mysql_real_escape_string() in

Re: [PHP] Trying to understand sessions and using them to authenticate...

2007-08-24 Thread Daniel Brown
On 8/24/07, Borokov Smith [EMAIL PROTECTED] wrote: Daniel Brown schreef: On 8/24/07, Borokov Smith [EMAIL PROTECTED] wrote: [snip] A warrant about your example not being validated, will most likely not stop the OP from using this code as is, thereby subjecting himself to SQL

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Jim Lucas
Linux NG/Lists wrote: ?php error_reporting(E_ALL); ini_set('display_errors','On'); @ $db=new mysqli('localhost','whil','secret','test'); get rid of the @, it will squelch your error output if (mysqli_connect_errno()) {echo 'Error ­ could not connect to database.'; exit; } ? put something at

Re: [PHP] MySQL connect used to work PLUS errors not displaying

2007-08-24 Thread Linux NG/Lists
Well, I suppose I should say Doh! but even when I get rid of the @, I still get a blank page - no errors, and no database, either! A followup - I'm taking this over to PHP-DB since it's now database-centric, I think. This still fails: $db = new mysqli( But this works $conn =

Re: [PHP] SQL Distinct-like behaviour

2007-08-24 Thread Hamza Saglam
I don't know what I was thinking when I wrote that actually, that is so blatantly obvious :) Thanks Brian. Hamza. brian [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Marcelo de Moraes Serpa wrote: How could I iterate over the files in a directory and build a list of unique

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Larry Garfield
On Friday 24 August 2007, Lester Caine wrote: What would be interesting is if a group picked up PHP4 and kept going with it in spite of the end of life announcement a few weeks back. I wonder if the PHP license would allow such a thing. How open is it exactly? The PROBLEM is that

Re: [PHP] PHP4 vs PHP5 Performance?

2007-08-24 Thread Robert Cummings
On Sat, 2007-08-25 at 00:28 -0500, Larry Garfield wrote: On Friday 24 August 2007, Lester Caine wrote: What would be interesting is if a group picked up PHP4 and kept going with it in spite of the end of life announcement a few weeks back. I wonder if the PHP license would allow such a