User Profile
Collapse
-
I believe your problem is
Code:$n=$p."\\".$file; if( opendir($n) ) {@ DirDisply($n);}
I wouldn't use opendir( ) to test it, use is_dir( ).
But the reason this is failing is that PHP probably doesn't have permission to access folders like System32 or even Windows.
Correct...Leave a comment:
-
-
-
Custom log for router?
How would I go about setting up my own logging program for the router? The router is Netgear WGR614 v7. -
isset is the fastest. But as markus said your not storing the index so it will not work correctly.Leave a comment:
-
It means you have to login to the mail server you are trying to use.Leave a comment:
-
I'm pretty sure you need to include the file before you use functions from it.Leave a comment:
-
Umm I don't think you can include Java code like you do regular PHP code. Meaning that your require_once( "Java.inc" ); shouldn't contain Java it should contain PHP you'd need to look into the Java extension and find the correct way of including files.Leave a comment:
-
The headers already sent error just means output has already been sent to the browser no header modifications can happen. Either use output buffering or make sure to open the session before outputting anything.
Also do note that any whitespace is still a character which means it is still output make sure there are no newlines/tabs/spaces in front of the opening PHP tag.Leave a comment:
-
Adding to Markus's post it is better to use include_once and require_once on files that contain functions that will be used through multiple files the speed difference between the two functions is not anything to really be worried about.Leave a comment:
-
Just use serialization for storing arrays and objects in text format.
http://php.net/manual/en/function.serialize.php...Leave a comment:
-
Yes use sessions, you need to start the session each time your going to use it.
session_start( )Leave a comment:
-
What Dormilich was actually trying to say is HTML uses something like inline frames to display the images the source attribute doesn't actually mean the actual source data. You would need to use a PHP file to display the images using GET variables then just place the path to the PHP file.Leave a comment:
-
Question why not use the file function and a foreach loop? Also I'm guessing the ID shouldn't be submitted as a empty string going on the practice that all ID fields are auto_incremente d integers.
Your if statement isn't doing any real error checking its simply checking if the variable can be set to something always true unless the function does not return a value.
Code:if( ( $stmt = $mysqli->prepare("INSERT INTO
Leave a comment:
-
Make sure the extension directory is correct.
Also msql is not mysql its mini sql ( which isn't installed by default ) you need to comment out the one with php_mysql.dll.Leave a comment:
-
Sockets vs while loop?
I don't know that much about sockets, but I was wondering if there faster then just using a file and a while loop in PHP? I know sockets are just files in reality but the operating system treats them differently.
If the reason interests anyone, its to implement the slow load technique.
Thanks in advanced, Phil. -
You should probably escape your values huge security risk. Imagine I were on your site I could replace your the id in your URL.
xx.com?id=5;DRO P TABLE x;
And so on sense SQL commands are terminated by semicolons I could do some heavy damage to your database. Even have it write all the contents to a text file and view that file then I know everything in your database. Use mysql_real_esca pe_string on ALL values before...Leave a comment:
-
Okay lets try to go over this again. Make sure the file exists from where apache is taking your documents. Likely to be something like "C:/xampp/apache/htdocs/" if you accepted the default make sure you saved your file there unless you changed the directory from where apache will start serving your files.Leave a comment:
-
Umm unless the file is in the correct directory then I doubt it will find a imaginary file. I think you've confused PHP's require with something like pyhon's/java's import. If you installed it, it is loaded through a DLL not a file( well it is a file but its a special file to the Windows operating systems ). The load happens automatically when apache starts.Leave a comment:
No activity results to display
Show More
Leave a comment: