![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| Windows Vista™ Ultimate x64 | Need help with PHP Script variables Hey, I am trying to write a script for my website which will allow me to be able to say, Hello (computer username), You IP is (ip). With the time and date. So far I have this. Code: <?php //Variables $computerusername = 'Username goes here?'; $ip = '???.???.?.???'; $time = 'time'; $date = 'date'; //T&D $td = "The time is now <b>$time</b>, on the <b>$date<b>. echo $td; //welcome $sentence = "Hello, $computerusername welcome to the site. Your IP has been logged, ($ip) "; echo $sentence; ?> Any help would be appreciated ![]() Thanks |
My System Specs![]() |
| | #2 (permalink) |
| Windows Vista™ Ultimate x64 | Re: Need help with PHP Script variables Got $ip = getenv('REMOTE_ADDR'); $date = date('Y-m-d'); $time = date('H:i:s') Anyone got username? |
My System Specs![]() |
| | #3 (permalink) |
| Windows 7 Ultimate x64 | Re: Need help with PHP Script variables You would be better asking some place like:- PHP Forum |
My System Specs![]() |
| | #4 (permalink) |
| Windows Vista™ Ultimate x64 | Re: Need help with PHP Script variables You would be better asking some place like:- PHP Forum |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Retaining variables after script execution | PowerShell | |||
| paaing variables from script to plink cmd | VB Script | |||
| Include another script, keep variables in included script? | PowerShell | |||
| Pop-up to enter variables to pass to script | PowerShell | |||
| Passing variables to script | PowerShell | |||