I have a regex email pattern and would like to strip all but pattern-matched characters from the string, in a short I want to sanitize string...
I'm not a regex guru, so what I'm missing in regex?
<?php
$pattern =…
So I know that you use a backslash to escape most things in php however the @ symbol is an operator that suppresses error messages.
I'm trying to put an email string like this inside of an array "myname@gmail.com",…
I have just started learning all this coding language and the teacher is asking us to do the following. I know it may sound really easy for people who do this full time or have more time coding. The teacher is…
I am working on a large multilingual website and I am considering different approaches for making it multilingual. The possible alternatives I can think of are:
The Gettext functions with generation of .po…
This is a trick question, while developing a php+ajax application i felt into some long queries, nothing wrong with them, but they could be done in background.
I know that there's a way to just send a reply…
Hey guys, I have a mysql database which stores an id for each picture, as well as the picture's url and its thumbnail url. the thumbnail url is something like thumbs/pic.jpg and the page I'm creating has the…
Hi, I have a bunch of big txt files (game walkthroughs) that I need translating from English to French. My first instinct was to host them on a server and use a PHP script to automate the translation process…
I'm working on my first PHP project, and it's going well. I've been able to figure out how to do most of what I need so far, but there's one big problem for me now: E-mail.
I'm on a shared server, so I…
Hi,
I'm using PHPMailer to send a confirmation email for newly registered users in my social network. But i found out most of them have ended up in user's spam list. (hotmail and yahoo). How to avoid…
I am iterating through the results of a service call to yahoo news thus:
//Send service request
if (!$yahooResults = file_get_contents($yahooRequest)) {
echo 'Error processing service…
Thanks for checking out my problem... I'm having trouble submitting a login form via Ajax for a php script to run and return a new set of html items which will be replacing the HTML in #userlinks....…
hello all, my question is the following, which is the best way to work in a dynamic KML+ PHP and html?, especially script automatically
thanks for your attention and answers
I have quite a few objects in my system that implement the PHP SPL Iterator interface.
As I write them I also write tests.
I know that writing tests is generally NOT a cut 'n paste job.
But,…
Ok maybe I've overlooked something really simple here, but I can't seem to figure this out.
I'm running WAMP locally, but connecting to a remote MySQL database. The local version of PHP is the…
I am trying to extract the photo 'stars' rating from .jpg files using php code. My intent is to show the highest rated images as part of a slideshow. I found that using the…
Php/my sql newbie question. I have a database I've imported into my local phpmyadmin. However it seems I can't access it from my a php application. The connection string…
I have the following php form.
I am trying to make it so that when the form is loaded, the values will be assigned the appropriate check- variable. This variable will…