[PHP] Any idea how to automatically post to http authentication?
I'm trying to create a php page that automatically posts data to several other webpages (to log in). However one of the pages is using some sort of CGI HTTP authentication. Is there any way that I can see what the names of the fields are (such as user or username or whatever). And also is there any way that I can post the data that the HTTP authentication needs via PHP? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] SSI and PHP
I've got to use some server side includes (and some SETs). And PHP is set up as a CGI program. If I include the php page from the .shtml page, the php page cannot receive queries. .php files are not set up to process these includes. And of course virtual(), etc. do not work because PHP is set up as CGI. Anyone know of any good work around tricks? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Class PHP4 problem
Try adding function getQuery() { return $this->query; } to the first class, then in the second class, replace $query with $this->getQuery() Like I have below. On Wed, 29 Sep 2004 17:08:49 +0200, kioto <[EMAIL PROTECTED]> wrote: > //db_class.php > > error_reporting(E_ALL); > > class Db_Connect { > > var $host; > var $user; > var $pasw; > var $MYSQL_ERRNO; > var $MYSQL_ERROR; > var $query; > > function make_connect($host, $user, $pasw) { > >$this->host = $host; >$this->user = $user; >$this->pasw = $pasw; > >$link_id = mysql_connect($this->host, $this->user, $this->pasw); > >if (!$link_id) { > die("Impossibile connettersi al server mysql " . "" . > "Dettagli: " . $this->MYSQL_ERROR . "Errore No: " . > $this->MYSQL_ERRNO); >} >else { > return $link_id; >} > } > > function select_db($db_name) { > >if (!(mysql_select_db($db_name))) { > die("Impossibile selezionare il database " . $db_name . > "" . > "Dettagli: " . $this->MYSQL_ERROR . "" . "Errore > No: " . $this->MYSQL_ERRNO); > } > } > > function sql_query($query) { > >if (!(mysql_query($query))) { > die("Impossibile eseguire query al database " . "" . > "Dettagli: " . $this->MYSQL_ERROR . "" . "Errore > No: " . $this->MYSQL_ERRNO); > } >else $result = mysql_query($query); > >return $result; > } > > function close_connection() { > > mysql_close($this->make_connect()); > } function getQuery() { return $this->query; } > } > > class Result_Db extends Db_Connect { > > function get_data() { > $res = $this->sql_query($this->getQuery()); > > while($db_data = mysql_fetch_array($res)) { > > echo $db_data["tot"] . ""; > > } > } > } > > $obj = new Result_Db; > $obj->make_connect('localhost', 'root', ''); > $obj->select_db('sottilelinearossa'); > $obj->sql_query('select count(id) as tot from articoli'); > $obj->get_data(); > > ?> > > I get this message because the variable is not valid when call the > method sql_query in > the child class Result_Db. > How to fix this problem ? > > Notice: Undefined variable: query in c:\programmi\apache > group\apache\users\kioto\db_class2.php on line 66 > Impossibile eseguire query al database > Dettagli: > Errore No: > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend PHP Certification test
How long is the Zend certification 'good' for? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session Variable Security
The first thing to do is to set your scripts to not allow session handling to be carried out through the URL if a person's browser won't accept cookies. It would be way too easy to change the ID. And also if the id numbers are sequential, you might also want to have a second, random identifier that is also a session variable. Thus you not only have the users id, but a random value that acts as a sort of password. This way there is more that a person attacking your script would have to do than simply changing the id number. Just some suggestions. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend PHP Certification test
Time since last post to this list On Thu, 30 Sep 2004 18:56:56 -0500, Matt M. <[EMAIL PROTECTED]> wrote: > > This is just too easy: > > > > The shown times are posting-times for one day on this list, for posts > > regarding mysql. > > ah ha. > > could also be unsubscribe emails > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend PHP Certification test
1:11 1:15 1:19 1:26 1:27 1:28 1:30 1:34 1:42 1:46 1:47 1:48 1:52 2:10 2:12 2:14 2:16 2:18 2:20 2:26 2:30 2:34 2:41 2:48 3:08 3:10 3:12 3:14 3:16 3:18 3:26 3:27 3:30 3:34 3:41 3:44 4:11 4:15 4:16 4:18 4:19 4:23 4:24 4:28 4:30 4:32 4:34 4:36 4:40 4:41 4:42 4:47 4:51 5:08 5:10 5:12 5:16 5:18 5:20 5:22 5:28 5:30 5:31 5:34 5:35 5:41 5:44 6:08 6:10 6:12 6:14 6:16 6:18 6:20 6:22 6:26 6:28 6:30 6:34 6:41 6:44 6:46 7:08 7:11 7:15 7:19 7:23 7:24 7:27 7:30 7:32 7:34 7:36 7:38 7:41 7:44 7:46 7:50 8:08 9:06 9:08 10:07 13:19 13:23 13:27 13:31 13:34 13:35 13:36 13:38 13:42 14:18 14:20 14:22 14:24 14:26 14:28 14:30 14:32 14:34 14:38 14:42 15:18 15:20 15:22 15:24 15:26 15:32 15:34 15:35 15:38 15:42 16:15 16:16 16:19 16:23 16:24 16:26 16:27 16:31 16:36 16:38 16:39 16:42 16:43 17:14 17:16 17:18 17:20 17:24 17:26 17:28 17:32 17:36 17:38 17:40 17:42 17:44 18:14 18:16 18:18 18:20 18:22 18:24 18:26 18:28 18:30 18:32 18:34 18:36 18:38 18:40 18:42 18:44 19:15 19:16 19:19 19:23 19:27 19:31 19:35 19:38 19:39 19:42 19:43 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend PHP Certification test
I have the first part figured out. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Zend PHP Certification test
The code is: j896c5kk.fi7/ d89635bb -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Getting form name
I'm trying to get the name of a form. I tried the following code, but I guess the data in $_POST only contains data on the form elements that go inside the form tags, but not info from the form tag itself. Any suggestions on how to get the form name? $value) { echo $key . "---" . $value . ""; } echo ""; echo ""$ echo ""; echo ""; echo ""; ?> -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php