No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
7 Posted Topics
Hello, I am familiar with the get_defined_functions() function as a way of listing all of the user defined functions. Is there a way with PHP to also determine from which file the user function was defined? Consider the following example. Assume there are three files: - index.php - user_functions1.inc.php - …
Hello all, My question is about grep as a command line program... How can I tell grep to only search inside files that end in ".php"? The command that I am using now is: grep -r "some_string" some_directory Thanks! -Dave
You may also need to deal with permission issues. The web server typically runs as a different user (such as "nobody") than the user you use to manually create files/directories via FTP or command line. If you create a directory with your PHP script, the owner will probably be the …
Hello, You are missing the declaration of delimiters after the LOAD DATA INFILE in your SQL statement. You can use "FIELDS TERMINATED BY" and "LINES TERMINATED BY" to define these based on how your CSV file is delimited. For example: [CODE]LOAD DATA LOCAL INFILE '/your_file.csv' INTO TABLE your_table FIELDS TERMINATED …
Try following these steps: [B]1. Read the XML file content into a PHP array.[/B] There are many ways of doing this. I'd recommend the use of a couple of simple functions for converting between XML data and PHP arrays. (Google "php array to xml") [B]2. Add the new image to …
Hello all, I would like to write a shell script that can scan a directory containing audio files and extract metadata or audio encoding information from the files. The goal is for the shell script to be able to process music files based on embedded data as: Format, Data Rate, …
Are you trying to show which item in the loop was clicked? If so, try this: [CODE] <table width="61%" border="1" align="center" cellpadding="4"> <?php if (isset($_GET['value'])) { print "<tr><td><big>You clicked: $value</big></td></tr>"; } $data = 10; for ($i=1; $i<=$data; $i++) { print "<tr><td><a href=\"?value=$i\">Data: $i</a></td></tr>"; } ?> </table> [/CODE]
The End.
metaface