[PHP] Re: subscription
UNSUBSCRIBE -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP mysql admin?
Tried to download this but it bombs after about 55k of the 895k. Seriously broken Chris Christian Dechery wrote: phpMyAdmin is very nice... but not even close to Mysqlfront... try it out... http://www.mysqlfront.de/ At 10:38 27/8/2001 -0500, Joseph Bannon wrote: Thanks. I'll give it a try. Joseph -Original Message- Try phpMyAdmin http://phpwizard.net/ - Original Message - Are there any free PHP mysql database admin programs out there? p.s: meu novo email é [EMAIL PROTECTED] . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] numrows
Should be ORDER BY ID, DESC Chris Martin Kampherbeek wrote: What's wrong with this? I get the error: Warning: Supplied argument is not a valid MySQL result resource in /home/sites/site49/web/vragen/vragen.php on line 42 $query = SELECT * FROM question WHERE answer'1' AND id250 ORDER BY id DESC; $result = MYSQL_QUERY($query); $number = MYSQL_NUM_ROWS($result); -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] numrows
Sorry - it's late! I knew that he said. Raphael Pirker wrote: Hi Chris, FYI: Chris Fry [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Should be ORDER BY ID, DESC actually it shouldn't be this way, since DESC is an option of the ORDER BY command meaning DESC... ORDER BY [column] [ASC | DESC] (ASC is default) so the original code was correct -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Informix - ifx_num_rows
This function does not work reliably with most databases, not just Informix. Caused me a lot of problems as I have a number of pages where I'd like to display a No records found message. Just have to do it the hard way. I think there's a disclaimer in the docs about this being unreliable. Chris Martín Marqués wrote: On Jue 23 Ago 2001 16:50, you wrote: Hi all, I have Php 4.0.6 on Linux with Informix Dynamic Server 7.31.UD1. I try to use the function ifx_num_rows after afx_query and the value returned is always 0, but i can see the result with ifx_fetch_row. Does Anyone know if there is a bug with this function ifx_num_rows ? From the php informix manual: int ifx_num_rows (int result_id) Gives the number of rows fetched so far for a query with result_id after a ifx_query() or ifx_do() query. Saludos... :-) -- Porqué usar una base de datos relacional cualquiera, si podés usar PostgreSQL? - Martín Marqués |[EMAIL PROTECTED] Programador, Administrador, DBA | Centro de Telematica Universidad Nacional del Litoral - -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sorting IP Address Data
Chris, What order are you trying to achieve? These look to be in order? Chris Chris Aitken wrote: Hi all, Just a quick one, I am pulling a whole Class C list of IP addresses, and im trying to sort them in order, but im getting it displayed 127.0.0.1 127.0.0.10 127.0.0.100 127.0.0.101 127.0.0.102 etc. Is there any other way to sort this thinking they are numbers, rather than text ? Thanks Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 __-__ *** Big Brother *** It just shows that the dull will rule the world. And we will be watching it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Sorting IP Address Data
Chris, Understand the problem now. All you need to keep is the last octect of the IP Address. The following code snippet generates an array entry for each ip. The array is then sorted and the result prepended with the base IP. ? $strBaseIP = 127.0.0.; for ($i=0;$i=255;$i++) { $strIP = $i; print IP = $strIPbr; $aryIP[$i] = $strIP; } sort($aryIP); for ($i=0;$i=255;$i++) { $strIP = $strBaseIP.$aryIP[$i]; print IP = $strIPbr; } ? Pretty rough and ready but it should point you in the right direction. If you need to sort IP's from differnet subnets then you need to split the IP as per the previous suggestion. Chris Chris Aitken wrote: Hi all, Just a quick one, I am pulling a whole Class C list of IP addresses, and im trying to sort them in order, but im getting it displayed 127.0.0.1 127.0.0.10 127.0.0.100 127.0.0.101 127.0.0.102 etc. Is there any other way to sort this thinking they are numbers, rather than text ? Thanks Chris -- Chris Aitken - Administration/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 __-__ *** Big Brother *** It just shows that the dull will rule the world. And we will be watching it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] warnings in php4
Just set warnings to off in your php.ini - it's on by default Chris Melania Popescu wrote: I have a lot of php scripts developed with php3. I've installed php4 and I get some warnings when I evaluate variables there are not set (are empty). In php3 there was no problem (no warning). If I modify the code by using empty($var) or isset($var) it's ok, but there are lots of such issues. How could I manage this without major changes? __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How can i make it so....
Steve, If you move your validation code to the top of the script you can use the header (Location: loggedin.php); exit; to go to the next page if the user is validated Chris Steve Wright wrote: Hi, I have modified an authentication script to my own liking, but being new, don't know how to go about my next stage. Once the user has inserted the UN, and PW, it is campared against the MySQL database, nowm what i want to do is get rid of the login form which still appears, and is very annoying. I can't seem to see anything on this particular subject, but if their is any, can u point me in the right direction. It can be viewed at: http://www.stevewrightonline.co.uk/auth/auth.php UN: guest PW: guest Here's the code: P FORM ACTION=? echo $PHP_SELF; ? METHOD=POST PUserName:br input type=text name=PHP_AUTH_USER size=15 /p PPassword:br input type=password name=PHP_AUTH_PW size=15 /p input type=submit value=Log In /form /P ?php $auth = false; // user is not authenticated yet if (isset( $PHP_AUTH_USER ) isset($PHP_AUTH_PW)) { // Connect the MySQL Database mysql_connect( **.net', '**', '***' ) or die ( 'Unable to connect to server.' ); // Select database on MySQL server mysql_select_db( 'Demonstration' ) or die ( 'Unable to select database.' ); // the query $sql = SELECT * FROM users WHERE UserName = '$PHP_AUTH_USER' AND Password = '$PHP_AUTH_PW'; // Execute query and put results in $result $result = mysql_query( $sql ) or die ( 'Unable to execute query.' ); // Get number of rows in $result. $num = mysql_numrows( $result ); if ( $num != 0 ) { // matching row was found - user authenticated. $auth = true; } } if ( ! $auth ) { echo 'Sign In Required.'; exit; } else { echo 'pYou are Signed In!/p'; } ? -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] How can i make it so.
Steve, The following should work:- ?php $auth = false; // user is not authenticated yet if (isset( $PHP_AUTH_USER ) isset($PHP_AUTH_PW)) { // Connect the MySQL Database mysql_connect( **.net', '**', '***' ) or die ( 'Unable to connect to server.' ); // Select database on MySQL server mysql_select_db( 'Demonstration' ) or die ( 'Unable to select database.' ); // the query $sql = SELECT * FROM users WHERE UserName = '$PHP_AUTH_USER' AND Password = '$PHP_AUTH_PW'; // Execute query and put results in $result $result = mysql_query( $sql ) or die ( 'Unable to execute query.' ); // Get number of rows in $result. $num = mysql_numrows( $result ); if ( $num != 0 ) { // matching row was found - user authenticated. $auth = true; } } if ( ! $auth ) { echo 'Sign In Required.'; } else { // you may need to pass the user id password here if you need it later on header (Location: loggedin.php); exit; } ? P FORM ACTION=? echo $PHP_SELF; ? METHOD=POST PUserName:br input type=text name=PHP_AUTH_USER size=15 /p PPassword:br input type=password name=PHP_AUTH_PW size=15 /p input type=submit value=Log In /form /P Regards Chris -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] sendmail administration api?
There's one included in Webmin:- http://www.webmin.com/webmin Chris Christopher Cheng wrote: Does anybody know any Sendmail Administration API for PHP? Thanks -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Help With Includes
John, Haven't used this before but if you set id before the include:- $id=2; script language=php include(/export/home/bayarea.net/htdocs/webclient.php3); /script I'm assuming that you don't have control of the web server - if you do just add html to the list of extensions parsed by php then: $id=2; include(/export/home/bayarea.net/htdocs/webclient.php3); Chris John Holcomb wrote: Help please! I'm trying to use an include with my HTML file. Inside my HTML file I've tried: 1) script language=php include(/export/home/bayarea.net/htdocs/webclient.php3?id=2); /script AND 2) script language=php include(http://www.bayarea.net/webclient.php3?id=2;); /script According to the PHP documentation #2 should work, but I keep getting an error saying that it's unable to include the file. #1 works when I leave off ?id=2, but I need to pass it a variable. Any help would be appreciated. Thanks, John __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Dynamic variable names
Casey, You need to loop around on the next page to find the variables - they are all in HTTP_POST_VARS:- while (list($key, $val) = each($HTTP_POST_VARS)) { print Key = .$key. Value = .$val.br; } Chris [EMAIL PROTECTED] wrote: Hi, I'm trying to access variables coming in through a form. I have assigned them dynamic names on the form page (e.g., $username, where username can change). Now how can I access these variables on the next page? I tried: $($people[username]) where username is a field and people is a MySQL record. This doesn't work though. Is this not possible? I'm essentially trying to make a page where someone can edit permissions for any number of users, and input value=$username. How else can I do this?? Thanks tons! -Casey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Fonts with PDFlib
Here's the magic code:- putenv(PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr); This works well. Chris James Willard wrote: Hello, I have what should be a fairly simple question, but it's something I've been struggling with for the past couple of days. Whenever I create a PDF document in PHP, the font that is used is always an outline (not a solid letter). I have searched the mailing list archives and online help but to no avail. I have even used the example code to produce something like: PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr); $font = pdf_findfont($pdf, Times-Roman, host, 0); if ($font) { pdf_setfont($pdf, $font, 10); } Could someone please provide a pointer to some useful information on PDF fonts? Thanks, James Willard [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Fonts with PDFlib
James, Have you set text rendering? I thought that the default was for solid text but maybe.. pdf_set_value($pdf, textrendering, 1); will give you outline text, 0 for fill (default) or:- pdf_set_text_rendering -- Determines how text is rendered Description void pdf_set_text_rendering (int pdf document, int mode) The pdf_set_text_rendering() function determines how text is rendered. The possible values for mode are 0=fill text, 1=stroke text, 2=fill and stroke text, 3=invisible, 4=fill text and add it to clipping path, 5=stroke text and add it to clipping path, 6=fill and stroke text and add it to cliping path, 7=add it to clipping path. Chris James Willard wrote: Chris, I already had: PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr); in the .php file. I went ahead and added the putenv() function in too, but it didn't make a difference, the fonts are still hollow. I have copied the fonts/ directory of PDFlib-4.0.1 to /usr/local and they are world-readable. Do you have any other suggestions as to what could be wrong? Thanks, James Willard [EMAIL PROTECTED] -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Friday, July 20, 2001 1:27 AM To: James Willard Cc: [EMAIL PROTECTED] Subject: Re: [PHP] Fonts with PDFlib Importance: High Here's the magic code:- putenv(PDFLIBRESOURCE=/usr/local/apache/htdocs/fonts/pdflib.upr); This works well. Chris James Willard wrote: Hello, I have what should be a fairly simple question, but it's something I've been struggling with for the past couple of days. Whenever I create a PDF document in PHP, the font that is used is always an outline (not a solid letter). I have searched the mailing list archives and online help but to no avail. I have even used the example code to produce something like: PDF_set_parameter($pdf, resourcefile, /usr/local/fonts/pdflib.upr); $font = pdf_findfont($pdf, Times-Roman, host, 0); if ($font) { pdf_setfont($pdf, $font, 10); } Could someone please provide a pointer to some useful information on PDF fonts? Thanks, James Willard [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net
Re: [PHP] Running PHP as a cron job....
Check the path to your php cgi executable - which php - you'll probably find that it's #!/usr/local/bin/php This is what the no such file or directory is referring to. Chris Don Read wrote: On 08-Jul-01 James, Yz wrote: Hi Ben, When running it as a normal PHP file, I get the cron daemon emailing me stuff like: automation/mail.php: ?: No such file or directory automation/mail.php: =: command not found automation/mail.php: =: command not found automation/mail.php: line 7: syntax error near unexpected token `mail(emailaddress@takenout,' automation/mail.php: line 7: `mail(emailaddress@takenout, mail test, $mailcontent, $sender);' try a wrapper When running it with the Perl style line at the top (as you suggested) I get, no such file or directory. The script is Chmodded to 755 in both cases. And I saved it as a .php and .cgi file (with the root to bin/php in it). God knows what I'm doing wrong ;) James. How are you executing the script? Does it come by and run 'php yourscript.php' or does the script have a shebang ('#!/usr/bin/php') in it? I've found that works well... just put that as the first line, and it behaves as a shell script (after you make it executable, of course) Ben -Original Message- From: James, Yz [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 08, 2001 3:39 PM To: [EMAIL PROTECTED] Subject: [PHP] Running PHP as a cron job Hi all, This is probably going to sound incoherant, but Do I have to do anything (other than change the permissions of a php file) to get it to run as part of a cron job? I created an extremely simple file that should just send a blank email to me (using mail()). I got an email from the cron daemon saying, bad token, or something like that, yet when executed through a browser, the script behaves as it should. Do I have to write the php scripts differently to how I would if they were to be displayed in a browser? Neeed...Slp ;) Cheers, James. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Don Read [EMAIL PROTECTED] -- It's always darkest before the dawn. So if you are going to steal the neighbor's newspaper, that's the time to do it. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Printingt Variables in Included Text
Maybe a $ in front of the variables? $pullquote1='Test for pull quote'; $pullquote2='pullquote2 text'; $keywords='shdjkashd kasdj d kjdjdjasd'; Chris Jeremy Bowen wrote: Hey, I have a website where I use header and footer files in a includes director to establish the header and footer of each page. They are pretty simple, mostly straight up html. The website is kind of an online magazine and what I want to do is print pull quotes out of each story. So in my file lests say index.phtml I have: ? include(/path/to/file/header.inc) ? ? pullquote1='Test for pull quote'; pullquote2='pullquote2 text'; keywords='shdjkashd kasdj d kjdjdjasd'; title='Title of Page'; ? ? include(path/to/file/footer.inc) ? --- In the header file I have ? print($pullquote1) ? It doesn't work!!! My problem is that I cannot get the variables to print in the included text. Isn't the include text run through the pre-processor? What am I doing wrong here? I want one pullquote to print in the header fil and one in the footer. I am going nuts trying to figure out what the problem is! Thanks, Jeremy -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Why is this not working
Peter, You are correct - I did this last year: $strEncryptedPasswd = crypt($Password, \0); $strUserInfo = $UserID.:.$strEncryptedPasswd.\n; where $Password is the input password $UserID is the user id. Just read your .htpasswd file into an array and cycle through it writing out each line in turn if the user id doesn't match the one you are changing and write out your new line if it matches. For a new one just append to the end of the file. Don't profess to understand the Salt component of this but it works for me. Chris Fry Peter Dudley wrote: can you write directly to the password file using crypt() instead of trying to run the htpasswd program? I think I used to do this in Perl, but it's been a LONG time since I tried it. I think it worked, though. Pete. PS: I'm also pretty sure that if you can't write direclty to the .htpasswd file, you can specify multiple password files in your .htaccess file, and you should be able to write to an alternative password file. YoBro [EMAIL PROTECTED] wrote in message 9e1okc$3de$[EMAIL PROTECTED]">news:9e1okc$3de$[EMAIL PROTECTED]... The .htpasswd file lives in the root of my user account. ie: [www] directory .htpasswd file It then goes: [www] | [public_html] [htocs] | All website content etc If I go beyond the www directory, I get a list of hundreds of directories and files. This is where I found the the htpasswd executable under /usr/local/bin Even if i define that path in my code it is still not working The output of ls the root beyond www dir is far to much to put into this message. Is that what you were asking, or am on the wrong track? YoBro MaD dUCK [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... also sprach YoBro (on Fri, 18 May 2001 10:45:12AM +1200): If I try su nobody it asks for nobody's password. If i enter no password a I get Authentication denied. you aren't root. can you give me an output of 'ls -l path/to/.htpasswdfile' martin; (greetings from the heart of the sun.) \ echo mailto: !#^.*|tr * mailto:; net@madduck -- printer not ready. could be a fatal error. have a pen handy? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] HELP !!!!
Try phpMyAdmin Chris Hassan Arteaga wrote: Hi all !!! I need URL to download some visual tool to create Databases, tables, etc..for mySQL Thanks -- M. Sc. Hassan Arteaga Rodríguez Microsoft Certified System Engineer Network Admin, WEB Programmer FUNDYCS, Ltd [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] date list
Jon, Just had to do almost exactly this - here's one solution. The tricky bit was getting the number of days in the month - you have to look at next month! This generates a list for 12 months starting with the current month and outputs display stuff as well. In our scenario this is passed to a script which grabs records from a database and produces a report for the month selected and the previous month so the range of values is always for 2 months. Ours goes backwards - you'll need to adjust it to run forwards. select name=strReportMonth size=1 ? // Get This Month $strThisMonth = date('m'); $strThisYear = date('Y'); // convert to integer $strThisMonth++; $strNextMonth = $strThisMonth; $strPrevYear = $strThisYear; for($i=0;$i=12;$i++) { $strThisMonth--; if($strNextMonth == 0) { $strNextMonth = 12; } if($strNextMonth == 13) { $strNextMonth = 1; } // How many days in this month $lastday = mktime (0,0,0,$strNextMonth,0,$strThisYear); $last = strftime (%d, $lastday); $strThisMonthTS = mktime (0,0,0,$strNextMonth,0,$strThisYear); $strThisMonthName = strftime (%B, $strThisMonthTS); $strNextMonth--; if($strThisMonth == 0) { $strThisMonth = 12; $strThisYear--; } $strPrevMonth = $strThisMonth -1; if($strPrevMonth == 0) { $strPrevMonth = 12; $strPrevYear--; } $strPrevMonthTS = mktime (0,0,0,$strThisMonth,0,$strPrevYear); $strPrevMonthName = strftime (%B, $strPrevMonthTS); if($strPrevMonth 10) { $strPrevMonth = 0.$strPrevMonth; } if($strThisMonth 10) { $strThisMonth = 0.$strThisMonth; } ? option value=? print $strPrevMonth./01/.$strPrevYear.|.$strThisMonth./.$last./.$strThisYear.|.$strThisMonthName.|.$strThisYear.|.$strPrevMonth.|.$strThisMonth.|.$strPrevMonthName.|.$strPrevYear; ?? print $strThisMonthName. .$strThisYear; ? ? } ? /select Jon Rosenberg wrote: I need to make a select list for a web page in the following format: 01/01/01-01/07/01 01/08/01-01/14/01 01/15/01-01/21/01 etc etc till the end of 2002 and further in the future eventually I'd like to make PHP generate this for me so I don't have to handcode it for each year in the future. I've looked at the date/time functions and I'm a bit confused. Any help would be appreciated. Thanks! Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] date list
OOOps! I got my stuff from the annotated manual - that'll teach me. Chris Tomasz Abramowicz wrote: ahem $daysinmonth = date('t'); - Original Message - From: Chris Fry [EMAIL PROTECTED] To: Jon Rosenberg [EMAIL PROTECTED] Cc: PHP List [EMAIL PROTECTED] Sent: Wednesday, May 02, 2001 3:06 AM Subject: Re: [PHP] date list Jon, Just had to do almost exactly this - here's one solution. The tricky bit was getting the number of days in the month - you have to look at next month! This generates a list for 12 months starting with the current month and outputs display stuff as well. In our scenario this is passed to a script which grabs records from a database and produces a report for the month selected and the previous month so the range of values is always for 2 months. Ours goes backwards - you'll need to adjust it to run forwards. select name=strReportMonth size=1 ? // Get This Month $strThisMonth = date('m'); $strThisYear = date('Y'); // convert to integer $strThisMonth++; $strNextMonth = $strThisMonth; $strPrevYear = $strThisYear; for($i=0;$i=12;$i++) { $strThisMonth--; if($strNextMonth == 0) { $strNextMonth = 12; } if($strNextMonth == 13) { $strNextMonth = 1; } // How many days in this month $lastday = mktime (0,0,0,$strNextMonth,0,$strThisYear); $last = strftime (%d, $lastday); $strThisMonthTS = mktime (0,0,0,$strNextMonth,0,$strThisYear); $strThisMonthName = strftime (%B, $strThisMonthTS); $strNextMonth--; if($strThisMonth == 0) { $strThisMonth = 12; $strThisYear--; } $strPrevMonth = $strThisMonth -1; if($strPrevMonth == 0) { $strPrevMonth = 12; $strPrevYear--; } $strPrevMonthTS = mktime (0,0,0,$strThisMonth,0,$strPrevYear); $strPrevMonthName = strftime (%B, $strPrevMonthTS); if($strPrevMonth 10) { $strPrevMonth = 0.$strPrevMonth; } if($strThisMonth 10) { $strThisMonth = 0.$strThisMonth; } ? option value=? print $strPrevMonth./01/.$strPrevYear.|.$strThisMonth./.$last./.$strThisYe ar.|.$strThisMonthName.|.$strThisYear.|.$strPrevMonth.|.$strThisMont h.|.$strPrevMonthName.|.$strPrevYear; ?? print $strThisMonthName. .$strThisYear; ? ? } ? /select Jon Rosenberg wrote: I need to make a select list for a web page in the following format: 01/01/01-01/07/01 01/08/01-01/14/01 01/15/01-01/21/01 etc etc till the end of 2002 and further in the future eventually I'd like to make PHP generate this for me so I don't have to handcode it for each year in the future. I've looked at the date/time functions and I'm a bit confused. Any help would be appreciated. Thanks! Jon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http
Re: [PHP] php sucks
I guess the PHP Group has plenty of witnesses to support their case! Chris Jack Lauman wrote: After 25 years in the advertising business, I'd say the PHP Group has a hell of a good copyright infringement and defamation case here. The bums are in Manchester, England... Jack idban secandri wrote: i found this when surfing this morning http://www.phpsucks.net/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Where is php.ini located by default?
It's /usr/local/lib/php.ini Chris PHPBeginner.com wrote: /usr/lib/php is the default configuration... if I am not worng... 'cause I have some memory leaks recently :-) have you tried : # locate php.ini # locate php.ini-dist while on windows it should be located in WINNT directory (on NT/2K). It will ask YOU to move them there during the installation. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: Martin Skjoldebrand [mailto:[EMAIL PROTECTED]] Sent: Saturday, April 28, 2001 1:38 PM To: [EMAIL PROTECTED] Subject: [PHP] Where is php.ini located by default? I've built php from a tarball. Now I need to specify a special include path in the php.ini file. But I can't find it. There is a php.in-dist in the build catalog but I can't find a production php.ini anywhere. The docs says that it should be in the install catalogue (which is where?, /usr/local/lib/php doesn't have one) or the cwd. I've tried editing the sample file and putting it in either place but my app still gives me the following error: Failed opening required 'class.DBI' (include_path='.:/usr/local/lib/php') in FILENAME Martin S. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] PHP --with-imap
have you installed IMAP? Chris Calin Rotaru wrote: Hello. I have a problem with PHP. I want to use imap functions. I receive a message that imap function is not defined. I compiled PHP again with --with-imap option , but I've got an error message at Apache compilation. What is realy happening? Thanks Calin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Strange errors
Have a look at php.ini in /usr/local/lib It looks like your prepend file is browser.php - just comment that line out. Chris Fry Joseph Blythe wrote: Hey all, I keep getting this error message on a couple of pages from a site I am currently working on, the strange thing about this is there are no included files in 'browser.php' and I am certainly not including 'browser.php' anywhere. Warning: Failed opening '/home/binary/public_html/browser.php' for inclusion (include_path='./inc:/usr/local/lib/php:.') in Unknown on line 0 If anyone knows what is wrong or has had a simular problem please let me know. Regards Joseph -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] I need help from you.
Don't think that's going to work - that's an UPDATE syntax - should be: mysql_query(INSERT INTO table (name, email) VALUES('$name', '$email')); ...etc Chris Fry Maxim Maletsky wrote: no, don't worry, we'll help:-) use mysql_query(INSRT INTO table SET name='$name', email='$email'); ...etc see some examples you can find in documentations. Browse the web for it - there's a whole bunch. Sincerely, Maxim Maletsky Founder, Chief Developer PHPBeginner.com (Where PHP Begins) [EMAIL PROTECTED] www.phpbeginner.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 26, 2001 6:01 AM To: [EMAIL PROTECTED] Subject: [PHP] I need help from you. Hello, I have seen your email at PHP site - developers. I need a simple syntax that you may understand. I want to send data TO mysql FROM my contact form. the database is hosted and provided by my hosting provider. I do not know what is the syntax to send that data. I make quality design services, maybe you will need anything to improve, I will be glad to do it in exchange. Thank you ! Javier Yep [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] What's wrong with this code?
I think you need to specify the full path rather than relative when using fopen eg: $file = fopen(/usr/local/apache/htocs/includes/about.inc, r); Chris Alexander Wagner wrote: Tyler Longren wrote: $file = fopen(includes/about.inc, r); $data = fread($file, 2400); [..] Any ideas why that doesn't work on one server but it will work on another server? The server it works on is Win2k, IIS5, php4.0.4pl1. The server it doesn't work on is Linux, Apache, php4.0.4pl1. Any ideas why this won't work? Just to be sure, I did a chmod 777 about.inc, so file permissions isn't it. I don't know why this wouldn't work on LAMP, but if you want to read a whole file you should do this: $data = implode('',file(includes/about.inc)); regards Wagner -- In place of infinity we usually put some really big number, like 15. - Anonymous Computer Science professor -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Variable variable
Jacky, You do not need the value. The variable $id will either exist (if the user checked it) or not (if the user did not check it). Hope this helps. Chris Jacky wrote: Hi all I have a form with check box and name of those checkboxes is usuing variable lke this, !-- I got the value $id from a table and looping them and assign them to the check box name-- input type="checkbox" name ="$id" value="on" and when I submit the form to page foo.php4, at that page, I use Variable variable to call the value of the check box to see if it checked like this $quey = "select id from table"; $result = .. ( assumeing it is done and i got value for $id for all records from table) if ($$id =="on"){ echo "on"; }else{ echo "off"; } It always returns echo "off", why is that? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Variable variable
Sorry - thought you only had one! - it's late. To Name the checkboxes you need: ?php while (get records from db) { $id = id from record; ? input type="checkbox" name ="?php print $id; ?" ?php } ? You would have to do a $HTTP_GET_VARS on the next page to find out which ones exist. Then your select statement would be: $query = "select * from table where id IN ('comma delimited list of values')"; Messy but do-able! Probably a better way - There usually is! Chris Jacky wrote: so how do I check at the next page which one is checked? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" ----- Original Message - From: Chris Fry [EMAIL PROTECTED] To: Jacky [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 2:31 AM Subject: Re: [PHP] Variable variable Jacky, You do not need the value. The variable $id will either exist (if the user checked it) or not (if the user did not check it). Hope this helps. Chris Jacky wrote: Hi all I have a form with check box and name of those checkboxes is usuing variable lke this, !-- I got the value $id from a table and looping them and assign them to the check box name-- input type="checkbox" name ="$id" value="on" and when I submit the form to page foo.php4, at that page, I use Variable variable to call the value of the check box to see if it checked like this $quey = "select id from table"; $result = .. ( assumeing it is done and i got value for $id for all records from table) if ($$id =="on"){ echo "on"; }else{ echo "off"; } It always returns echo "off", why is that? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Variable variable
Sorry - try $HTTP_POST_VARS Chris Jacky wrote: I did look up in the manual for $HTTP_GET_VARS but could not find it? what is it? a function? sorry to ask this again, just try to find out how to use that. Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message ----- From: Chris Fry [EMAIL PROTECTED] To: Jacky [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 2:59 AM Subject: Re: [PHP] Variable variable Sorry - thought you only had one! - it's late. To Name the checkboxes you need: ?php while (get records from db) { $id = id from record; ? input type="checkbox" name ="?php print $id; ?" ?php } ? You would have to do a $HTTP_GET_VARS on the next page to find out which ones exist. Then your select statement would be: $query = "select * from table where id IN ('comma delimited list of values')"; Messy but do-able! Probably a better way - There usually is! Chris Jacky wrote: so how do I check at the next page which one is checked? Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" - Original Message - From: Chris Fry [EMAIL PROTECTED] To: Jacky [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Wednesday, April 18, 2001 2:31 AM Subject: Re: [PHP] Variable variable Jacky, You do not need the value. The variable $id will either exist (if the user checked it) or not (if the user did not check it). Hope this helps. Chris Jacky wrote: Hi all I have a form with check box and name of those checkboxes is usuing variable lke this, !-- I got the value $id from a table and looping them and assign them to the check box name-- input type="checkbox" name ="$id" value="on" and when I submit the form to page foo.php4, at that page, I use Variable variable to call the value of the check box to see if it checked like this $quey = "select id from table"; $result = .. ( assumeing it is done and i got value for $id for all records from table) if ($$id =="on"){ echo "on"; }else{ echo "off"; } It always returns echo "off", why is that? cheers Jack [EMAIL PROTECTED] "There is nothing more rewarding than reaching the goal you set for yourself" -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised r
Re: [PHP] baffled ::
This loop will only return the last record from the db as the variables are getting overwritten each time through the loop. It would make more sense to make each variable an array eg: $id[$i] = $myrow["id"]; or do something with each set of info inside the loop. Chris Mark Maggelet wrote: On Tue, 17 Apr 2001 15:59:37 +1000, Peter Houchin ([EMAIL PROTECTED]) wrote: can any one see a problem with this loop? ? $db = include"connect.inc"; $foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card"; $result = mysql_query($foo,$db); while ( ($myrow = mysql_fetch_array($result) ) ) { $id = $myrow["id"]; $card = $myrow["card"]; $serial = $myrow["serial"]; $avail = $myrow["avail"]; $pn = $myrow["pn"]; $cat = $myrow["cat"]; $box = $myrow["box"]; $quote = $myrow["quote"]; } ? if i call say just $card it only displays the one record (the last one) if you call it after the loop you mean? thats what i would expect to be there. the minute i try to call $myrow["card"]; i get nothing at all... any idea's? outside the loop again? well if the last call to mysql_fetch_array() returns false, then that sounds right too. you probably mean to do something inside the loop. here's another tip, use extract: while ( ($myrow = mysql_fetch_array($result) ) ) { extract($myrow); echo $card."br\n"; } I have script identical to this that works perfectly .. only difference is this one has different names for the values Peter Houchin [EMAIL PROTECTED] = _ __ /\ /_/_/_\/ |_/ \ /_/_/___ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/v /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ __ __ __ /_/ __ __ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\/_//_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ = Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 * We rent the dot in .COM! ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] baffled ::
That's too easy! Chris Romulo Roberto Pereira wrote: Even better, $id[] = $myrow["id"]; then count them: for ($i=0;$i count($id);$i++) { .. } Rom -Original Message----- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 17, 2001 3:00 AM To: Mark Maggelet Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: Re: [PHP] baffled :: This loop will only return the last record from the db as the variables are getting overwritten each time through the loop. It would make more sense to make each variable an array eg: $id[$i] = $myrow["id"]; or do something with each set of info inside the loop. Chris Mark Maggelet wrote: On Tue, 17 Apr 2001 15:59:37 +1000, Peter Houchin ([EMAIL PROTECTED]) wrote: can any one see a problem with this loop? ? $db = include"connect.inc"; $foo = "SELECT * FROM 6pci WHERE card='$card' ORDER BY card"; $result = mysql_query($foo,$db); while ( ($myrow = mysql_fetch_array($result) ) ) { $id = $myrow["id"]; $card = $myrow["card"]; $serial = $myrow["serial"]; $avail = $myrow["avail"]; $pn = $myrow["pn"]; $cat = $myrow["cat"]; $box = $myrow["box"]; $quote = $myrow["quote"]; } ? if i call say just $card it only displays the one record (the last one) if you call it after the loop you mean? thats what i would expect to be there. the minute i try to call $myrow["card"]; i get nothing at all... any idea's? outside the loop again? well if the last call to mysql_fetch_array() returns false, then that sounds right too. you probably mean to do something inside the loop. here's another tip, use extract: while ( ($myrow = mysql_fetch_array($result) ) ) { extract($myrow); echo $card."br\n"; } I have script identical to this that works perfectly .. only difference is this one has different names for the values Peter Houchin [EMAIL PROTECTED] = _ __ /\ /_/_/_\/ |_/ \ /_/_/___ __ __ __ / \ \_/_/_\ /_/ /_/ /_/ /_/ \ _ / ___\_\_\/ /_/_/_/ /_//\/_/\_/ \/\_/ \_//_/_/ /_/_/_/ /_/ \/_/v /_/_/_/_/ /_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/ /_/_ _/_/ __ __ __ /_/ __ __ /_/_/_/_/ /_/_/_/ /_/ /_/ /_/ /_/\_\/_//_/_/_/ /_/ \_\ /_/ _/ /_//\/_/ /_/ /_/__\_\ /_/___ _\_\_\ /_/\_\/_/_/_/ /_/ \/_/ /_/ /_/\_\/_/_/_//_/_/_/ = Telephone : (03) 9329 1455 Facsimile : (03) 9329 6755 * We rent the dot in .COM! ** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMA
Re: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO
Guys, I've admitted defeat and set up a Redhat 6.0 box which runs the web site and talks to the SCO server as a database server. I'm doing this for a large client who wants a "Business Card Generator" on his site and PDF seems to be the best way to go as the printer wants a PDF file with the info to print on his shells (pre-printed sheets). Tried to make this work about a year ago, PHP on Redhat talking to an Informix database on SCO, and failed miserably. Took about 15 minutes this time - I read the error messages! The secret was that, even though DBPATH was set on the SCO machine it wasn't being read by the Linux box. I modified the connect statement to the db to include the DBPATH - hey presto! $dbh = ifx_connect("/dbpath/dbname@dbserver", "userid", "password"); Performance is pretty good as well. For this client this is actually the optimum solution, the SCO box was running a National e-commerce solution and acting as a dbserver for his internal sales organisation as well. This takes the load off the SCO box and probably provides some extra security as well. If you would like more info let me know. Chris Paul Gardiner wrote: Hello again Dean, Chris, Snap I'm afraid. I didn't spend too much time on it but it's on the list of things to do. If I manage to get any further I'll let you know. If this is urgent though Chris, let me know your exact configure/build procedure and which versions you're using of the tiff, jpeg etc and also how you built these. As there's not as many of us on SCO it maybe better if we put our heads together to get it sorted - you know what they say :o) Best regards, - Paul - - Original Message - From: "Grimes, Dean" [EMAIL PROTECTED] To: "'Chris Fry'" [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Tuesday, April 17, 2001 1:36 PM Subject: RE: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO I had the exact same problem Haven't had time to work it though. -Original Message- From: Chris Fry [mailto:[EMAIL PROTECTED]] Sent: Monday, April 16, 2001 3:26 AM To: [EMAIL PROTECTED] Subject: [PHP] PHP4.0.4pl1+PdfLib3.03+SCO Pdflib 3.03 compiles OK and builds a static library - /usr/local/lib/libpdf.a. PHP fails to configure - cannot find PDF_show_boxed in the library - pdflib extension requires pdflib 3.x. This command is in the library and the header file. Configure finds my tiff jpeg library (--with-tiff-dir=/usr/local --with-jpeg-dir=/usr/local) but is either not finding the library (--with-pdflib=/usr/local) or is not able to find PDF_show_boxed in the library. Can anyone help?? Chris -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this
Re: [PHP] 'Embedding' a PDF file
Had the same issues - frames is definitely the way to go. One problem, Acrobat uses the available window space to display the pdf file. I am displaying a small, business card size, pdf and acrobat is displaying at 175% because it can. Does anyone know of a parameter that can be set to force display at 100%. Chris Henrik Johansson wrote: Hi alexis. Yes, with Internet Explorer equipped with the shell-integration component in a Windows environment, this is possible with the Adobe Acrobat plugin. For Netscape, this is not currently (to my knowledge) an option. Further, to display a pdf-document in only a part of IE, the easiest way, i guess, would be to use frames as a base for Your HTML/PHP-documents. Best Regards, Henrik Johansson! -- From: Alexis Antonakis[SMTP:[EMAIL PROTECTED]] Reply To: [EMAIL PROTECTED] Sent: den 17 april 2001 11:32 To: Php-General@Lists. Php. Net Subject: [PHP] 'Embedding' a PDF file Hi, I've got a couple of questions relating to PDF files. Firstly, to display a PDF file in your browser, I presume that you must have a 'plug-in' installed? Secondly, is it possible to display a PDF file within a table, as I have only ever seen them fill up the entire browser? TIA Alexis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Importing Data from Text File
Chris, What you need to do is read each line of the file into an array: $aryInput = file("/path/filename", "r"); Connect to the Database: $dbh = mysql_connect ("localhost", "user", "password"); if (! $dbh) { print "Error connecting to the Database Enginebr"; } Select the table: mysql_select_db (stock); Now process each line in turn: for($i=0;$icount($aryInput);$i++) { // Split each line into the fields you want $aryInputLine = explode("", $aryInputLine[$i]); // There is a TAB between the "" on the previous line and this assumes that there is only // one TAB between the fields $stock_id = $aryInputLine[0]; $stock_name = $aryInputLine[1]; $stock_desc = $aryInputLine[2]; $stock_length = $aryInputLine[3]; $stock_qty = $aryInputLine[4]; $stock_price = $aryInputLine[5]; // Now put your insert statement here $insstock = mysql_query ("INSERT INTO tablename (stock_name, stock_desc, stock_length, stock_qty, stock_price) VALUES ('$stock_name', '$stock_desc', $stock_length, $stock_qty, $stock_price)", $dbh); } This should get you started! Chris Fry Chris Aitken wrote: Hi Everyone, Ive been asked to do a task here at my work and its something ive never done before. I was hoping you guys could point me in the right direction so I can research some more and discover how in the hell im gonna do this :) Basically, I have been issued a TAB delimited text file which I need to process and insert all the data into a table. Here is a basic example of what I need to do.. Say the text file had the following lines (thousands of them, 1 record per line) Screw Big 12 200 1.99 Screw Big 10 400 1.50 And I wanted to import each line into a table (Mysql DB) that had 6 fields (5 for each of the above plus an autoincremented ID field stock_id stock_name stock_desc stock_length stock_qty stock_price Any suggestions and direction pointing will be greatly appreciated. -- Chris Aitken - Webmaster/Database Designer - IDEAL Internet email: [EMAIL PROTECTED] phone: +61 2 4628 fax: +61 2 4628 8890 Unix -- because a computer's a terrible thing to waste! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] PHP4.0.4pl1+PdfLib3.03+SCO
Pdflib 3.03 compiles OK and builds a static library - /usr/local/lib/libpdf.a. PHP fails to configure - cannot find PDF_show_boxed in the library - pdflib extension requires pdflib 3.x. This command is in the library and the header file. Configure finds my tiff jpeg library (--with-tiff-dir=/usr/local --with-jpeg-dir=/usr/local) but is either not finding the library (--with-pdflib=/usr/local) or is not able to find PDF_show_boxed in the library. Can anyone help?? Chris -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] VERY URGENT -- MIRROR FOR PHP.NET ??
We have a copy of the manual on our site http://www.quillsoft.com.au The click on PHP Manual The search facility searches the manual. Regards Chris Fry Reuben D Budiardja wrote: Hi All, I'm in the middle of crisis. I need to meet the deadline tomorrow, and tonight the www.php.net seems to be down. Anyone know any mirror site of www.php.net? I need function reference and manual only, and I have been always totally dependence on www.php.net. So, if anyone can tell me any mirror site of www.php.net so that I can continue my work, that would be really-really great. Thanks a lot Reuben D. Budiardja -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Read one word in file
You might want to use:- $aryQbuff = file("/pathto/filename", "r"); You will then have each line of the file in an array. Then:- $intNumLines = count($aryQbuff); for($i=0;$i=$intNumLines;$i++) { $intQnum = explode(".", $aryQbuff[$i]); // $intQnum now has the question number in it // Do some processing } This is just one way - there are plenty of others. Chris "Andrew V. Romero" wrote: I have a php script that reads a file that looks something like this: 1. Question One goes here: 2. Question two goes here: I need someway to have the script just read either the 1. or just the 1 When I first made the script I just had the program read the line using $questionBuffer = fgets($wq, 4096); and then I got the number by using a substring message: $currentQuestion = substr("$questionBuffer",0,1); and this works fine until I hit questions like 10 11... So how should I go about just getting the question number, ideally I would like to just read up until the first space is encountered. Is there a function to do that or will I need to create a for loop that goes through and compares each substring of 1 character to " ", and then once that " " is found, create a substring up until that " " character was found? Any ideas? --Andrew V. Romero To reply personally, remove all numbers from my address. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Execute Shell command?
I use a package called sudo which allows you to give limited root rights to the user that your webserver is running as. Using this I'm able to add/delete a user from a PHP script and also change passwords using poppassd. http://www.courtesan.com/sudo/ Chris [EMAIL PROTECTED] wrote: Hi, Does anyone know if there is a way to execute a shell command in a php script? I am trying to execute the following: /usr/sbin/cadduser -d www.domain.com -f Adrian -u testing -p testing -q 10 -w [EMAIL PROTECTED] I have tried passthru(), system(), exec() and none seem to work. I also tried the backtick and that never worked. Any ideas anyone? Adrian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] fscanf syntax
Pat, You could read the file into an array; $aryNessus = file("/pathtofile/filename", "r"); Each row of the array then has one line from the file; Get the record count; $intNumRecs = count($aryNessus); Now read through the array and extract the values; for($i=0;$i=$intNumRecs;$i++) { $aryNessusFields = explode("|", $aryNessus[$i]); $hostname = $aryNessusFields[0]; $protocol = $aryNessusFields[1]; $number = $aryNessusFields[2]; $severity = $aryNessusFields[3]; $description + $aryNessusFields[4]; // Save the data into the database here } Regards Chris Patrick Brown wrote: I want to parse a file with the following syntax. hostname|protocol|number|severity|description Each record is on it's own line and have the fields delimited by the pipe character |. The file may have thousands of records and I would like to bring them into a database for reporting. Some of you may recognize this a the file format of a Nessus security scan file. What function should I use and what would the syntax be? Thanks, Pat -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] This PHP list
There was a mailing list [EMAIL PROTECTED] I subscribed and received a confirmation but nothing more - is the list still alive? Chris Jason Lotito wrote: -Original Message- From: Ian Harris [mailto:[EMAIL PROTECTED]] Sent: Wednesday, March 28, 2001 10:36 PM To: [EMAIL PROTECTED] Subject: [PHP] This PHP list I was hoping that this PHP list would be of people developing with PHP, who have reached some level of familiarity with the product and when they have had a fair go at solving a problem, they then posted it to the list. For example, we have a problem in our code where the last object in an array of objects sometimes vanishes into thin air depending on whether you comment-out a block of unrelated code further up the script. Unfortunately, this list is full of people with questions like "I want to access a database with PHP. Can someone please send me the source code". Does anyone know of any other PHP lists that are more suited to non-trivial, expert-related discussions? If there aren't any around, I'll start one on Yahoogroups or some other similar service. regards Ian. Sounds like a conversation that already happend on this mailing list a few days ago, and then was dropped. Maybe you should read some of the previous postings before continuing this line of thought (for reference) and to prevent the exact type of postings you are trying to avoid, i.e., Posting from People who do NOT read the FAQ, older posting, etc. Also, remember this, most of the time, 'experts' who have problems either (a) can solve the problem themselves, because that is what a programmer does, or (b) don't have problems. Sure, a syntax error here or there, but most 'experts' I know usually fall into the 'A' category. Now, don't get me wrong, I would love to see a more professional, higher end mailing list, but at the same time, having expected the php-general mailing list to cater to 'Experts' only is a bit egotistical (not the right word, sounds to harsh that way, but I can think of a better one, so just us the cant_think_of_word("egotistical") function and it will be all right). So, before posting next time, please try and read older posts concerning the same or similar subject, and also try and understand, that while it may seem non-trivial to you how to connect to PostgreSQL from XXX Server passing through YYY Software, to many it may not, and that is why this is the PHP-General Mailing List, not the PHP-Master Mailing List. This was NOT a flame, and no flame retardent clothing was needed. =) Merely trying to quell a possible brush fire. Jason Lotito www.NewbieNetwork.net Where those who can, teach; and those who can, learn. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Q: Informix + PHP + Apache + Solaris 8
For SCO I had to download the ESQL package separately - I think you have to do the same (if it's available). Chris Joe Rice wrote: Hi, I'm trying to get this combo to work "Informix + PHP + Apache + Solaris 8". But, i'm having some trouble compiling php4.0.4p1. ./configure fails when trying to run esql to test for version and lib dir. I have the latest version of IDS 2000 which supports solaris 8. From the IDS 2000 CD i installed IConnect (which i'm guessing is the new name for the SDK Client and esql stuff). I guess my question is, has anyone done this setup? and if so, how? IConnect doesn't install a $INFORMIXDIR/incl directory. i grabbed it from the IDS install. the ./configure script is looking for $INFORMIXDIR/bin/esql which isn't installed by IConnect either. Thanks, joe rice Web Admin www.bigidea.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Q: Informix + PHP + Apache + Solaris 8
Joe, From memory I had to create a symlink for libifsql.o - I'll boot up the SCO box and see if I can find it and let you know. Chris Joe Rice wrote: i ended up downloading the SDK for solaris 7 and it seems to have work...well, kind of. It compiled, but i can't start apache. apache is trying to find libifsql.so which isn't anywhere on my system. Do you have this file? is it part of the ESQL SDK or is part of php? any help would be greatly appreciated. Thanks, joe Chris Fry([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 09:45:14AM +1100: For SCO I had to download the ESQL package separately - I think you have to do the same (if it's available). Chris Joe Rice wrote: Hi, I'm trying to get this combo to work "Informix + PHP + Apache + Solaris 8". But, i'm having some trouble compiling php4.0.4p1. ./configure fails when trying to run esql to test for version and lib dir. I have the latest version of IDS 2000 which supports solaris 8. From the IDS 2000 CD i installed IConnect (which i'm guessing is the new name for the SDK Client and esql stuff). I guess my question is, has anyone done this setup? and if so, how? IConnect doesn't install a $INFORMIXDIR/incl directory. i grabbed it from the IDS install. the ./configure script is looking for $INFORMIXDIR/bin/esql which isn't installed by IConnect either. Thanks, joe rice Web Admin www.bigidea.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Q: Informix + PHP + Apache + Solaris 8
Joe, The answer is you need to set the following in your profile:- LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:/usr/lib or: SHLIB_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:/usr/lib I have both set on mine - not sure which one works. Chris Joe Rice wrote: i ended up downloading the SDK for solaris 7 and it seems to have work...well, kind of. It compiled, but i can't start apache. apache is trying to find libifsql.so which isn't anywhere on my system. Do you have this file? is it part of the ESQL SDK or is part of php? any help would be greatly appreciated. Thanks, joe Chris Fry([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 09:45:14AM +1100: For SCO I had to download the ESQL package separately - I think you have to do the same (if it's available). Chris Joe Rice wrote: Hi, I'm trying to get this combo to work "Informix + PHP + Apache + Solaris 8". But, i'm having some trouble compiling php4.0.4p1. ./configure fails when trying to run esql to test for version and lib dir. I have the latest version of IDS 2000 which supports solaris 8. From the IDS 2000 CD i installed IConnect (which i'm guessing is the new name for the SDK Client and esql stuff). I guess my question is, has anyone done this setup? and if so, how? IConnect doesn't install a $INFORMIXDIR/incl directory. i grabbed it from the IDS install. the ./configure script is looking for $INFORMIXDIR/bin/esql which isn't installed by IConnect either. Thanks, joe rice Web Admin www.bigidea.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Q: Informix + PHP + Apache + Solaris 8
Joe, Thanks for the info! Glad it's working for you. Chris Joe Rice wrote: What ended up working for me is; LD_RUN_PATH=$INFORMIXDIR/lib then i recompiled php and when i started apache everything seemed to work. I didn't go the LD_LIBRARY_PATH way because of http://www.visi.com/~barr/ldpath.html titled "Why LD_LIBRARY_PATH is bad" Thanks for all the help, joe web admin www.bigidea.com Chris Fry([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 10:43:33AM +1100: Joe, The answer is you need to set the following in your profile:- LD_LIBRARY_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:/usr/lib or: SHLIB_PATH=$INFORMIXDIR/lib:$INFORMIXDIR/lib/esql:/usr/lib I have both set on mine - not sure which one works. Chris Joe Rice wrote: i ended up downloading the SDK for solaris 7 and it seems to have work...well, kind of. It compiled, but i can't start apache. apache is trying to find libifsql.so which isn't anywhere on my system. Do you have this file? is it part of the ESQL SDK or is part of php? any help would be greatly appreciated. Thanks, joe Chris Fry([EMAIL PROTECTED])@Thu, Mar 22, 2001 at 09:45:14AM +1100: For SCO I had to download the ESQL package separately - I think you have to do the same (if it's available). Chris Joe Rice wrote: Hi, I'm trying to get this combo to work "Informix + PHP + Apache + Solaris 8". But, i'm having some trouble compiling php4.0.4p1. ./configure fails when trying to run esql to test for version and lib dir. I have the latest version of IDS 2000 which supports solaris 8. From the IDS 2000 CD i installed IConnect (which i'm guessing is the new name for the SDK Client and esql stuff). I guess my question is, has anyone done this setup? and if so, how? IConnect doesn't install a $INFORMIXDIR/incl directory. i grabbed it from the IDS install. the ./configure script is looking for $INFORMIXDIR/bin/esql which isn't installed by IConnect either. Thanks, joe rice Web Admin www.bigidea.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Lt
Re: [PHP] php4 cgi in WinNT/apache requires a #! to execute
Just add -q to the first line of your cgi:- #! f:/php/php -q runs php in quiet mode. Chris LUK ShunTim wrote: Dear all, Please *cc the reply to me* as I'm not a subscriber to the list. I got these errors from apache 1.3.17/WinNT/php4.0.4p11 [Tue Mar 13 14:29:23 2001] [error] [client 127.0.0.1] f:/php/local-cgi/test.php is not executable; ensure interpreted scripts have "#!" first line [Tue Mar 13 14:29:23 2001] [error] [client 127.0.0.1] couldn't spawn child process: f:/php/local-cgi/test.php when trying to test the installation with a simple script which is simply ? phpinfo(); When I add the sebang line "#!f:/php/php" it executed alright but then I got this line echoed on the resulting page. I had used php3/apache/linux without such problem and I don't seem to find any such report in th mailing list. What have I missed? Best wishes, ST -- -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Replace last 4 of 16 with ****
You could split the card number into groups of 4 digits and. in the form, make the last one input type="password" name="xxx" size="4". This would do what you need. Chris WreckRman2 wrote: I am building an account manager for my web hosting clients in which they can edit thier information, etc only I do not want to display the entire credit card number on the site. Instead I would like to replace the last 4 numbers with a * if possible. Can anyone assist me with the code to do this. Thanks in advance... David Smith Indy Web Design http://www.indywebdesign.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] IIS ISAPI
Shane, Had the same problem - move the dll into the php directory - doesn't seem to work in the sapi dir. Also you need to set the root dir in php.ini Chris Shane McBride wrote: I have loaded PHP according to the install file but I can not see any .php file in a browser. When I look under the ISAPI properties in IIS is appears that the dll is not loading. It has a red arrow pointing down. Any ideas? shane -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP] Nesting 'foreach ()'
Tim, Works fine in 4.04pl1 on NT. I think you should have curly braces round the inner foreach as well? $fred = array(1,2,3,4,5,6); foreach ($fred as $fred1) { foreach ($fred as $fred2) { echo "$fred1 : $fred2br"; } }; Chris Fry Tim Ward wrote: according to the online refernce foreach() doesn't change the array pointer. However the following code: $fred = array(1,2,3,4,5,6); foreach ($fred as $fred1) { foreach ($fred as $fred2) echo "$fred1 : $fred2br"; }; returns: 1 : 1 1 : 2 1 : 3 1 : 4 1 : 5 1 : 6 and stops there, implying that the second foreach() is interfering with the first. I've got around this in my actual case by creating two arrays and adding to the second as well as the first, but this won't always be as convenient. Is this a known bug or is the manual wrong? ... by the way $fred = array(1,2,3,4,5,6); $fred2 = $fred; foreach ($fred as $fred1) { foreach ($fred2 as $fred2) echo "$fred1 : $fred2br"; }; ... doesn't work either which would normally imply that $fred2 is a pointer to $fred rather than a copy. Can this be the case? I am using version 4.0.0 Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED] -- Chris Fry Quillsoft Pty Ltd Specialists in Secure Internet Services and E-Commerce Solutions 10 Gray Street Kogarah NSW 2217 Australia Phone: +61 2 9553 1691 Fax: +61 2 9553 1692 Mobile: 0419 414 323 eMail: [EMAIL PROTECTED] http://www.quillsoft.com.au You can download our Public CA Certificate from:- https://ca.secureanywhere.com/htdocs/cacert.crt ** This information contains confidential information intended only for the use of the authorised recipient. If you are not an authorised recipient of this e-mail, please contact Quillsoft Pty Ltd by return e-mail. In this case, you should not read, print, re-transmit, store or act in reliance on this e-mail or any attachments, and should destroy all copies of them. This e-mail and any attachments may also contain copyright material belonging to Quillsoft Pty Ltd. The views expressed in this e-mail or attachments are the views of the author and not the views of Quillsoft Pty Ltd. You should only deal with the material contained in this e-mail if you are authorised to do so. This notice should not be removed. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]