Jump to content
Old threads will finally start getting archived ×
🚨🚨 GAME-CHANGING ANNOUNCEMENT FROM PHP FREAKS 🚨🚨 ×

ChatGPT 🤖

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

About ChatGPT 🤖

  • Birthday 12/24/1936

Profile Information

  • Gender
    Male
  • Location
    Midlands, England

ChatGPT 🤖's Achievements

Member

Member (2/5)

0

Reputation

  1. I have a website that reads Excel csv files ( using Excel reader.php ) and stores the data into a MySql database. This web site was written in 2006 and has worked well ( not every day but quite frequently ) without problems. Now it is failing, even when using previously accepted files saying the file is not .csv material. With the latest issues of MS Office do I require a newer version of Excel/reader.php? Is this the reason it is failing? Wej Parry
  2. Thank you roopurt18. I last used UNIX 10 years ago! but I do remember that find with grep is a cunning bit of software. I have access to a HPUX system so I'll use that. Best regards. Wej Parry
  3. Thank you for your reply. I fully understand that Text Editors can search a slected file for matching data but I have not yet come across a Text Editor that can open directories and search multiple files. The old Windows 2000 professional can search a whole series of directories for data strings within a whole series of files but I can't do that in Vista and Windows 7?
  4. I have over 230 files plus 39 directories ( 3.5Mb ) in my public_html directory and I am looking for where I specified/declared the contents of a variable! I can't for the life of me remember in which web page/directory I set up the contents of that run time variable. ( It was three years ago! ) Can anyone advise me how find that data variable ( Its called $depositrules )?
  5. Thank you all. Oh what a twit!!
  6. Thank you Mike . I have added your suggested line to my test page. I have 4 similar lines in my test page but echo is displaying the code but not displaying results on the screen?? Please look at test page www.theparrys.co.uk/test.html It is something stupid that I am doing ( or not doing more likely )
  7. Very simple problem but got me beat. I am trying to capture and print on the screen the IP address that is looking at my webpage. After a lot of research I believe I have the data but cannot print it in PHP ( in an ASP WRITE RESPONSE type manner) Here is my test page. What am I doing wrong ?! <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title>Untitled</title> </head> <body> <?php $page ='Test page'; $ipaddress = $_SERVER['REMOTE_ADDR']; $date = date ("M dS H:i:s"); $message = "$page _ $ipaddress _ $date\n"; $File = "track.txt"; $Open = fopen($File, "a+"); if ($Open){ fwrite($Open, "$message"); fclose ($Open); } <br> print this is a print on the screen statement; <br> print $message; <br> <br> Some test data to see if it can be displayed. $result = "OK"; $update = "Yes"; $updateid = "90094"; echo "result=".$result."\n"; echo "update=".$update."\n"; echo "updateid=".$updateid."\n"; ?> </body> </html>
  8. Good point "cags". However from time to time when I make a simple (typing/transposition?) mistake in the address in sending an email, using say outlook, I do get some responses saying message undeliverable. If an email was undeliverable would Phpmailer attempt to send such an undeliverable report?
  9. Users of our websites leave us their email addresses for us to reply to. Sometimes they make mistakes in their email addresses that our email address checks cannot determine ( bad spelling etc ). I am using Phpmailer but when I send an email that cannot be delivered ( because of an invalid email address) I do not get a delivery failed message? When sending emails with PhpMailer is there a specific address to catch undelivered mails? Where should I expect to see an undeliverable mail message?
  10. O.K. It works for me. Thank you. I was trying to be too sophisticated and ......... I'll stop trying to explain my stupidity.
  11. Just got PHP sessions working and getting results but unable to display the session data results in an existing HTML table. I can display it else where ( using echo etc ). How do I make the PHP session data visible in an existing HTML table?
  12. O.K. Thank you. I'll give it a go.
  13. I have 5 pages that collect data ( a row of between 4 and 6 items per page ) I wish to display the collected data ( a row of between 4 and 6 items from each page ) in a table of results in the final "display" page. How can I store the intermediate result during processing other pages for subsequent display on the last page. Do I use Global data stores or do I have to use a MySql database? Wej Parry
  14. O.K. Thank you. Now working OK.
  15. I have a HTML form with a series of 7 check boxes that have been passed to a php page where for each of the check boxes "ticked" I wish to increment a total by a different value depending on the check box ticked. I have a test page ( code below ) which proves that the check boxes have been ticked and I am using a 'while' statement to check if the box has been ticked and if so increment a total. PROBLEM is that the while statement runs continously when true. I expected it to go through once and then step on to the next statement but it loops for ever!. After a successful while statement ( that is the condition is true ) do I have to 'disable' the value ( make the condition false )? Help! <?php $newline = "<br>"; echo " Start of Living Room Selection. " ; echo $newline; echo " Total so far "; $lrtotal = 25000; echo $lrtotal; echo $newline; echo "Switch value = "; echo ($_POST['option1']); echo $newline; echo ($_POST['option2']); echo $newline; echo ($_POST['option3']); echo $newline; echo ($_POST['option4']); echo $newline; echo ($_POST['option5']); echo $newline; echo ($_POST['option6']); echo $newline; echo ($_POST['option7']); echo $newline; $TwoSeaterSofa = 1.00; $ThreeSeaterSofa = 9.00; echo "Twoseater literal is "; echo $TwoSeaterSofa; echo $newline; echo "Threeseater literal is "; echo $ThreeSeaterSofa; echo $newline; while (($_POST['option1'])== true) {echo ($_POST['option1']); $lrtotal = $lrtotal + $TwoSeaterSofa; echo $lrtotal; echo $newline; } while (($_POST['option2'])== true) {echo ($_POST['option2']); $lrtotal = $lrtotal + $ThreeSeaterSofa; echo $lrtotal; echo $newline; } // 5 more while statementsfor $_POST [option3 to 7 ] in here. echo " Total for living room "; echo $lrtotal; echo $newline; ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.