I'm looking for the most efficient way of searching through a string, and for each occurrence of a substring, run a function on it. Similar to the array_filter() function for arrays, except it would...
The messages on this board are stored in a database (probably MySQL or PostgreSQL), but that's separate from what you were talking about. The information from a database can be retrieved based on...
I'm not entirely sure what your question is. Is your script not working? That can't be your entire script...it doesn't actually do anything except check whether the person is using https://...
...
Well, if you had a JavaScipt variable var1 and you wanted to send it to PHP $var1, then you'd have to either submit it in a form, or place it in a cookie.
I've done it various ways, but what I find usually works best for me is to have all the pages called from one central script, as you said.
My approach tends to be that the string representing what...
Just my two cents: If you're going to use mod_rewrite, plan it out well from the beginning of a project. You can even draw it out. Just make sure you're well aware before writing any PHP how...
I'm finding in today's job market most companies are looking for knowledge of ASP.NET, and formerly I've only ever written PHP. I got some books from the library about it, but none of them are really...
I have a form where a user inputs an e-mail address, and then submits it with GET method. In IE this works fine, but in Firefox, the browser converts the @ symbol to "%40". This results in the form...
A common practice when developing a website that needs to support multiple languages is to place all the actual content (words) of the site in a separate file from the actual document. That way, I...
If you're hosting this on a test home computer, then it could be that your e-mail port (port 25) is blocked by your ISP. I usually get around this by using FTP with PEAR extensions (google it). You...
When deciding which to use, I usually ask myself: will the script still run alright if the file for some reason can't be included?
If it's absolutely required for the functioning of the website,...
The reason for this is that you must give the browser header information before any actual output. So if you've already sent some text/html to the browser, it won't accept new headers.
The way...
I'm new to AJAX, and I've created a little app that searces through a database of people dynamically as the user types. It seems to be working fine in Firefox, Opera, Chrome, Iceweasel, and a number...