Hello commnunity, i have somthing like this: (if this page needs the user to be logged)
if(!isset($_SESSION['usr_id'])){ //if not a logged user
$_SESSION['redir']=curPageURL();//Saving the current page for the redirection
header('Location: ../Session/loginFrm.php');
}
and in loginFrm.php, we do:
{...after validation...
I'm trying to create a database of World of Warcraft gems. If I go to this page:
http://www.wowarmory.com/search.xml?fl[source]=all&fl[type]=gems&fl[subTp]=purple&searchType=items
And go to View Source in Firefox, I see a tonne of XML data which is exactly what I want. I wrote up this quick script to try and parse some of i...
Is there anyway to use the Link Grammar or AbiSource grammar checker in PHP (or C# but I'd prefer php)? I need to have a tree structure for english sentences. Any ideas? The only things I found were in C and I can't use them on a shared host.
...
I'm working on a real frankensite here not of my own design. There's a rudimentary CMS and one of the pages shows customer records from a MySQL DB.
For some reason, it has no probs picking up the data from the DB - there's no duplicate records - but it renders each row twice.
<?php
$limit = 500;
$area = 'customers_list';
$prc = 'custom...
In official documentation of FPDF, it said alpha channel is not supported for PNG.
Is there any workaround?
...
class Crypt_Data {
protected $_mcrypt=null;
protected $_iv=null;
protected $_key=null;
public function __construct() {
$this->_mcrypt = mcrypt_module_open('rijndael_256', '', 'cbc', '');
$key_size = mcrypt_enc_get_key_size($this->_mcrypt);
for($i=0;$i<$key_size;$i++) $test_key .= "0";...
$(function() {
$(".datepicker").datepicker({
dateFormat: 'mm-dd-yy',
yearRange: 'c-70:c+10',
changeYear: true,
changeMonth: true,
numberOfMonths: 3,
showWeek: true,
firstDay: 1,
showOn: 'button',
buttonImage: "/images/scw.gif"; ?>',
buttonImageOnly: true
...
I have a PHP file using CURL that accepts a Google Doc URL as a parameter, then returns the plain text of the Google Doc.
It worked well until recently when apparently a redirect was added so that the http:// address redirects to the equivalent https:// address, as in this example:
http://docs.google.com/View?id=dc7gj86r_20dn2csqg3
S...
Hi
Every two minutes i want to check whether i received some message so want to reload my page every 2 minutes how to reload my php page using javascript
...
Let's suppose I have the following line in a CSV file (I removed the header row in this example):
"500,000",2,50,2,90000
I have a PHP script read the CSV file, break the file into individual lines, and store each line in an array called $linearray. Then, I use a foreach loop to look at each line individually.
Within the foreach loop,...
I am trying to send a simple HTML e-mail from PHP. The code below simply results in a blank e-mail in GMail. It also has an empty attachment called 'noname', which is not at all what I want; though that might just be a symptom of it not working.
The code I am using is:
<?php
//define the receiver of the email
$to = 'morrillkevin@gmai...
Hi
How to refresh a page every 10 minutes using php background process?
When i login to my account i can check my messages ,on setting timeout function the page reloads every 10 minutes but i need the process to run in background ,
After me logging in,.. if i receive some message i must receive a popup called hai you have a message f...
Possible Duplicate:
How can one use multi threading in php applications
Any body knows PHP5 supports multi threading or not. If it support how to implement that?
...
I have a table generated from some PHP code that lists a SMALL amount of important information for employees. I want to make it so each row, or at least one element in each row can be clicked on so the user will be redirected to ALL of the information (pulled from MySQL database) related to the employee who was clicked on. I am not sur...
I am using wordpress as a CMS and trying to allow user fields to be input to populate the info windows in a Google Map script. I am using this to select the id and pull in the content from a custom field.
It works fine unless there is any html in the custom-field which breaks the script.
I looked at htmlspcialchar and htmlentities but ...
Hi i have a social networking website.
what i want it to do is pull out my friends status updates.
basically what it does is i have a mysql query that pulls out all of my friends and in that while loop there is another mysql query that pulls out the status's from my friends.
i want it to be in order of date but since its one while loo...
My page use to validate for XHTML but I added the addthis buttons to page and it gives a new namespace:
E.G.:
<a addthis:url="http://domain.tld/path/to/stuff" addthis:title="Teh Title here">
I tried:
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:addthis="http://addthis.com/" lang="en">
Doesn't work.
Can we register namespac...
How to remove my corrupted mysql from wamp and connect separatly installed mysql to wamp?
If any body know please help me.
...
How to find a value exist in an array and how to remove it. If any php builtin array functions for doing this. After removing I need the sequential index order. any body knows please help me.
...