How To cache my index?
Hi, How To Cached My php Index Page to (/cache) folder for Faster Worked? What is methos is very fast ? ...
Hi, How To Cached My php Index Page to (/cache) folder for Faster Worked? What is methos is very fast ? ...
I am working on a site that has tests users can take. I have a test area set up with 100 questions on each subject. If a user is taking a test, I want them to be able to save the work they have already done and when they return I want them to be able to continue the work from where they left. The questions being answer are multiple choic...
I have two radio buttons say "yes" and "no" when i click "yes" the text box will be enabled. But for some reason Radio buttons are hidden in this form and no is the default. So i have a condition in php such as so If the "Code" variable doesnot Exists in the "arr" then we show radio buttons and by clicking "yes" we have the juery fu...
Im trying to remove the https:// and replace it with a non secure link for my wordpress navigation. This only happens when I view a secure page the wp_list_pages adds https:// Ive tried this $sslnav = wp_list_pages('title_li=&sort_column=menu_order&exclude='); $sslnav = str_replace("https", "http", $sslnav); echo $sslnav; but the nav ...
Hi. I am working on validating username, pass and email with php. I need to be sure I get it right so nobody can bypass the login page. This is the values: $email=$_POST['email']; $username=$_POST['uname']; $passwd=$_POST['pass']; $passwd2=$_POST['passcopy']; So far I have email validation: if(!(preg_match("/^[\.A-z0-9_\-\+]+[@][A-...
Hi I am intersted in learning more about the SECURE parameter of the function session_set_cookie_params can you tell me how to utilize this properly? if this function is executed on a page that is not secure (but on a server that does have SSL) will it somehow send it securely or do I have to force SSL on the page this function is execu...
$var = 'Click on this <a href="#">link</a>. (goes to heaven) (and then somewhere else)'; How to get the text, which is placed between first brackets? Throw its value to $extra In this example $extra = 'goes to heaven' Thanks. ...
Hi there, I'm having an issue with Jqgrid, I've got two grids on a single page and onclick on a row of the first grid needs to reload the second grid. I'm 100% sure the second grid is configured correctly is if I manually pass a hard coded id it populates correctly. Just the reload function is not working. Please could someone assist...
So I just got a nasty surprise when I deployed some code I thought I'd tested. It would seem there must be some difference between my test machine and my server. The exact same code, featuring a header redirect, worked perfectly on my test machine and not at all on the server. The redirect on the server simply didn't happen, leaving a...
I'm looking for regular expressions to remove space and whitespace before and after a comma. ...
I've spent a day on and off Googeling for this; no luck so far. How can I get the users OS and version. Mine would me Mac OS X 10.6.4, the spare PC in the office would be Windows XP SP3. You see what I'm getting at. I've seen a million and one methods to get the users platform alone, just not the version. JS would be ideal, but a serv...
Hi , How to embedded flash on email body , Using php (email function) ...
We run some large directories where users often copy/paste content from word documents etc into our TinyMCE html editor. The problem with this is often the following text for example gets hidden there which shows up on our webpages: <!-- /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0in; ...
I am creating an application to help our team manage a twitter competition. So far I've managed to interact with the API fine, and return a set of tweets that I need. I'm struggling to decide on the best way to handle the storage of the tweets in the database, how often to check for them and how to ensure there are no overlaps or gaps. ...
Hi, I'm new to PHP and i've been learning some php for the past couple of days, now i'm trying to execute a script with MySql code in it but unfortunately the browser comes up with an error about httpd.exe! it's just a simple code making a mysql connection: <?php $conn = mysql_connect("localhost", "root", ""); echo "$conn"; mysql_cl...
hello I want to count how many characters a certain string has in PHP, but I cant get it to work. I did a var_dump and this is what I got: string(23) "Children’s Center" It seems like ' gets translated to ’s This makes it impossible to get the actual character count. I tried using html_entity_decode but it did not help...
Hey all, I'm looking at creating a site for a start-up and I'm trying to decide if I want to build it with GWT. I've done alot of PHP before and would like to continue that but a colleague of mine suggested using GWT instead. I read the information that Google has published about it and I see that all of the scripting is Python. I've ne...
Hi I'm using the following code: to write contents from one file to another $page = file_get_contents('myPage.php?id='.$_GET['id']); $file = 'temp/form_'.$_GET['id'].'.html'; file_put_contents($page, $file); But I keep getting the following errors Warning: file_get_contents(myPage.php?id=9) [function.file-get-contents]: Invalid...
I use regex to create html tags in plain text. like this loop $SearchArray[] = "/\b(".preg_quote($user['name'], "/").")\b/i"; $ReplaceArray[] = '<a href="'.$user['url'].'">$1</a>'; - $str = preg_replace($SearchArray, $ReplaceArray, $str); I'm looking for a way to not match $user['name'] in a tag. ...
What I want I want to get from a URL the domain part so from http://example.com/ -> example.com Examples: +----------------------------------------------+-----------------------+ | input | output | +----------------------------------------------+-----------------------+ | http:...