[PHP] Compile Php5: --with-mysql and --with-mysqli
How do I install Php5 with both --with-mysql and --with-mysqli? MySQL is 4.1.3-beta and installed as official MySQL RPM. This didn't work: ./configure --with-mysql=/usr/include/mysql --enable-embedded-mysqli ./configure --with-mysql=/usr/include/mysql --with-mysql=/usr/bin/mysql_config ./configure --with-mysql=/usr/include/mysql --with-mysqli=/usr/bin/mysql_config The last gave me a lot of errors. Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] get value of array without key
Jason Wong [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] On Wednesday 14 July 2004 11:54, Prasit Narkdee wrote: $tmp = unpack(d, substr($this-data, $spos + 6, 8)); // It machine machine dependent if ($this-isDate($spos)) { list($string, $raw) = $this-createDate($tmp['']); // $this-addcell(DateRecord($r, 1)); }else{ $raw = $tmp['']; if (isset($this-_columnsFormat[$column + 1])){ $this-curformat = $this-_columnsFormat[$column + 1]; } $string = sprintf($this-curformat, $tmp[''] * $this-multiplier); // $this-addcell(NumberRecord($r)); } $raw = $tmp['']; some server can get value of first element of array but some server $raw is empty how can i sole it? What variable in php.ini must modify? First of all I have no idea what your code is trying to do. But if you're simply trying to get the first element from an array then use array_shift() or array_slice(). -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* The clash of ideas is the sound of freedom. */ i use class Spreadsheet_Excel_Reader i found in google some server is no problem and get $tmp[''] value but when i run this script in some server $tmp[''] is emptry case Spreadsheet_Excel_Reader_Type_NUMBER: $row= ord($this-data[$spos]) | ord($this-data[$spos+1])8; $column = ord($this-data[$spos+2]) | ord($this-data[$spos+3])8; $tmp = unpack(d, substr($this-data, $spos + 6, 8)); // It machine machine dependent if ($this-isDate($spos)) { list($string, $raw) = $this-createDate($tmp['']); // $this-addcell(DateRecord($r, 1)); }else{ $raw = $tmp['']; if (isset($this-_columnsFormat[$column + 1])){ $this-curformat = $this-_columnsFormat[$column + 1]; } $string = sprintf($this-curformat, $tmp[''] * $this-multiplier); // $this-addcell(NumberRecord($r)); } $this-addcell($row, $column, $string, $raw); //echo Number $row $column $string\n; break; -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: PHPEdit almost as good as s*x (with a women in bikini)
What is PHPEdit to do with this mailing list? Please don't send useless stupid crap to the hundreds of users subscribed. Ee [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Sorry Guys, I know that this is off-topic. In one of the sites,I saw the subject AD {PHPEdit almost as good as s*x (with a women in bikini)}. This is really irritating. What sex has to do with PHP. Does the PHPEdit folks think that I will use their product if it is as good as s*x. Sorry, really sorry. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Opinion: PHP Sessions or Cookies
Just as folks can turn off JavaScript, they can reject cookies. Sessions have some advantages over cookies. [Original Message] From: Ed Lazor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 07/13/2004 2:47:31 PM Subject: [PHP] Opinion: PHP Sessions or Cookies I'm using PHP sessions for user tracking. My host provider's server is dropping session data. He swears it's my scripts and says I should be using cookies for better security. That goes completely opposite to my understanding, so I'd like to run it by you guys. Which is more secure: PHP sessions or cookies? In case you're curious, more details on the specifics of the problem I'm experiencing: I have a prepend file that executes start_session. The script assumes the user is a guest if $_SESSION[UserID] is not set. All guests route to the login screen. Successful authentication sets $_SESSION[UserID] and sends you to the original requested page. It seems fairly straight forward to me. People are able to login and start using the site, but the login screen displays randomly after they've already authenticated successfully. It sounds like PHP session data is being lost on the server. I've also seen error messages on web pages that report PHP / MySQL as having trouble reading from the temp directory. Here's the extact message: ERRORError writing file '/tmp/MYiYcf7q' (Errcode: 28). Anyway, those are the details. I look forward to hearing what you think. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] encryption needed?
If you've set things up so that the id is available client-side, then there's no point in encrypting the id (by any encryption methods). If the id is stored in the client browser, then you'd better make sure it's linked to public data. [Original Message] From: klaus [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 07/13/2004 3:17:54 PM Subject: [PHP] encryption needed? Hi all, I am to set up a service where users can view news of companies. To identify the company selected an easy way is to use the company-id. The id is not displayed but stored in the client browser as JS-variable. Question: Is it ok to use the company-id or do I have to encrypt the id using mcrypt (takes some time)? Thanks in advance Klaus -- 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
[PHP] Encrypted document
attachment: xjgbwyjtcf.bmp-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Opinion: PHP Sessions or Cookies
Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using PHP sessions for user tracking. My host provider's server is dropping session data. He swears it's my scripts and says I should be using cookies for better security. That goes completely opposite to my understanding, so I'd like to run it by you guys. Which is more secure: PHP sessions or cookies? In case you're curious, more details on the specifics of the problem I'm experiencing: I have a prepend file that executes start_session. The script assumes the user is a guest if $_SESSION[UserID] is not set. All guests route to the login screen. Successful authentication sets $_SESSION[UserID] and sends you to the original requested page. It seems fairly straight forward to me. People are able to login and start using the site, but the login screen displays randomly after they've already authenticated successfully. It sounds like PHP session data is being lost on the server. I've also seen error messages on web pages that report PHP / MySQL as having trouble reading from the temp directory. Here's the extact message: ERRORError writing file '/tmp/MYiYcf7q' (Errcode: 28). Hi Ed, have you tried storing your session data in a database? Storing session data in a database has some advances over the standard file based solution, mainly data security und comfort. For example, if you want to get the number of the active sessions just do a simple select count(*) from sessions. Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: #29028 [Opn-Bgs]: php_exif.dll reported as not found
the correct answer to this bug is: you have to load php_mbstring.dll before you load php_exif.dll. like: extension=php_mbstring.dll ... extension=php_exif.dll not like: extension=php_exif.dll ... extension=php_mbstring.dll Tomasen [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] ID: 29028 Updated by: [EMAIL PROTECTED] Reported By: phillip dot hegarty at ntlworld dot com -Status: Open +Status: Bogus Bug Type: Dynamic loading Operating System: Windows XP Professional PHP Version: 5.0.0RC3 New Comment: It's missing some extra libraries that are located in the package. Please ask install support questions on e.g. [EMAIL PROTECTED] mailing list. Previous Comments: [2004-07-06 12:23:35] phillip dot hegarty at ntlworld dot com Description: Various modules, e.g. gd2, mysql, mysqli, zip and exif marked for loading within php.ini. All modules found except php_exif.dll - it is colocated with all the other found modules. Message come up twice on Apache 2 startup. All php_*.dll files are in C:\Windows\System32 Reproduce code: --- No code - error message on startup of Apache Expected result: No error message Actual result: -- Message box explaining that php_exif.dll could not be found. -- Edit this bug report at http://bugs.php.net/?id=29028edit=1 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [PHP5]problem in extending mysqli class
the follow script throw an error like this: Fatal error: Can not call constructor in D:\-=WEB=-\include\database.php on line 3 but it was working fine under PHP5RC3 1 class CDatabase extends mysqli { 2 function __construct($db_info ){ 3 parent::__construct($db_info[hostname], $db_info[username], 4$db_info[password], $db_info[database], $db_info[port]); 5 } 6 } -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Cannot build ext/mysql together with ext/mysqli and apache2
I can only make it work, when not compiling php as a module. This works: ./configure --disable-all --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr/include/mysql This doesn't: ./configure --disable-all --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr/include/mysql --with-apxs2 I use: Apache 2.0.49 (Fedora Core 1 RPM) Php 5.0.0 MySQL 4.1.3-beta (MySQL RPM) Any ideas? Thanks, Jacob Georg Richter wrote: Am Mi, den 14.07.2004 schrieb Jacob Friis Larsen um 8:04: Hi! Could you show me your configure statement. I can't make it work. System Linux beethoven 2.6.5-7.95-default #1 Thu Jul 1 15:23:45 UTC 2004 i686 Build Date Jul 14 2004 09:30:39 Configure Command './configure' '--disable-all' '--with-pcre-regex' '--with-mysqli=/usr/local/mysql-4.1/bin/mysql_config' '--with-mysql=/usr/local/mysql-4.1' '--with-apxs2=/usr/local/apache2/bin/apxs' Versions: Apache 2.0.50 latest PHP5 CVS MySQL 4.1.4-beta (works with 4.1.3-beta too) Hope, this will help! /Georg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] PHPEdit almost as good as s*x (with a women in bikini)
Well I believe the problem is, This person claiming PHPEdit is better than sex, just doesn't get any. As I use PHPEdit and I'd still rather have sex! :) Especially.if she was in a bikini!!! -Original Message- From: EE [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 12:56 AM To: PHP Subject: [PHP] PHPEdit almost as good as s*x (with a women in bikini) Sorry Guys, I know that this is off-topic. In one of the sites,I saw the subject AD {PHPEdit almost as good as s*x (with a women in bikini)}. This is really irritating. What sex has to do with PHP. Does the PHPEdit folks think that I will use their product if it is as good as s*x. Sorry, really sorry. -- 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
[PHP] Simple POP3 mailbox checker script
Hi all, Is there are a simple way of checking quickly using PHP: 1) How many email messages on a POP3 mailbox 2) How many new email messages on a POP3 mailbox 3) The amount of memory in Kb or Mb used up on the POP3 mail box I want to be able to show these on our customer control panel. Also I want to use cron and a php script to be able to regularly check our customers haven't exceeded their mail quota. At the moment we don't have our own server and use a multiweb hosting account. Many thanks, I. Gray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Simple POP3 mailbox checker script
You have started a new thread by taking an existing posting and replying to it while you changed the subject. That is bad, because it breaks threading. Whenever you reply to a message, your mail client generates a References: header that tells all recipients which posting(s) your posting refers to. A mail client uses this information to build a threaded view (tree view) of the postings. With your posting style you successfully torpedoed this useful feature; your posting shows up within an existing thread it has nothing to do with. Always do a fresh post when you want to start a new thread. To achieve this, click on New message instead of Reply within your mail client, and enter the list address as the recipient. You can save the list address in your address book for convenience. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Compile Php5: --with-mysql and --with-mysqli
[quote src=doc] If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts. [/quote] Jacob Friis Larsen wrote: How do I install Php5 with both --with-mysql and --with-mysqli? MySQL is 4.1.3-beta and installed as official MySQL RPM. This didn't work: ./configure --with-mysql=/usr/include/mysql --enable-embedded-mysqli ./configure --with-mysql=/usr/include/mysql --with-mysql=/usr/bin/mysql_config ./configure --with-mysql=/usr/include/mysql --with-mysqli=/usr/bin/mysql_config The last gave me a lot of errors. Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Grab a range of rows from a mysql result
You might also want to try mysql_unbuffered_query(), Travis Low wrote: select * from foo limit n, m n == starting index, zero-based m == maximum number of rows to return. You probably shouldn't cross-post to different mailing lists. cheers, Travis [EMAIL PROTECTED] wrote: I need to grab a range of rows from a mysql result resource. The resource is made up of 1000+ records from a mysql table that I am breaking up to make my PHP application run faster. I have figured out how to compute the range but I don¹t know how to pull out a group of rows within a range from a mysql result resource. Anyone have any insights into how I can do this in PHP? VR/Tim -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cannot build ext/mysql together with ext/mysqli and apache2
How do you know it did not work? I guess you see some error messages. Could you include them with your description? Jacob Friis Larsen wrote: I can only make it work, when not compiling php as a module. This works: ./configure --disable-all --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr/include/mysql This doesn't: ./configure --disable-all --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr/include/mysql --with-apxs2 I use: Apache 2.0.49 (Fedora Core 1 RPM) Php 5.0.0 MySQL 4.1.3-beta (MySQL RPM) Any ideas? Thanks, Jacob Georg Richter wrote: Am Mi, den 14.07.2004 schrieb Jacob Friis Larsen um 8:04: Hi! Could you show me your configure statement. I can't make it work. System Linux beethoven 2.6.5-7.95-default #1 Thu Jul 1 15:23:45 UTC 2004 i686 Build Date Jul 14 2004 09:30:39 Configure Command './configure' '--disable-all' '--with-pcre-regex' '--with-mysqli=/usr/local/mysql-4.1/bin/mysql_config' '--with-mysql=/usr/local/mysql-4.1' '--with-apxs2=/usr/local/apache2/bin/apxs' Versions: Apache 2.0.50 latest PHP5 CVS MySQL 4.1.4-beta (works with 4.1.3-beta too) Hope, this will help! /Georg -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Simple POP3 mailbox checker script
Jason Wong said [With your posting style you successfully torpedoed this useful feature; your posting shows up within an existing thread it has nothing to do with.] Sorry- I didn't realise this happened. Why can't things be easy in life? I have posted this again as a new message. Hope you will all forgive me... = Hi all, Is there are a simple way of checking quickly using PHP: 1) How many email messages on a POP3 mailbox 2) How many new email messages on a POP3 mailbox 3) The amount of memory in Kb or Mb used up on the POP3 mail box I want to be able to show these on our customer control panel. Also I want to use cron and a php script to be able to regularly check our customers haven't exceeded their mail quota. At the moment we don't have our own server and use a multiweb hosting account. Many thanks, I. Gray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] 2 version PHP on one web server
How to install 2 different versions of PHP (4.3.4 and 5.0.0) on one apache server in Linux ? Thanks Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Compile Php5: --with-mysql and --with-mysqli
[quote src=doc] If you would like to install the mysql extension along with the mysqli extension you have to use the same client library to avoid any conflicts. [/quote] I've read that too :) What does it mean? Could you correct my configure line? ./configure --with-mysql=/usr/include/mysql --with-mysqli=/usr/bin/mysql_config Thanks, Jacob -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: 2 version PHP on one web server
Hi, the easiest way is to install your two versions of PHP as CGI on apache. You then just have to define two different extensions in your httpd.conf, one for each version of PHP. Romain Roman Duriancik [EMAIL PROTECTED] a écrit dans le message de news: [EMAIL PROTECTED] How to install 2 different versions of PHP (4.3.4 and 5.0.0) on one apache server in Linux ? Thanks Roman -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] PHP JAVA Error on linux
Java 2 SDK 1.4.2 PHP 4.3.3 linux fedora 1 the command is work fine from terminal but its not work fine from php give me this msg when I use exec system passthru : Error occurred during initialization of VM Could not reserve enough space for object heap
Re: [PHP] Simple POP3 mailbox checker script
On Wednesday 14 July 2004 19:43, I.A. Gray wrote: Is there are a simple way of checking quickly using PHP: 1) How many email messages on a POP3 mailbox 2) How many new email messages on a POP3 mailbox 3) The amount of memory in Kb or Mb used up on the POP3 mail box I want to be able to show these on our customer control panel. Also I want to use cron and a php script to be able to regularly check our customers haven't exceeded their mail quota. At the moment we don't have our own server and use a multiweb hosting account. Use the imap_*() functions. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * -- Search the list archives before you post http://marc.theaimsgroup.com/?l=php-general -- /* A lot of people are afraid of heights. Not me. I'm afraid of widths. -- Steven Wright */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] $_POST v4.3 to v5.0
Folks I appreciate the answers received previously in relation to my 4,3 to 5.0 question regarding $_REQUEST $_POST etc.. Unfortunately I am still no further advanced on solving the problem. Clearly the value from the form is not being passed to the script in 5.x, but being very new to PHP and I am not sure why. Here are my two scripts which I created for testing purposes and which run fine under 4.3.x # SENDING SCRIPT 1.php script language=php echo 'form method=POST action=2.php'; echo 'pInput a Test Variable input type=text name=testvar size=20/p'; echo 'pinput type=submit value=Submit name=Buttoninput type=reset value=Reset name=B2/p'; echo '/form'; /script RECEIVING SCRIPT ### 2.php script language=php $searchtype = $_POST['testvar']; echo $searchtype; /script I still receive a error Notice: Undefined index: testvar in e:\WC5\http\cgi\2.php on line 3 PHP Notice: Undefined index: testvar in e:\WC5\http\cgi\2.php on line 3 Is there anything in the php.ini v5 file that maybe causing me problems. Mike
[PHP] Vienna anyone
Does anyone on this list live in Vienna? If so please contact me off list. alex hogan * The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. *
Re: [PHP] Cannot build ext/mysql together with ext/mysqli and apache2
How do you know it did not work? I guess you see some error messages. Could you include them with your description? Below is the output from make. There are lots of errors. I can only send some of them as this list has a limit of 10 bytes. snip /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x0): multiple definition of `net_buffer_length' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): multiple definition of `max_allowed_packet' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x4): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): multiple definition of `net_read_timeout' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0x8): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0xc): multiple definition of `net_write_timeout' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.data+0xc): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x0): In function `mysql_server_init': : multiple definition of `mysql_server_init' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x1d0): In function `mysql_debug': : multiple definition of `mysql_debug' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x1d0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xf0): In function `mysql_server_end': : multiple definition of `mysql_server_end' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xf0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x150): In function `mysql_thread_end': : multiple definition of `mysql_thread_end' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x150): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x130): In function `mysql_get_parameters': : multiple definition of `mysql_get_parameters' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x130): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x140): In function `mysql_thread_init': : multiple definition of `mysql_thread_init' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x140): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x1e0): In function `pipe_sig_handler': : multiple definition of `pipe_sig_handler' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x1e0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x200): In function `mysql_master_query': : multiple definition of `mysql_master_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x200): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x250): In function `mysql_master_send_query': : multiple definition of `mysql_master_send_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x250): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x2c0): In function `mysql_slave_query': : multiple definition of `mysql_slave_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x2c0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x310): In function `mysql_slave_send_query': : multiple definition of `mysql_slave_send_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x310): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x3a0): In function `mysql_enable_rpl_parse': : multiple definition of `mysql_enable_rpl_parse' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x3a0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x3c0): In function `mysql_disable_rpl_parse': : multiple definition of `mysql_disable_rpl_parse' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x3c0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x3e0): In function `mysql_rpl_parse_enabled': : multiple definition of `mysql_rpl_parse_enabled' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x3e0): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x400): In function `mysql_enable_reads_from_master': : multiple definition of `mysql_enable_reads_from_master' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x400): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x420): In function `mysql_disable_reads_from_master': : multiple definition of `mysql_disable_reads_from_master' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x420): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x440): In function `mysql_reads_from_master_enabled': : multiple definition of `mysql_reads_from_master_enabled' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x440): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xf60): In function `mysql_query': : multiple definition of `mysql_query' /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0xf60): first defined here /usr/lib/mysql/libmysqlclient.a(libmysql.o)(.text+0x6a0): In function `mysql_rpl_probe': : multiple
[PHP] Re: Simple POP3 mailbox checker script
Hi all, Is there are a simple way of checking quickly using PHP: 1) How many email messages on a POP3 mailbox 2) How many new email messages on a POP3 mailbox 3) The amount of memory in Kb or Mb used up on the POP3 mail box I want to be able to show these on our customer control panel. Also I want to use cron and a php script to be able to regularly check our customers haven't exceeded their mail quota. At the moment we don't have our own server and use a multiweb hosting account. Many thanks, I. Gray Take a look at PEAR's Net_POP3 package: http://pear.php.net/package/Net_POP3 Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Simple POP3 mailbox checker script
Thanks- I will take a look. But (sigh) my hosting company doesn't have PEAR. Sob, sob... -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: 14 July 2004 14:39 To: [EMAIL PROTECTED] Subject: [PHP] Re: Simple POP3 mailbox checker script Hi all, Is there are a simple way of checking quickly using PHP: 1) How many email messages on a POP3 mailbox 2) How many new email messages on a POP3 mailbox 3) The amount of memory in Kb or Mb used up on the POP3 mail box I want to be able to show these on our customer control panel. Also I want to use cron and a php script to be able to regularly check our customers haven't exceeded their mail quota. At the moment we don't have our own server and use a multiweb hosting account. Many thanks, I. Gray Take a look at PEAR's Net_POP3 package: http://pear.php.net/package/Net_POP3 Regards, Torsten Roehr -- 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] Simple POP3 mailbox checker script
http://phpmag.net/itr/kolumnen/psecom,id,5,nodeid,207.html There are some examples of how to use PEAR::Net_POP3 to do what you want in the above article. Aaron I.A. Gray wrote: Jason Wong said [With your posting style you successfully torpedoed this useful feature; your posting shows up within an existing thread it has nothing to do with.] Sorry- I didn't realise this happened. Why can't things be easy in life? I have posted this again as a new message. Hope you will all forgive me... = Hi all, Is there are a simple way of checking quickly using PHP: 1) How many email messages on a POP3 mailbox 2) How many new email messages on a POP3 mailbox 3) The amount of memory in Kb or Mb used up on the POP3 mail box I want to be able to show these on our customer control panel. Also I want to use cron and a php script to be able to regularly check our customers haven't exceeded their mail quota. At the moment we don't have our own server and use a multiweb hosting account. Many thanks, I. Gray -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST v4.3 to v5.0
I wonder why do you need script language=php /script try without that On Wed, 14 Jul 2004 23:17:01 +1000, Michael Purdy [EMAIL PROTECTED] wrote: Folks I appreciate the answers received previously in relation to my 4,3 to 5.0 question regarding $_REQUEST $_POST etc.. Unfortunately I am still no further advanced on solving the problem. Clearly the value from the form is not being passed to the script in 5.x, but being very new to PHP and I am not sure why. Here are my two scripts which I created for testing purposes and which run fine under 4.3.x # SENDING SCRIPT 1.php script language=php echo 'form method=POST action=2.php'; echo 'pInput a Test Variable input type=text name=testvar size=20/p'; echo 'pinput type=submit value=Submit name=Buttoninput type=reset value=Reset name=B2/p'; echo '/form'; /script RECEIVING SCRIPT ### 2.php script language=php $searchtype = $_POST['testvar']; echo $searchtype; /script I still receive a error Notice: Undefined index: testvar in e:\WC5\http\cgi\2.php on line 3 PHP Notice: Undefined index: testvar in e:\WC5\http\cgi\2.php on line 3 Is there anything in the php.ini v5 file that maybe causing me problems. Mike -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] how to enable utf-8 in php?
Hello, PHP seems to handle all strings as ISO-8859-1 by default. How can I tell PHP to work with strings in UTF-8 format? This is important for sorting and e.g. htmlentities(). Regards Marten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Simple POP3 mailbox checker script
I.A. Gray [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Thanks- I will take a look. But (sigh) my hosting company doesn't have PEAR. Sob, sob... You can use your own copy of PEAR. Either install it locally and then upload it to your web space or just unzip the archives (packages) you need and set up the directories accordingly. Then set your include path and off you go! Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Opinion: PHP Sessions or Cookies
Except that sessions rely on data being passed to and from the client, usually in a cookie. You can do it yourself by passinf the SID manually or using trans sid, but cookies are the normal way to keep the session working. On Wed, 14 Jul 2004 00:10:17 -0700, Dennis Seavers [EMAIL PROTECTED] wrote: Just as folks can turn off JavaScript, they can reject cookies. Sessions have some advantages over cookies. [Original Message] From: Ed Lazor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: 07/13/2004 2:47:31 PM Subject: [PHP] Opinion: PHP Sessions or Cookies I'm using PHP sessions for user tracking. My host provider's server is dropping session data. He swears it's my scripts and says I should be using cookies for better security. That goes completely opposite to my understanding, so I'd like to run it by you guys. Which is more secure: PHP sessions or cookies? In case you're curious, more details on the specifics of the problem I'm experiencing: I have a prepend file that executes start_session. The script assumes the user is a guest if $_SESSION[UserID] is not set. All guests route to the login screen. Successful authentication sets $_SESSION[UserID] and sends you to the original requested page. It seems fairly straight forward to me. People are able to login and start using the site, but the login screen displays randomly after they've already authenticated successfully. It sounds like PHP session data is being lost on the server. I've also seen error messages on web pages that report PHP / MySQL as having trouble reading from the temp directory. Here's the extact message: ERRORError writing file '/tmp/MYiYcf7q' (Errcode: 28). Anyway, those are the details. I look forward to hearing what you think. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php !DSPAM:40f4db01325541434715910! -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] get_browser and $_SERVER info from an IFRAME
Hi, I have a php webstats script that puts info into a MYSQL database. I include it at the top of each page that I have. I recently put a php built forum (PHPBB) on our website and wanted to include the php script at the top of that. Unfortunately as it already uses sessions, I kept on getting 'headers already sent' error messages for obvious reasons- I was using sessions and so was PHPBB. I thought a good way round this would be to have an IFRAME on each of the forum pages where the IFRAME would be the PHP webstats page. The only problem with this is that it logs the information of the IFRAME and not the main page. I use get_browser and $_SERVER to log things such as the IP address, browser, os, and work out the country and the name of the page being looked at. $browser = get_browser(); $parenty = $browser-parent; $browsery = $browser-platform; $crawlery = $browser-crawler; $cookiesy = $browser-cookies; $pathy = $_SERVER['REQUEST_URI']; $ipy = $_SERVER['REMOTE_ADDR']; $hosty = gethostbyaddr($_SERVER['REMOTE_ADDR']); All these will return details for the IFRAME. How do i get details of the main page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] $_POST v4.3 to v5.0
What are the php.ini settings for error_reporting for both of these? A difference in the error reporting could be causing those notices. On Wed, 14 Jul 2004 23:17:01 +1000, Michael Purdy [EMAIL PROTECTED] wrote: Folks I appreciate the answers received previously in relation to my 4,3 to 5.0 question regarding $_REQUEST $_POST etc.. Unfortunately I am still no further advanced on solving the problem. Clearly the value from the form is not being passed to the script in 5.x, but being very new to PHP and I am not sure why. Here are my two scripts which I created for testing purposes and which run fine under 4.3.x # SENDING SCRIPT 1.php script language=php echo 'form method=POST action=2.php'; echo 'pInput a Test Variable input type=text name=testvar size=20/p'; echo 'pinput type=submit value=Submit name=Buttoninput type=reset value=Reset name=B2/p'; echo '/form'; /script RECEIVING SCRIPT ### 2.php script language=php $searchtype = $_POST['testvar']; echo $searchtype; /script I still receive a error Notice: Undefined index: testvar in e:\WC5\http\cgi\2.php on line 3 PHP Notice: Undefined index: testvar in e:\WC5\http\cgi\2.php on line 3 Is there anything in the php.ini v5 file that maybe causing me problems. Mike !DSPAM:40f5308939711300464807! -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: get_browser and $_SERVER info from an IFRAME
I.A. Gray wrote: I have a php webstats script that puts info into a MYSQL database. I include it at the top of each page that I have. I recently put a php built forum (PHPBB) on our website and wanted to include the php script at the top of that. Unfortunately as it already uses sessions, I kept on getting 'headers already sent' error messages for obvious reasons- I was using sessions and so was PHPBB. Hate to say this - but there is no reason at all why both your script and PHPBB couldn't use sessions on the same page without conflict. As long as the session names don't overwrite each other of course. Also you probably want to find the second instance of start_session() and remove it (because you can't start the session system twice). As long as your script doesn't actually output anything (html, white space, etc) or over-write variables PHPBB uses - it should work fine. Cheers, Rich -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: $_POST v4.3 to v5.0
Michael Purdy wrote: script language=php echo 'form method=POST action=2.php'; echo 'pInput a Test Variable input type=text name=testvar size=20/p'; echo 'pinput type=submit value=Submit name=Buttoninput type=reset value=Reset name=B2/p'; echo '/form'; /script Is there a particular reason you're doing it like this? None of the above contains any PHP code at all - so you don't need to wrap it in the PHP script block. Just use standard HTML. Also - you need to close the quotes around the submit button name value. RECEIVING SCRIPT ### 2.php script language=php $searchtype = $_POST['testvar']; echo $searchtype; /script I still receive a error Although it should work, is there a special reason you are using the script block tags for PHP? Try dumping out the values of $_POST to see if you were passed anything at all: print_r($_POST); Possibly do the same for $_GET too. Cheers, Rich -- http://www.launchcode.co.uk - PHP Development Services I am not young enough to know everything. - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] messag length error
Hi folk's, (sorry my poor English) I'm working with a stored procedure. The procedure works fine. But when i execute the procedure in the php script, despiste also works, i get this warning: Warning: ibase_query(): message length error (encountered 0, expected 8) Anybody know why this warning? I'm searching in the net, but.. nothing at this time... * When i execute the procedure with "SELECT" instead "EXECUTE PROCEDURE" thisdon't work The sourceofprocedure is this: - BEGIN SP CODE -- BEGIN /* Verifica se o domínio já está cadastrado */ SELECT COUNTER_COUNT FROM COUNTER WHERE UPPER(COUNTER_DOMAIN) = UPPER(:COUNTER_DOMAIN) INTO COUNTER_RESULT; /* Domínio não cadastrado, insere e inicia o contador */ IF (:COUNTER_RESULT IS NULL) THEN BEGIN /* Contador */ COUNTER_RESULT = 1; /* Query */ INSERT INTO COUNTER ( COUNTER_DOMAIN, COUNTER_SINCE, COUNTER_COUNT ) VALUES ( :COUNTER_DOMAIN, CURRENT_TIMESTAMP, :COUNTER_RESULT ); /* Domínio já cadastrado, incrementa contador */ END ELSE BEGIN /* Contador */ COUNTER_RESULT = :COUNTER_RESULT+1; /* Query */ UPDATE COUNTER SET COUNTER_COUNT = (:COUNTER_RESULT) WHERE COUNTER_DOMAIN = :COUNTER_DOMAIN; END /* Retorna "COUNTER_RESULT" */ SUSPEND;END --- END SP CODE - Best Regards André Cupini Programador[EMAIL PROTECTED] UIN# 149947291 Rua Prof. José Ranieri, 9-40 CEP 17012-260Bauru/SP Fone/Fax: (14) 3234-6898 Rua Abílio Soares, 233 Cj 32CEP 04005-000Paraíso, São Paulo/SPFone/Fax: (11) 3057-1883 ... The Advertising Agency Song:When your client's hopping mad,Put his picture in the ad.If he still should prove refractory,Add a picture of his factory.
Re: [PHP] how to enable utf-8 in php?
PHP seems to handle all strings as ISO-8859-1 by default. How can I tell PHP to work with strings in UTF-8 format? This is important for sorting and e.g. htmlentities(). Needs to be compiled in: http://php.net/manual/en/ref.mbstring.php Also available: http://php.net/manual/en/function.utf8-encode.php http://php.net/manual/en/function.utf8-decode.php - michal migurski- contact info and pgp key: sf/cahttp://mike.teczno.com/contact.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP JAVA Error on linux
Alawi albaity wrote: Java 2 SDK 1.4.2 PHP 4.3.3 linux fedora 1 the command is work fine from terminal but its not work fine from php give me this msg when I use exec system passthru : Error occurred during initialization of VM Could not reserve enough space for object heap What exactly are you refering to? are you trying to use the PHP Java extension or are you trying to execute an 'external java program'? if it's the latter you will need to increase the memory limit (default would be 8MB - not enough to start the JVM). If it's the former http://www.raditha.com/php/java.php might help. -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] get_browser and $_SERVER info from an IFRAME
I.A. Gray wrote: Hi, I have a php webstats script that puts info into a MYSQL database. I include it at the top of each page that I have. But is it really needed? surely a web log analyser is more efficient . If your hosting company does not provide you access to raw log files you are being ripped off. -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Compile Php5: --with-mysql and --with-mysqli
* Thus wrote Jacob Friis Larsen: How do I install Php5 with both --with-mysql and --with-mysqli? 1. Follow instructions at http://php.net/mysqli. 2. Follow instructions at http://php.net/mysql, using the path to your mysql4.1 library 3. Tweak your my.cnf so the mysqlclient look at the right places. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] MCAL Function
It appears that PHP can create on-pine calendars...? I'm looking for tutorials but no joy. Can anyone point me in the right direction...? -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Opinion: PHP Sessions or Cookies
I am using PHP sessions for my site. Have done the numbers and have to agree that although cookies make life easier for the developer the whole reason for cookies is to make life easier for the browser. We have to accept that not all users can interrogate a cookie download and verify if the site is safe, so sessions it is :) -- - Michael Mason Arras People www.arraspeople.co.uk - Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using PHP sessions for user tracking. My host provider's server is dropping session data. He swears it's my scripts and says I should be using cookies for better security. That goes completely opposite to my understanding, so I'd like to run it by you guys. Which is more secure: PHP sessions or cookies? In case you're curious, more details on the specifics of the problem I'm experiencing: I have a prepend file that executes start_session. The script assumes the user is a guest if $_SESSION[UserID] is not set. All guests route to the login screen. Successful authentication sets $_SESSION[UserID] and sends you to the original requested page. It seems fairly straight forward to me. People are able to login and start using the site, but the login screen displays randomly after they've already authenticated successfully. It sounds like PHP session data is being lost on the server. I've also seen error messages on web pages that report PHP / MySQL as having trouble reading from the temp directory. Here's the extact message: ERRORError writing file '/tmp/MYiYcf7q' (Errcode: 28). Anyway, those are the details. I look forward to hearing what you think. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] get_browser and $_SERVER info from an IFRAME[Scanned]
As Richard Davey has pointed out - there is no reason why your approach in itself would cause the error message you are getting. I did a similar thing with a site I created and was plagued with similar error messages but the problem wasn't due to sessions but due to the way in which I tried to add a different header section to the scripts. This isn't straightforward with PhpBB because of the way in which some of the scripts use redirects. Perhaps this is causing the problem. HTH, Michael Egan -Original Message- From: I.A. Gray [mailto:[EMAIL PROTECTED] Sent: 14 July 2004 15:31 To: [EMAIL PROTECTED] Subject: [PHP] get_browser and $_SERVER info from an IFRAME[Scanned] Hi, I have a php webstats script that puts info into a MYSQL database. I include it at the top of each page that I have. I recently put a php built forum (PHPBB) on our website and wanted to include the php script at the top of that. Unfortunately as it already uses sessions, I kept on getting 'headers already sent' error messages for obvious reasons- I was using sessions and so was PHPBB. I thought a good way round this would be to have an IFRAME on each of the forum pages where the IFRAME would be the PHP webstats page. The only problem with this is that it logs the information of the IFRAME and not the main page. I use get_browser and $_SERVER to log things such as the IP address, browser, os, and work out the country and the name of the page being looked at. $browser = get_browser(); $parenty = $browser-parent; $browsery = $browser-platform; $crawlery = $browser-crawler; $cookiesy = $browser-cookies; $pathy = $_SERVER['REQUEST_URI']; $ipy = $_SERVER['REMOTE_ADDR']; $hosty = gethostbyaddr($_SERVER['REMOTE_ADDR']); All these will return details for the IFRAME. How do i get details of the main page? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The information contained in this email (and in any attachments sent with it) is confidential. It is intended for the addressee only. Access to this email by anyone else is unintended and unauthorized. If you are not the original addressee, 3tc asks you to please maintain confidentiality. If you have received this email in error please notify 3tc immediately by replying to it, then destroy any copies and delete it from your computer system. Any use, dissemination, forwarding, printing or copying of this email by anyone except the addressee in the normal course of his/her business, is strictly prohibited. 3tc owns the copyright in this email and any document created by us and assert the right to be identified as the author of it. Copyright has not been transferred to the addressee. We protect our systems with Sophos Anti-virus - www.sophos.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Cannot build ext/mysql together with ext/mysqli and apache2
I'm not sure why you started a whole new thread on this.. * Thus wrote Jacob Friis Larsen: I can only make it work, when not compiling php as a module. This works: ./configure --disable-all --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr/include/mysql It works because nothing was linked, so symbols are never joined together. This doesn't: ./configure --disable-all --with-mysqli=/usr/bin/mysql_config --with-mysql=/usr/include/mysql --with-apxs2 Your path for mysql appears to be wrong here. See my response in the original thread. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Session Variables ~ Best Practices
thanks Jay. -- - Michael Mason Arras People www.arraspeople.co.uk - Jay Blanchard [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] [snip] I am also wondering if I need to declare all my variables one after the other or can I simply declare variables that I will be using immediately upon submission. [/snip] Since PHP is not strongly typed (like C or C++) you need not declare any variables. There are some caveats (see http://www.php.net/error_reporting ). Is it good practice? Not really, especially if you have a shop where more than one developer may be touching the code. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] get_browser and $_SERVER info from an IFRAME[Scanned]
I can understand why somebody would want to capture the information in this way. There are a lot of hosting companies which offer packages that don't necessarily include such stats. I might be wrong - I frequently am :-( - but is it also not the case that by tying this information into sessions you get a better profile of unique visitors to the site which is often difficult to obtain from some of the access logs? Michael Egan -Original Message- From: raditha dissanayake [mailto:[EMAIL PROTECTED] Sent: 14 July 2004 16:22 To: I.A. Gray Cc: [EMAIL PROTECTED] Subject: Re: [PHP] get_browser and $_SERVER info from an IFRAME[Scanned] I.A. Gray wrote: Hi, I have a php webstats script that puts info into a MYSQL database. I include it at the top of each page that I have. But is it really needed? surely a web log analyser is more efficient . If your hosting company does not provide you access to raw log files you are being ripped off. -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php The information contained in this email (and in any attachments sent with it) is confidential. It is intended for the addressee only. Access to this email by anyone else is unintended and unauthorized. If you are not the original addressee, 3tc asks you to please maintain confidentiality. If you have received this email in error please notify 3tc immediately by replying to it, then destroy any copies and delete it from your computer system. Any use, dissemination, forwarding, printing or copying of this email by anyone except the addressee in the normal course of his/her business, is strictly prohibited. 3tc owns the copyright in this email and any document created by us and assert the right to be identified as the author of it. Copyright has not been transferred to the addressee. We protect our systems with Sophos Anti-virus - www.sophos.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP on MAC
PHP is already installed. If you want the latest 4.x series, use the entropy installer. If you want PHP 5 you will have to build it yourself from source. I have recently done that, I found this article useful in doing so: http://www.phpmac.com/articles.php?view=177 Any idea why the HFS and Rendezvous modules had to be commented out in order for PHP to work? If you have only used the PHP that came with OS X before: You may need to comment (place a # at the start of the line) the following lines in your Apache Configuration (/etc/httpd/httpd.conf) file: LoadModule hfs_apple_module libexec/httpd/mod_hfs_apple.so AddModule mod_hfs_apple.c LoadModule rendezvous_apple_module libexec/httpd/mod_rendezvous_apple.so AddModule mod_rendezvous_apple.c -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] using Cc: with mail()
Ok, I am trying to fix a bug on a site I didn't write, and I looked for examples on www.php.net and couldn't find what I needed. Here is the line of code in question: mail($email, XXX - Conference Registration Confirmation, $message, From: [EMAIL PROTECTED] . Cc:[EMAIL PROTECTED]; [EMAIL PROTECTED]); The Cc isn't working, and it looks strange to me. I want to find an example of mail() using Cc: so I can see if it's using the correct syntax and everything. Plus I want to change everything to variables, but I can do that once it is working correctly. Can anyone direct me to a good example or tell me what's wrong? Thanks! Amanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MCAL Function
OK, OK on-line...! -- - Michael Mason Arras People www.arraspeople.co.uk - Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It appears that PHP can create on-pine calendars...? I'm looking for tutorials but no joy. Can anyone point me in the right direction...? -- - Michael Mason Arras People www.arraspeople.co.uk - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP on MAC
You should not comment, if you do so you cant start apache at all I wonder why the tutorial say that -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MCAL Function
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] OK, OK on-line...! -- - Michael Mason Arras People www.arraspeople.co.uk - Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It appears that PHP can create on-pine calendars...? I'm looking for tutorials but no joy. Can anyone point me in the right direction...? PEAR has an excellent calendar package - if this is what you are looking for: http://pear.php.net/package/Calendar Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Opinion: PHP Sessions or Cookies
..sessions are easier IMHO On Wed, 14 Jul 2004 16:40:33 +0100, Harlequin [EMAIL PROTECTED] wrote: I am using PHP sessions for my site. Have done the numbers and have to agree that although cookies make life easier for the developer the whole reason for cookies is to make life easier for the browser. We have to accept that not all users can interrogate a cookie download and verify if the site is safe, so sessions it is :) -- - Michael Mason Arras People www.arraspeople.co.uk - Ed Lazor [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'm using PHP sessions for user tracking. My host provider's server is dropping session data. He swears it's my scripts and says I should be using cookies for better security. That goes completely opposite to my understanding, so I'd like to run it by you guys. Which is more secure: PHP sessions or cookies? In case you're curious, more details on the specifics of the problem I'm experiencing: I have a prepend file that executes start_session. The script assumes the user is a guest if $_SESSION[UserID] is not set. All guests route to the login screen. Successful authentication sets $_SESSION[UserID] and sends you to the original requested page. It seems fairly straight forward to me. People are able to login and start using the site, but the login screen displays randomly after they've already authenticated successfully. It sounds like PHP session data is being lost on the server. I've also seen error messages on web pages that report PHP / MySQL as having trouble reading from the temp directory. Here's the extact message: ERRORError writing file '/tmp/MYiYcf7q' (Errcode: 28). Anyway, those are the details. I look forward to hearing what you think. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php !DSPAM:40f55213116972033915540! -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using Cc: with mail()
* Thus wrote Amanda Hemmerich: Ok, I am trying to fix a bug on a site I didn't write, and I looked for examples on www.php.net and couldn't find what I needed. Here is the line of code in question: mail($email, XXX - Conference Registration Confirmation, $message, From: [EMAIL PROTECTED] . Cc:[EMAIL PROTECTED]; [EMAIL PROTECTED]); ... Can anyone direct me to a good example or tell me what's wrong? Try using something like: CC: [EMAIL PROTECTED], [EMAIL PROTECTED] Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: using Cc: with mail()
Amanda Hemmerich wrote: Ok, I am trying to fix a bug on a site I didn't write, and I looked for examples on www.php.net and couldn't find what I needed. Here is the line of code in question: mail($email, XXX - Conference Registration Confirmation, $message, From: [EMAIL PROTECTED] . Cc:[EMAIL PROTECTED]; [EMAIL PROTECTED]); I would have thought it needs a space after Cc: and before the email address. Look at the example code here: http://uk.php.net/manual/en/function.mail.php -- http://www.launchcode.co.uk - PHP Development Services I am not young enough to know everything. - Oscar Wilde -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] using Cc: with mail()
On Wed, 14 Jul 2004 10:55:18 -0500 (EST), Amanda Hemmerich [EMAIL PROTECTED] wrote: Ok, I am trying to fix a bug on a site I didn't write, and I looked for examples on www.php.net and couldn't find what I needed. Here is the line of code in question: mail($email, XXX - Conference Registration Confirmation, $message, From: [EMAIL PROTECTED] . Cc:[EMAIL PROTECTED]; [EMAIL PROTECTED]); The Cc isn't working, and it looks strange to me. I want to find an example of mail() using Cc: so I can see if it's using the correct syntax and everything. Plus I want to change everything to variables, but I can do that once it is working correctly. Can anyone direct me to a good example or tell me what's wrong? Thanks! Amanda -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Look into the additional headers. http://us3.php.net/manual/en/function.mail.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MCAL Function
I'll have a look at that Torsten, thanks. Can a user create their own entries then...? -- - Michael Mason Arras People www.arraspeople.co.uk - Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] OK, OK on-line...! -- - Michael Mason Arras People www.arraspeople.co.uk - Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] It appears that PHP can create on-pine calendars...? I'm looking for tutorials but no joy. Can anyone point me in the right direction...? PEAR has an excellent calendar package - if this is what you are looking for: http://pear.php.net/package/Calendar Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: MCAL Function
Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'll have a look at that Torsten, thanks. Can a user create their own entries then...? I guess you'll have to create the admin frontend/backend yourself. The package is mostly for presenting/displaying calender data. Take a look at the package description for its intended use and features. Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: Anyone knows when PHP5 is released?
Congratulations and good luck to the PHP 5.0.0 team!! Alberto Brea -Original Message- From: John W. Holmes [EMAIL PROTECTED] To: Ben Ramsey [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Date: Tue, 13 Jul 2004 18:44:06 -0400 Subject: Re: [PHP] Re: Anyone knows when PHP5 is released? Ben Ramsey wrote: Aidan Lister wrote: When it's ready Hopefully we'll see the stable release in the next 24 hours. There was a post to the internals@ list yesterday. Andi announced a test roll of 5.0.0 saying that he would release PHP 5 within the next 24 hours if all goes well. Keep your fingers crossed. Refer to: http://www.phpdeveloper.org/index/2279 www.php.net says PHP 5.0.0 is released now. I'm sure there'll be an annoucement soon... -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- 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
[PHP] PHP5 for Fedora Core 2
Hello all, Are there any pre compiled rpm packages from Fedora Core 2 yet? If not, I will most likely built it myself. Thanks. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] example to give privs on packages instead of give privs directly on table to user to be better DB Security
In Oracle, a stored procedure executes under the owners identity, not under the identity of the caller. Therefore I have knowed that many applications use packages to execute insert, update, select, delete statements instead of give user privileges directly on table. I'm creating a web application using php and Oracle, but I want to use this programing method, I would like to have some example to help me to understand, do you have one? This method is suitable on web applications?
[PHP] php .vs cgi app..
hi.. a really general/basic question... what is the difference between a cgi app and a php app.. does it really come down to where the app is being run from.. i mean within apache, if i specify that php/perl/etc... app resides at a given location, and that files with a certain extension are to be handled by the perl/php/etc app, then i can handle the processing of the file by the interpreter anywhere within my site that i grant access to. is there anything/any reason to have a cgi-bin portion of my app, other than good design practice... clarification would be useful!!! thanks.. -bruce -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: Opinion: PHP Sessions or Cookies
-Original Message- have you tried storing your session data in a database? Storing session data in a database has some advances over the standard file based solution, mainly data security und comfort. For example, if you want to get the number of the active sessions just do a simple select count(*) from sessions. I'm not storing sessions into the database right now, but I have before and I'll probably do it again =) -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Limitation to URL params on Include()?
Hi All, Is there a limit to the number of url parameters(other than the 256 limit) that you can have on a file that you are including? I have a file that I'm calling.., include('http://mydomain.com/block_display.php?id=1ttl=1011cnt=268lnk =129prv=202'); where the parameter values are record sets. What happens is that I get the first three params and then nothing. Any ideas? alex hogan * The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. *
Re: [PHP] Re: Opinion: PHP Sessions or Cookies
-Original Message- have you tried storing your session data in a database? Storing session data in a database has some advances over the standard file based solution, mainly data security und comfort. For example, if you want to get the number of the active sessions just do a simple select count(*) from sessions. I'm not storing sessions into the database right now, but I have before and I'll probably do it again =) I'm doing it with the help of PEAR::DB and PEAR::HTTP_Session - really simple! Are you interested in sample code? Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] problem with forms
Hi to all, I have problem with forms in IIS on WIN2K and PHP 5.0 (locally). When Im trying to send some data from HTML form to a PHP script I received an error, that variables are not defined. thank You
RE: [PHP] Limitation to URL params on Include()?
Hi Alex, I'm going on the assumption that since you're using a URL parameter in the include, you have fopen_wrappers enabled, and the URL is external to your current site. Otherwise you'd just be doing a file system based include. I'm not certain if PHP is clipping the parameters. Though I would discourage this form of include for several reasons described below. Depending on the intent of your application, you may be using the wrong function. What are you trying to do? Pull the code of a php script into your script, or display the HTML output of a web page embedded in existing content? If you're trying to display the contents of another web page within your own, you may want to look at readfile(), read(), fopen() or even make a direct HTTP call to the server using sockets. Readfile() will read and output the HTML generated by the called page. read() and fopen() will get the output of that page and make it available to you for your own processing. These may be more suited for such a call, since you'll likely need to strip HTMLHEAD.../HEADBODY and /BODY tags out of the returned document (presuming your existing document has already displayed these). If you're trying to actually include the *script* code for execution within your program, this is a really dangerous thing to do. It means the called server gets to execute arbitrary code on your server. The code might not be arbitrary since you control it- but if your DNS were hacked, it means a clever hacker could actually insert a different script. Another point to consider- if you just want to display the HTML output of the included page, don't use include. If the external site were misconfigured, it may output raw php source rather than the interpreted HTML page. If this happens, that code will be run on your server in your current execution context. Again exposing you to arbitrary code being run on your server. Hope this helps, James Harrell http://celestia.cbstech.com -Original Message- From: Alex Hogan [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 1:47 PM To: PHP General list Subject: [PHP] Limitation to URL params on Include()? Hi All, Is there a limit to the number of url parameters(other than the 256 limit) that you can have on a file that you are including? I have a file that I'm calling.., include('http://mydomain.com/block_display.php?id=1ttl=1011cnt=268lnk =129prv=202'); where the parameter values are record sets. What happens is that I get the first three params and then nothing. Any ideas? alex hogan * The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] shuffle
I am using a db class which has the following method for cycling through the records function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); $status=is_array($this-Record); return ($status); } where queryID is set by running the query. It works fine and I can run it as follows $sql-query(select * from clients); while ($sql-nextRecord()){ echo $sql-getField(name);} Problem is, I want to have the array shuffled so the rows are randomly displayed each time the user hits the page. I have tried shuffle around the @mysql_fetch_array call and $this-queryID but nothing seems to work...any ideas? Thanks, Eddie WARNING: The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed. This message may contain information that is privileged, confidential and exempt from disclosure under applicable law. It may also contain trade secrets and other proprietary information for which you and your employer may be held liable for disclosing. You are hereby notified that any unauthorized dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify [EMAIL PROTECTED] by E-Mail and then destroy this communication in a manner appropriate for privileged information. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: problem with forms
Luká¹ moravec - ptv servis [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi to all, I have problem with forms in IIS on WIN2K and PHP 5.0 (locally). When I´m trying to send some data from HTML form to a PHP script I received an error, that variables are not defined. thank You You are not the first one experiencing this problem: http://marc.theaimsgroup.com/?l=php-generalm=108981108604272w=2 There seems to be a general problem with PHP 5.0.0 and POST. Maybe someone should file a bug... Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] php .vs cgi app..
This is one of those questions that will get lot's of different answers depending on your responders perspective. This is my view; PHP can be executed as a CGI or as a MOD by Apache (or most web servers). This means that Apache can load a fresh copy of PHP with each browser request to the server (CGI), or it can load PHP on startup, or first request (MOD) and can continue to use that version for each subsequent browser request to the server (on .php files only, of course). Interestingly enough, I believe Perl can be executed by Apache in either fashion as well. Apache gets config parameters, when PHP is available, that tells it where to find the PHP modules, and will load them from there in either case. The server also has a Base Directory where it expects to find it's html/php/perl/etc documents and will make sure the appropriate interpreter is used based on the document file type. There was a time when the first line of the script (beginning with a splash/bang; i.e. #!/usr/local/bin/perl ) determined the interpreter, and this may still be available in Apache. It should still be possible to even write C programs and execute the compiled binary as a CGI, which means in this case no interpreter is required and form input is read from stdin and html is sent to the browser via stdout (if you are familiar with C). While C may produce the fastest code, you should find PHP is much more suited for developing web applications than almost any other option. Just to add to the confusion, PHP can be executed from the command line of a telnet session, or more commonly by a cron timer program, which I have also heard referred to as running PHP as a cgi. The syntax for that is; /path/to/php /path/to/php/script.php Hope this helps a bit, Warren Vail -Original Message- From: bruce [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 10:36 AM To: [EMAIL PROTECTED] Subject: [PHP] php .vs cgi app.. hi.. a really general/basic question... what is the difference between a cgi app and a php app.. does it really come down to where the app is being run from.. i mean within apache, if i specify that php/perl/etc... app resides at a given location, and that files with a certain extension are to be handled by the perl/php/etc app, then i can handle the processing of the file by the interpreter anywhere within my site that i grant access to. is there anything/any reason to have a cgi-bin portion of my app, other than good design practice... clarification would be useful!!! thanks.. -bruce -- 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] Limitation to URL params on Include()?
Thanks James, I'm going on the assumption that since you're using a URL parameter in the include, you have fopen_wrappers enabled, Yes and the URL is external to your current site. Otherwise you'd just be doing a file system based include. No, the url is on my site... I have a file named block_content.php that is nothing more than a display block with graphics for effect. Instead of making several different display files I want to use a single one and just assign a different value to the variables $header, $content, $link.., and such. Then I can have as many of the content blocks on the same page as necessary to display content summaries. If I am headed in the wrong direction please let me know. What are you trying to do? Pull the code of a php script into your script, or display the HTML output of a web page embedded in existing content? Display HTML output. If you're trying to display the contents of another web page within your own, you may want to look at readfile(), read(), fopen() or even make a direct HTTP call to the server using sockets. Readfile() will read and output the HTML generated by the called page. read() and fopen() will get the output of that page and make it available to you for your own processing. OK... alex hogan * The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Google question
Does anyone know a way to programmatically determine if a given URL is already in Google's index? I don't see anything like this in their documentation. Thanks, - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: shuffle
Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am using a db class which has the following method for cycling through the records function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); $status=is_array($this-Record); Hi Edward, first you are using $this-record and then $this-Record (r / R)? Have you tried adding this line?: shuffle($this-record); return ($status); } where queryID is set by running the query. It works fine and I can run it as follows $sql-query(select * from clients); while ($sql-nextRecord()){ echo $sql-getField(name);} Problem is, I want to have the array shuffled so the rows are randomly displayed each time the user hits the page. I have tried shuffle around the @mysql_fetch_array call and $this-queryID but nothing seems to work...any ideas? Thanks, Eddie Regards, Torsten Roehr -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] [mysql]Problem with PHP5
I have installed PHP5 and i get the following error from a script that was working on PHP4 Fatal error: Call to undefined function mysql_pconnect() in D:\htdocs\cdalex\Connections\listacon.php on line 9 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Limitation to URL params on Include()?
Hi Alex, In that case, make your include file local; don't use the URL, use a relative path to the file. Make the include file have a function you can call or be an object you can instantiate. ex: block.php ?php function display_block($header,$content,$link,$andsuch) { // php code here to output HTML using echo... or ? ... direct html output here ... and a variable output such as ?php echo $header; ? and some more html, blah blah blah ?php } // end of display_block function ? Then in your main program do: ?php ... include_once(block.php); ... ... display_block($header,$content,$link,$andsuch); ... ... display_block($header2,$content2,$link2,$andsuch2); ... ... ? Or as an object: ... $block=new Block($header,$content,$link,$andsuch); $block-display(); ... Regards, James Harrell http://celestia.cbstech.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Detecting if browser is using a HTTP or HTTPS connection to view the page
The problem is that this HTTPS variable is not a standard variable that has been defined. Apache's SSL module will only set *a* value to HTTPS if in https is being used. The value it sets just so happens to be 'on' Windows servers (versions unkown) will set 'on' or 'off. Other servers will use either 'on' or 'ON', with or without corresponding 'off' or 'OFF'. Thanks for the explanation! I understand now why it works on windows and not linux and to the comment of Who cares what happens on a Windows box? I do. This script needs to be cross platform usuable. Its no good using code that defects on different operating system. Now someones explained i can work arround it. Jamie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Google question
brian... there are a number of ways you can do this... you can easily write a script/app in perl (i'm assuming that php provides something similar...) that allows you to contact the google url, and submit your target url as a query in the google submit. you can then easily parse the results to see if you find your target site in the respone... if you can't find what you want from php.net/etc... use perl.. check out the www::mechanize, html::treebuilder, etc.. from the cpan.org site... -bruce -Original Message- From: Brian Dunning [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 11:27 AM To: [EMAIL PROTECTED] Subject: [PHP] Google question Does anyone know a way to programmatically determine if a given URL is already in Google's index? I don't see anything like this in their documentation. Thanks, - Brian -- 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] php .vs cgi app..
As I know, if you run PHP as a module for Apache is faster than running as CGI. Also Python scripts can be run as a module(faster) or as CGI. The main disadvantage for Python as a module is that you don't get all the facilities of CGI. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Limitation to URL params on Include()?
[snip] ... $block=new Block($header,$content,$link,$andsuch); $block-display(); ... [/snip] That's very cool... Thank you... alex hogan * The contents of this e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom it is addressed. The views stated herein do not necessarily represent the view of the company. If you are not the intended recipient of this e-mail you may not copy, forward, disclose, or otherwise use it or any part of it in any form whatsoever. If you have received this e-mail in error please e-mail the sender. * -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: [mysql]Problem with PHP5
Ciprian Constantinescu wrote: I have installed PHP5 and i get the following error from a script that was working on PHP4 Fatal error: Call to undefined function mysql_pconnect() in D:\htdocs\cdalex\Connections\listacon.php on line 9 MySQL is no longer embedded in PHP, as of PHP 5. Depending on your platform, you will either need to build PHP 5 with support for MySQL, or you will need to modify php.ini to load in the MySQL extension. -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] PHP JAVA Error on linux
I just edit php.ini and increase it to 200 its not work any suggestion does apache effect ? cuz its Usage memory limitid to 98M - Original Message - From: Alawi albaity [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 8:55 PM Subject: Re: [PHP] PHP JAVA Error on linux I try this its also not work ? ini_set(memory_limit,80M); echo 'pre'; // Outputs all the result of shellcommand ls, and returns // the last output line into $last_line. Stores the return value // of the shell command in $retval. $last_line = system('/usr/java/j2sdk1.4.2_05/bin/java -cp /home/hrrajco/public_html/test/lib/itext.jar com.lowagie.tools.encrypt_pdf /home/hrrajco/public_html/test/test.pdf /home/hrrajco/public_html/test/encrypted.pdf user master 128', $retval); // Printing additional info echo ' /pre hrLast line of the output: '.$last_line.' hrReturn value: '.$retval; ? - Original Message - From: raditha dissanayake [EMAIL PROTECTED] Cc: php-general [EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 6:19 PM Subject: Re: [PHP] PHP JAVA Error on linux Alawi albaity wrote: Java 2 SDK 1.4.2 PHP 4.3.3 linux fedora 1 the command is work fine from terminal but its not work fine from php give me this msg when I use exec system passthru : Error occurred during initialization of VM Could not reserve enough space for object heap What exactly are you refering to? are you trying to use the PHP Java extension or are you trying to execute an 'external java program'? if it's the latter you will need to increase the memory limit (default would be 8MB - not enough to start the JVM). If it's the former http://www.raditha.com/php/java.php might help. -- Raditha Dissanayake. - http://www.raditha.com/megaupload/upload.php Sneak past the PHP file upload limits. -- 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
[PHP] Re: MCAL Function
I've been trying to do that all afternoon Torsten. Had the browser page sat there for a few hours now, only just got time to read it. -- - Michael Mason Arras People www.arraspeople.co.uk - Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Harlequin [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I'll have a look at that Torsten, thanks. Can a user create their own entries then...? I guess you'll have to create the admin frontend/backend yourself. The package is mostly for presenting/displaying calender data. Take a look at the package description for its intended use and features. Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Re: using the mssql functions on a linux server
On Mon, 12 Jul 2004 14:54:15 -0400 [EMAIL PROTECTED] (Edward Peloke) wrote: Is this the only way around it? Can I get to mssql without using the mssql extension? I don't think so. Plus, the entire setup is a bit complicated and you need FreeTDS as well as UnixODBC installed, plus some /etc configuration magic. FWIW, I have an article on the subject. It's in Romanian, but the commands, configuration files and testing PHP code are clearly marked and are of course universal, so perhaps you can make do with just some copypaste. See here: http://rowd.zuavra.net/articole/11/p2/ P.S.: If anyone wishes to put an English version on their site please contact me in private. I'll take the time to translate it. I haven't put the English version on the Web myself since my site is meant to be in Romanian only. -- Skippy - Romanian Web Developers - http://ROWD.ORG -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google question
On Wed, 14 Jul 2004 11:27:09 -0700, Brian Dunning [EMAIL PROTECTED] wrote: Does anyone know a way to programmatically determine if a given URL is already in Google's index? I don't see anything like this in their documentation. Thanks, The Google API allows this sort of query. http://www.google.com/apis/index.html -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: using the mssql functions on a linux server
Skippy wrote: Is this the only way around it? Can I get to mssql without using the mssql extension? I don't think so. Plus, the entire setup is a bit complicated and you need FreeTDS as well as UnixODBC installed, plus some /etc configuration magic. Why is UnixODBC necessary? I've been using PHP and FreeTDS to connect to a MS SQL 7 server for the past 2+ years and I've never touched UnixODBC. Is there something I'm missing by not using UnixODBC as well? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google question
That's the documentation I was referring to. Are you sure? Like I said, I didn't see anything like that in there. On Jul 14, 2004, at 12:13 PM, Greg Donald wrote: On Wed, 14 Jul 2004 11:27:09 -0700, Brian Dunning [EMAIL PROTECTED] wrote: Does anyone know a way to programmatically determine if a given URL is already in Google's index? I don't see anything like this in their documentation. Thanks, The Google API allows this sort of query. http://www.google.com/apis/index.html -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php - Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] Re: shuffle
yep, that causes nothing to be returned. -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 2:20 PM To: [EMAIL PROTECTED] Subject: [PHP] Re: shuffle Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am using a db class which has the following method for cycling through the records function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); $status=is_array($this-Record); Hi Edward, first you are using $this-record and then $this-Record (r / R)? Have you tried adding this line?: shuffle($this-record); return ($status); } where queryID is set by running the query. It works fine and I can run it as follows $sql-query(select * from clients); while ($sql-nextRecord()){ echo $sql-getField(name);} Problem is, I want to have the array shuffled so the rows are randomly displayed each time the user hits the page. I have tried shuffle around the @mysql_fetch_array call and $this-queryID but nothing seems to work...any ideas? Thanks, Eddie Regards, Torsten Roehr -- 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] shuffle
it is strange... if I do this: function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); $test=$this-record; echo $test; $status=is_array($this-record); return ($status); } Array is echoed for $test so I know it is an array but if I add this: shuffle($test); I get the warning that shuffle() expects parameter 1 to be an array, boolean given. -Original Message- From: Edward Peloke [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 2:23 PM To: Php-General Subject: [PHP] shuffle I am using a db class which has the following method for cycling through the records function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); $status=is_array($this-Record); return ($status); } where queryID is set by running the query. It works fine and I can run it as follows $sql-query(select * from clients); while ($sql-nextRecord()){ echo $sql-getField(name);} Problem is, I want to have the array shuffled so the rows are randomly displayed each time the user hits the page. I have tried shuffle around the @mysql_fetch_array call and $this-queryID but nothing seems to work...any ideas? Thanks, Eddie WARNING: The information contained in this message and any attachments is intended only for the use of the individual or entity to which it is addressed. This message may contain information that is privileged, confidential and exempt from disclosure under applicable law. It may also contain trade secrets and other proprietary information for which you and your employer may be held liable for disclosing. You are hereby notified that any unauthorized dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify [EMAIL PROTECTED] by E-Mail and then destroy this communication in a manner appropriate for privileged information. -- 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] shuffle
Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] it is strange... if I do this: function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); $test=$this-record; echo $test; $status=is_array($this-record); return ($status); } Array is echoed for $test so I know it is an array but if I add this: shuffle($test); I get the warning that shuffle() expects parameter 1 to be an array, boolean given. Have you tried shuffling in MySQL?: SELECT * FROM table ORDER BY RAND() Regards, Torsten -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Site Planning
Can anyone point me to a good article about site planning before coding. I searched the net but couldn't find a good one? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Google question
On Wed, 14 Jul 2004 12:30:30 -0700, Brian Dunning [EMAIL PROTECTED] wrote: That's the documentation I was referring to. Are you sure? Like I said, I didn't see anything like that in there. I found the docs in the API download iirc. It says After you download the kit, simply unzip it and open the file README.txt to get started. on: http://www.google.com/apis/download.html Plus you can search the web for free sample PHP scripts people made for use with the Google API. -- Greg Donald http://destiney.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
RE: [PHP] shuffle
I didn't try that but it works great...thanks! -Original Message- From: Torsten Roehr [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 14, 2004 3:53 PM To: [EMAIL PROTECTED] Subject: Re: [PHP] shuffle Edward Peloke [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] it is strange... if I do this: function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); $test=$this-record; echo $test; $status=is_array($this-record); return ($status); } Array is echoed for $test so I know it is an array but if I add this: shuffle($test); I get the warning that shuffle() expects parameter 1 to be an array, boolean given. Have you tried shuffling in MySQL?: SELECT * FROM table ORDER BY RAND() Regards, Torsten -- 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] DAYLIGHT SAVINGS TIME OR NOT
?php // here is the date. We wont worry about the time. $processdate = 07/04/2004 14:45; What about different formats like 07-04-2004 14:45:00 ...You have a good point, Curt. We could modify the code just a little bit for the same then. Instead of exploding with /, we may opt for - explosion. Typically, I have observed users using one specific format for their entire application. A simple change in the function can make the function suit their requirements. // calling the function. // 1 means the date is in a daylight savings time // 0 means the date is not in a daylight savings time one thing to note, not all zones, even in the US honor the DST. this is a rather sepecific function. ...I believe Indiana and Arizona do not honor daylight savings time. They switch back and forth from EST to CST (Indiana) and MST to PST (Arizona) if I am not mistaken. If it is not applicable to a particular user(s), they should not use this function. This function could be useful for only those who intend to use it. echo daylight($processdate); // now the function function daylight($mydate) { // separating the date and time $datetime = explode( ,$mydate); // exploding the components of date $dateexplode = explode(/,$datetime[0]); Instead of exploding stuff around, make your date argument compatible with the strtotime() function, it will return a unix timestamp or -1 if it fails to parse the date. ...Good point. I should write something with strtotime(). Thank you. // if the date is between Jan-Mar, NO DAYLIGHT // if the date is between Nov-Dec, NO DAYLIGHT if ($dateexplode[0]4 or $dateexplode[0]10) { return 0; } // if the date is not in the above zone, lets see // if the date is between May-Sep, DAYLIGHT elseif ($dateexplode[0]4 and $dateexplode[0]10) { return 1; } Since you have a timestamp as I suggested above, you simply need to pull the month out, and then check the month value: ...I used the above method to indicate to users what is going on. I did not use switch :: case because I did not want a month-to-month checking. I wanted to check and process for only months 4 through 10 and for only those dates in month 4 10 that made a difference between CST and CDT (or any time zone change, in that case). $month = strftime('%m', $utimestamp); swtich ($month) { case '01': case '02': ... return 0; case '05': case '06': ... return 1; } else { // we are going to pull out what date is a sunday // then we compare our date's day-of-month with the day-that-is-sunday $interestday = 0; // lets see what happens in april - first sunday of the month if ($dateexplode[0]==4) { // looping the first seven days to see what day is a sunday for ($i=1; $i=7; $i++) { $myday = date(w,mktime(0,0,0,$dateexplode[0],$i,$dateexplode[2])); if ($myday==0) $interestday = $i; } // now that we got what day is a sunday, lets see // if our date's day-of-month is greater than this or not // if it is greater, then DAYLIGHT if ($dateexplode[1]=$interestday) return 1; else return 0; } // lets see what happens in october - last sunday of the month elseif ($dateexplode[0]==10) { // looping the first seven days to see what day is a sunday for ($i=25; $i=31; $i++) { $myday = date(w,mktime(0,0,0,$dateexplode[0],$i,$dateexplode[2])); if ($myday==0) $interestday = $i; } // now that we got what day is a sunday, lets see // if our date's day-of-month is greater than this or not // if it is less, then DAYLIGHT if ($dateexplode[1]=$interestday) return 1; else return 0; } } now instead of doing all that mundane work, we simply have to find out if the days are outabounds for the paticular months. ...Your code looks neater. Thank you. // obtain the day of month $dayofmonth = (int)strftime('%d', $utimestamp); // and the day of week $dayofweek = strftime('%u', $utimestamp); if ($month == '04') { // If its the first week of 04 if ($dayofmonth = 7) { // and we havn't reached sunday, return 0 return ($dayofweek 7) ? 0: 1; } return 1; // otherwise we're passed it. } elseif ($month == '10') { // look at the last week october if ($dayofmonth = 24) { // see if we're still in the zone. return ($dayofweek 7) ? 1: 0; } return 1; } // something went wrong. return -2; } Curt ...Thanks for your comments, Curt. Whenever I write a better code, I will post it here. Chirag Shukla. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] shuffle
* Thus wrote Edward Peloke: it is strange... if I do this: function nextRecord(){ $this-[EMAIL PROTECTED]($this-queryID); Don't use the @ sign, it is bad practice. $test=$this-record; echo $test; I'm not sure what this is for. $status=is_array($this-record); return ($status); } Array is echoed for $test so I know it is an array but if I add this: shuffle($test); Where in the world did $test get set from? if $test is expected to be the value of $this-record, then all your going to be doing is shuffling the order of the columns. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] New object model
Is there an ini-file setting so that objects are passed by value as in PHP 4? If so, how long is this likely to be supported? Thanks, Troy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: New object model
Troy S wrote: Is there an ini-file setting so that objects are passed by value as in PHP 4? If so, how long is this likely to be supported? I believe this is possible with the following setting in php.ini: zend.ze1_compatibility_mode = On This should turn on PHP5's backwards compatibility with PHP4 (meaning that the objects are passed by value instead of by reference... the old way). -- Regards, Ben Ramsey http://benramsey.com --- http://www.phpcommunity.org/ Open Source, Open Community Visit for more information or to join the movement. --- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] upload an image and store it in mysql
I have php code that takes text input from a webpage and and stores it in a mysql data base. I tried uploading small images (jpg) using basically the same syntax but they don't make it into the data base. Does anyone know of a simple tutorial that shows how to do this? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] upload an image and store it in mysql
Five wrote: I have php code that takes text input from a webpage and and stores it in a mysql data base. I tried uploading small images (jpg) using basically the same syntax but they don't make it into the data base. Does anyone know of a simple tutorial that shows how to do this? although I'm against storing files in databases... $file = mysql_real_escape_string(file_get_contents($_FILES['yourfile']['tmp_name'])); $query = INSERT INTO yourtable (imgdata) VALUES ('$file'); -- ---John Holmes... Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/ php|architect: The Magazine for PHP Professionals www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] [Q] PHP 101 -- How to check for session existence?
Just a quick comment. It's recommended to use $_SESSION instead of $HTTP_SESSION_VARS, $_POST instead of $HTTP_POST_VARS, etc. Look at the docs about superglobals for more. On Wed, 14 Jul 2004 16:18:14 -0700, Michael T. Peterson [EMAIL PROTECTED] wrote: To protect certain web pages on my site, I am using the following code inserted at the very beginning (top) of the page: ?php include_once( 'init.php'); if( isset( $HTTP_SESSION_VARS['session_id'] ) == FALSE || isset( $HTTP_SESSION_VARS['username'] ) == FALSE ){ header( 'Location: '.MEMBER_LOGIN_PAGE ); } ? !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html ... Dreamweaver template code here... /html Is this a recommended way of doing this? Next, to initialize the session, a login page posts the username - password information to a PHP script, check_login.php. The login info is checked against a database and, if all is kosher, a new session is created and the user is dispatched to the site's home page. Here's the relevant code: ?php include_once( 'init.php'); ... $username = trim($HTTP_POST_VARS['username']); $password = trim($HTTP_POST_VARS['password']); ... if username and password check out, initialize a session... $HTTP_SESSION_VARS['username'] = $username; $HTTP_SESSION_VARS['session_id'] = crypt( $password ); header( 'Location: '.SITE_HOME_PAGE ); ... ? Does this make sense? Am I missing something? Any review, advice, etc., would be much appreciated. Cheers, Michael -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php !DSPAM:40f5bd3942909266016200! -- DB_DataObject_FormBuilder - The database at your fingertips http://pear.php.net/package/DB_DataObject_FormBuilder paperCrane --Justin Patrin-- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Simple POP3 mailbox checker script
Hello, On 07/14/2004 07:24 AM, I.A. Gray wrote: Is there are a simple way of checking quickly using PHP: 1) How many email messages on a POP3 mailbox 2) How many new email messages on a POP3 mailbox 3) The amount of memory in Kb or Mb used up on the POP3 mail box I want to be able to show these on our customer control panel. Also I want to use cron and a php script to be able to regularly check our customers haven't exceeded their mail quota. At the moment we don't have our own server and use a multiweb hosting account. You may want to try this POP 3 class that comes with an examples that demonstrates exactly how to do that: http://www.phpclasses.org/pop3class -- Regards, Manuel Lemos PHP Classes - Free ready to use OOP components written in PHP http://www.phpclasses.org/ PHP Reviews - Reviews of PHP books and other products http://www.phpclasses.org/reviews/ Metastorage - Data object relational mapping layer generator http://www.meta-language.net/metastorage.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php