Go to advanced search

by L00
Wed Jul 25, 2018 2:07 pm
Forum: Networking and servers
Topic: php wont create/write to a file
Replies: 7
Views: 488

Re: php wont create/write to a file

Here is the error's in my apache2 log [Mon Jul 23 23:09:38.941026 2018] [:error] [pid 588] [client 10.0.0.26:39146] PHP Notice: Undefined index: /var/www/html in /var/www/html/processorder.php on line 18, referer: http://10.0.0.86/orderform.html Line 18 in my IDE is where I am assigning $document_r...
by L00
Mon Jul 23, 2018 10:50 am
Forum: Networking and servers
Topic: php wont create/write to a file
Replies: 7
Views: 488

Re: php wont create/write to a file

DMGrier wrote:
Mon Jul 23, 2018 2:53 am
My code is..

Code: Select all

@$fp = fopen("$document_root/../orders/orders.txt", 'ab');
If you're doing this in PHP, that line is a problem too. It should be just 'a', not 'ab'.

If you were writing this code in C, then 'ab' would be correct, so maybe the author/editor mixed up the two.
by L00
Wed Jul 18, 2018 7:27 pm
Forum: Networking and servers
Topic: Can't see pi-hosted website from internet
Replies: 3
Views: 430

Re: Can't see pi-hosted website from internet

I set up Apache last night on my Pi, verified it was working, and then bought a cheap domain to register my IP address on the internet. Kevin, did this start working for you yet? I emphasized the part of your post that I did because it might have been the problem. When you register a domain name, i...
by L00
Wed Jul 18, 2018 7:12 pm
Forum: Troubleshooting
Topic: RasPi Zero W and Random Screen Flashes ...
Replies: 2
Views: 281

Re: RasPi Zero W and Random Screen Flashes ...

You said you have a Pi and a card that DO work with that monitor; when you're using that one, have you checked what resolution and frequency it's running at? Or did you also force it to 1280 x 1024 @ 75 Hz?
by L00
Wed Jul 18, 2018 6:23 pm
Forum: Other programming languages
Topic: PHP5 mysqli.so
Replies: 5
Views: 1473

Re: PHP5 mysqli.so

It looks to me like you have PHP versions 5 and 7 both installed, and PHP 5 is the one having trouble loading. Opening a command prompt and running:

Code: Select all

sudo apt-get install php5-mysqli
might allow PHP 5 to load correctly, but are you trying to get PHP 5 working, or would you rather be using PHP 7?

Go to advanced search