[PHP-WIN] Beginner question - blank php page
Just installed php for the first time. Called up a hello wold page and the page is blank. Can someone tell me what I'm doing wrong? TIA Arthur -- - Click here for Free Video!! http://www.gohip.com/free_video/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Beginner question - blank php page
My setup: Win98 Apache 1.3 (docs say v2 not work on win98) PHP4 File = htdocs/test.php (test.html works fine) Code: -- - Click here for Free Video!! http://www.gohip.com/free_video/ "Arthur" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just installed php for the first time. Called up a hello wold page and the > page is blank. Can someone tell me what I'm doing wrong? > > TIA Arthur > > -- > - > Click here for Free Video!! > http://www.gohip.com/free_video/ > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Re: Beginner question - blank php page
Problem Solved - With the help of the good people from this list, I found this in the install.txt: "Now that version 4.1 introduces a safer sapi module, we recommend that you configure PHP as a module in Apache. To do this, you should move php4ts.dll to the windows/system (for Windows 9x/Me) or winnt/system32 (for Windows NT/2000/XP) directory, overwriting any older file. Then you should add the following three lines to your Apache conf (httpd.conf) file: (swap c:/php/ for your PHP install path) LoadModule php4_module c:/php/sapi/php4apache.dll AddModule mod_php4.c AddType application/x-httpd-php .php" -- - Click here for Free Video!! http://www.gohip.com/free_video/ "Arthur" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Just installed php for the first time. Called up a hello wold page and the > page is blank. Can someone tell me what I'm doing wrong? > > TIA Arthur > > -- > - > Click here for Free Video!! > http://www.gohip.com/free_video/ > > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Basic Question about closing a file
The file in the code below is not closing successfully. Variable $FC = 1. Can someone tell me what is going on? Thanks Arthur $OpenCSV = fopen ($FileCSV, "w"); if ($OpenCSV = fopen ($FileCSV, "w")) { print ("The Sales CSV file was opened successfully\n"); } else { print ("The query could not be executed!\n"); } while { // stuff is happening w/ database and calculations here fwrite ($OpenCSV, "$Orders_id,$Products_id, etc ...\n");} $FC = fclose ($OpenCSV); if (fclose ($OpenCSV)) { print ("The Sales CSV file was Created successfully$FC\n"); } else { print ("The Sales CSV could not be executed!$FC\n"); } -- - Click here for Free Video!! http://www.gohip.com/free_video/ -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Create ZIP file with PHP
Is it possible to create a .zip file using PHP. I am creating a file using PHP, but I need users to easily download that file after it has been created. I tried to have a direct link on a web page, but the files (ie filename.csv) resolves in the browser. I want to original .csv file to be downloadable while maintaining it file extension. Any suggestions would be appreciated. Thanks Arthur. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Recieve option value from a form.
Below is the code to create a form. (This for works fine) How do I recieve on 'SalesCreate.php' . Many thanks, Arthur. print (""); print ("Select Sales info:"); print (""); while ($RowSales = mysql_fetch_array ($ResultSales)) { $Last_Orders_id = (string) $RowSales[sales_log_orders_id]; $Date_created = (string) $RowSales[sales_log_date]; print ("Last order = $Last_Orders_id, created on $Date_created"); } print (""); print (""); -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Attachment in mail().
I'm having a big problem with mail(). Í'm trying to add a attachment, but the only way I have found is using Mime. Does anybody know if there's a way to add a attach file and how can I do it??? If somebody knows and have an example, I would be really glad. Arthur Franco -- PHP Windows 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-WIN] attach file problem.
Hello, I'm using mail to attach a file but I'm having a problem. My script works really good but when I send an attachment the file goes currupt. I don't know if the problem is the encoded_attach or enything else. Hope someone can help me. Here goes a part of my script that I add the attachment. Thanks Arthur Franco if ($attach != "none") { $file = fopen($attach, "r"); $contents = fread($file, $attach_size); $encoded_attach = chunk_split(base64_encode($contents)); fclose($file); $Headers .= "MIME-version: 1.0\n"; $Headers .= "Content-type: multipart/mixed; "; $Headers .= "\nContent-Type:text/html"; $Headers .= "boundary=\"Message-Boundary\"\n"; $Headers .= "Content-transfer-encoding: 7BIT\n"; $Headers .= "X-attachments: $attach_name"; $Headers .= "Content-type: $attach_type; name=\"$attach_name\"\n"; $Headers .= "Content-Transfer-Encoding:base64_encode\n"; $Headers .= "Content-disposition: attachment; filename=\"$attach_name\"\n\n"; $Headers .= "$encoded_attach\n"; }
[PHP-WIN] Contact Management Scripts?
I am looking for a Contact Management system. I found these on the web: http://www.horde.org/turba/ http://www.phprojekt.com/ Does anyone have experience with these or do you know of others? Many thanks Arthur -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] world cup
Does anyone have a world cup mysql database or a script in php that can create the tables or the world cup? -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Timeout
Hi all, I am experiencing a timeout issue when trying to connect/query to one of our Sybase Databases. I have no problems connecting/querying to all of my other databases. Does anyone know the parameters either in the php.ini or in the apache httpd.conf file that I can update to eliminate this timeout issue? Thanks in advance, Art --- Art Chevalier Database Replication Administrator Database Production/Support Division, Code 243 Space and Naval Warfare Systems Center, NORFOLK 1837 Morris Street Norfolk, VA 23320-8915 Phone: (757) 443-0224 Email: [EMAIL PROTECTED] Web: www.scn.spawar.navy.mil -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] function/extension help
Hi, I am very new to PHP. I installed it on a box with Win 2K and IIS. I am trying to utilize the Sybase functions, but I keep getting the following error: Fatal error: Call to undefined function: sybase_connect() in c:\inetpub\wwwroot\sybase.php on line 2 Can anyone possible tell me how to get/install the Sybase functions/extensions? Thanks, Art Chevalier Sybase Replication Administrator Space and Naval Warfare Center, Chesapeake 1-757-523-8303 -- PHP Windows 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-WIN] removing PHP from system
Hello, I am looking to remove PHP from my system so that I can perform a fresh install. What is the easiest way to go about this? Thanks, Art Chevalier Sybase Replication Administrator Space and Naval Warfare Center, Chesapeake 1-757-523-8303 -- PHP Windows 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-WIN] PHP questionaire
Hello! Does anyone have or can help me find a good PHP questionaire (quiz). If you have any ideea about one for MySQL this would be highly appreciated. Thankx, Arthur -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] encryption/decryption with RSA 1024 keys
Hello! I need some help in using the encryption/decryption algorithm with RSA 1024 keys I have some XML strings that I need to encrypt with the received public key and pass via SOAP to a different server that will have to decrypt them. Can any one help me on this matter? Please point me to any documentations or solutions that might exist! Thankx, Arthur -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] connecting to oracle on a win system
Hello! Can anyone tell me what should I do to connect to an oracle database on a windows system (both PHP and Oracle are found on the same system). Right now I am connecting trough ODBC and it works fine but I canot use some of the native php functions for working with oracle. Thankx, Arthur -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] encryption/decryption with RSA 1024 keys
Hello! I need some help in using the encryption/decryption algorithm with RSA 1024 keys I have some strings that I need to encrypt with the a public key that I already have and also be able to decrypt them in the asme manner. Can any one help me on this matter? Please point me to any documentations or solutions that might exist! Thankx, Arthur -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] Connection on mysql.
What is the safest way to make a connection with php to mysql? I'm using an require 'DB_conn.php' file that make the connection and this file is outside /var/www/. Someone including my original file "login.php" and printing the variable $user for example can see the value of the variable, that in this example is my user for connection on mysql. Someone have a better way to hide mysql user and password in php files? Arthur -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP-WIN] PHP 4 Session
Any one knows how to make session run properly on windows9x/NT These are the error I get when I run session: Warning: open(/tmp\sess_31206e8763f2d300416fd476be5f591e, O_RDWR) failed: m (2) in Unknown on line 0 Warning: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/tmp) in Unknown on line 0 Thanks, -art
Re: [PHP-WIN] PHP 4 Session
Thank for help Flint Doungchak wrote: > Hey Arthur, > > Make sure that in your php.ini file that the save path is defined to > someplace that exists and PHP has permissions to write to. I suspect that > the c:/temp folder that is the default for php.ini file doesn't exist. You > likely have a folder such as c:\temp. You can try that or any other folder > that you wish. > > Good luck. > > -Flint > > -Original Message- > From: Arthur Melkonyan [mailto:[EMAIL PROTECTED]] > Sent: Friday, April 20, 2001 10:13 PM > To: [EMAIL PROTECTED] > Subject: [PHP-WIN] PHP 4 Session > > Any one knows how to make session run properly on windows9x/NT > > These are the error I get when I run session: > Warning: open(/tmp\sess_31206e8763f2d300416fd476be5f591e, O_RDWR) > failed: m (2) in Unknown on line 0 > > Warning: Failed to write session data (files). Please verify that the > current setting of session.save_path is correct (/tmp) in Unknown on > line 0 > > Thanks, > -art > > -- > PHP Windows 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 Windows 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-WIN] apache/php help!!!!!
you should copy PHP4TS.DLL file into c:\windows\system32 not system folder try that. good luck -art Neil wrote: > i just installed apache web server and php4.0 on WINDOWS 98 platform > > and moved php4ts.dll into my c:\windows\system folder. > now every time i run a php page, I get a crash saying: > > APACHE caused an invalid page fault in > module PHP4TS.DLL at 016f:008e4aca. > Registers: > EAX= CS=016f EIP=008e4aca EFLGS=00010246 > EBX=0008 SS=0177 ESP=014afe84 EBP=008ed7c0 > ECX=0002 DS=0177 ESI=00769be0 FS=18bf > EDX= ES=0177 EDI=006fde84 GS= > Bytes at CS:EIP: > 89 02 8b 06 85 c0 74 06 8b 4e 04 89 48 04 a1 28 > Stack dump: > 0094c9f0 00768430 008ed7fb 00769bf0 00768470 008ebe72 00768430 0008 > 014afedc 007a26b4 0174 008ed7b1 0094c9f0 008ed7c0 0008 > however, it still takes the information the user enters on my form and dumps > it into mySQL database. then I hit "close" on this error screen and then it > automatically restarts apache/php and works again. > > Please help!, > Email me please! [EMAIL PROTECTED] > > -Neil > > -- > PHP Windows 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 Windows 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]