8,966 Posted Topics
Re: use: if (! session_id()) session_start(); at the top of each page. | |
Re: [code] $my_array = array (); $my_array[] = "Blergh"; // Appends an item [/code] | |
Re: [url]http://www.ietf.org/iesg/1rfc_index.txt[/url] Technical detail: see the specifications and protocols for ICMP, FTP, HTTP etc. | |
Re: Did you try removing the content-length line ? see php.net/readfile, first comment. | |
Re: You would need only one separate html form with the fields you'd like to enter into your db. Post that to a php script which does the insert. That should be it. The tables then need to be dynamically created from the db. That's not hard either. It's even possible … | |
Re: Is this file perhaps included by another one ? Then maybe that one causes the error. | |
Re: 1. Is 'allow_url_fopen' set to 'on' in your php.ini ? 2. From php.net/file: Note: If you are having problems with PHP not recognizing the line endings when reading files either on or created by a Macintosh computer, you might want to enable the auto_detect_line_endings run-time configuration option. | |
Re: The echo after your mail() displays different variables then those you use in generating the email mesasge body. So are you really sure it works ? | |
Re: You could use a .htaccess file containing a Redirect. Google both words for lots of articles on the subject. | |
Re: If port forwarding is enabled to your machine running xampp, then it should work. If you enter your external ip-address in your browser, you should see your page. | |
Re: [url]http://dev.mysql.com/doc/refman/5.0/en/create-procedure.html[/url] [url]http://dev.mysql.com/doc/refman/5.0/en/call.html[/url] | |
Re: if you want to continue your for loop then use 'continue' instead of 'break'. Just a note: mysql has a YEAR and MONTH function you can use to simplify your query. | |
Re: Try TOAD, it's free (toadsoft.com). Navicat is my tool of choice, but this one is commercial (navicat.com). | |
Re: It may be possible to do this by using REGEX in the WHERE clause. It will be a complicated one, but maybe someone here has more experience with it. | |
Re: [url]http://www.freebsddiary.org/untar.php[/url] You need to untar the file that has been unzipped, see above link. | |
Re: It means that you are trying to update a foreign access_id, which is not yet in the userAccess table. | |
Re: If you're using MySql then you could set the storage engine to MyIsam and use the fulltextsearch capability. See the MySql docs for more info. | |
Re: Did you try to specify a full path to the file ? And does the PHP user have rights to access this location ? | |
Re: Depending on your queries, adding indexes can drastically improve speed. | |
Re: Probably somewhere an error has crept in, maybe no connection, or error in the query. Try: $mResult = mysql_query($mQry) or die(mysql_error()); to see if anything is going wrong. | |
Re: For development I have WAMP installed on one machine, and XAMPP on another. For the actual PHP code I use EditPadPro. For debugging Zend. ![]() | |
Re: Create a html form like this: [code] <form action="search.php" method="post"> <input type="text" name="search"><br> <input type="submit"> </form> [/code] search.php [code] <?php $search = "%" . $_POST["search"] . "%"; mysql_connect ("localhost", "myuser", "mypassword"); mysql_select_db ("mydatabase"); $query = "SELECT mycolumn FROM mytable WHERE mycolumn LIKE '$search'"; $result = mysql_query ($query); if ($result) { … | |
Re: See here: [url]http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html[/url] and search for QUERY_STRING | |
Re: For me the most notable differences would be case-sensitivity in files and security issues (users/groups). | |
Re: Do you get an error message ? There is a difference between $username and $userName, did you see that ? PHP is case sensitive. | |
Re: You can simplify your file handling by using file_get_contents() followed by an explode(), should the problem lie in invalid email address. [url]http://nl3.php.net/manual/en/function.file-get-contents.php[/url] [url]http://nl3.php.net/explode[/url] | |
Re: Maybe he wants to build a CMS. In that case, have a look at Mambo or PostNuke. | |
Re: You'll have to use javascript to accomplish this. Search for "javascript calendar" on google. | |
Re: For PHP: [url]http://nl3.php.net/number_format[/url] For MySQL: [url]http://dev.mysql.com/doc/refman/5.0/en/numeric-type-overview.html[/url] (at the bottom: DECIMAL) | |
Re: The best way to use tranactions is to use the feature of your selected database (using queries). If you want to code this in php... good luck, not recommended. | |
Re: Mitko, the restore command should be using mysql, not mysqldump. | |
Re: The site is the same on my xppro machine using IE7, Opera9, FF2 and Safari | |
Re: For me it's open. It is possible some members experience a closed site because of DNS caching. It may take a while for the changes to get through, especially if they their own DNS set up for performance. | |
Re: As for moving to MySql 5. I'd surely recommend it. We moved from 4 to 5 a while back, and noticed almost immediately an improvement in performance. Also 5 has transactions and stored procedures, the latter may help you with you admin tasks. At the Php Conference here I learned … | |
Re: Normally I'd recommend completely normalizing your tables. It would be overhead (as you stated) when you start out and may seem inefficient. However, note that maybe some day your need to extend your database, or someone else needs to do your job, then a normalized table is the easiest to … | |
Re: I think you'll have to set priviliges to the commands you want to execute. Also, check if in your httpd.conf the ExecCGI is in the Options directive, plus the extension has to be somewhere in there. | |
Re: I don't think the server will do something about it. It will execute the code you write. Most languages 'allow' this. Only some interpreters/compilers will check for this type of bug, often by putting in a counter. If it hits some large maximum, the code will abort. | |
Re: Does your second server (with SMTP) actually allow for SMTP to be send from a different server? Very often this is disabled. So before anyone will try to help you, are you sure this is even possible in your situation? | |
Re: You can use `SELECT * FROM tablename WHERE CONCAT(firstname,lastname,phonenr) LIKE '%$search%'` | |
Re: It's all a matter of taste. C is the language it all started with, though at that time I thought assembly was the coolest. Then I found prolog and thought, wow. This is it. Then I did pascal which was a lot of fun. However in school we learned SmallTalk … | |
Re: have a look at the EMBED tag. this makes it possible to autostart audio. ![]() | |
Re: If you want to consider a third party tool, then Navicat is a good option. It's not expensive, and includes a scheduler for SQL jobs. It can also administer databases, and easily transfer databases across servers. For more info: [url]http://www.navicat.com/product.html[/url] And no, I have nothing to do with, I am … | |
Re: Primarily, it depends on what you need to program. Various languages apply better to a specific job. So, what are you creating? | |
Re: in MySql there is the LOAD DATA INFILE command. Perhaps PostGre has support for it. | |
Re: SELECT * FROM first, second WHERE first.S_ID=second.S_ID ORDER BY second.Last Does the same thing, but is much faster than a join. | |
Re: [url]http://en.wikipedia.org/wiki/Top-level_domain[/url] | |
Re: Have a look at regmon and filemon from sysinternals. Great tools. | |
Re: `this` should be `$this` `myclass` should `$myclass` note that variables are preceded by a `$` | |
Re: you also need `<option value="something">Something</option>` |
The End.