Session timeout
Hey guys if the user exits the browser will this code still run the user_logout.php ? Thanks session_cache_expire( 20 ); session_start(); // NEVER FORGET TO START THE SESSION!!! $inactive = 1200;...
View ArticleSaving displayed table as CSV file.
I have a dynamic php page that has a series of select boxes at the top. When the user changes what is in the select boxes a div at the bottom of the page gets populated with a table via an ajax call...
View ArticleHelp changing array to different color?
I am trying to display all the contents of the array but I want to make "Chicken" in red font. How can I do this? I am new to Php. TY $animals = array("goat", "pig", "chicken","lion); //array...
View ArticleHelp php form submission
<?php if ($_FILES["file"]["error"] > 0) { echo "Error: " . $_FILES["file"]["error"] . "<br>"; } else { echo "Thank You For Your Submission, Please Come To Our Next Discssuion To...
View ArticleHelp with forms, arrays, and bulk editing?
Hey everyone. I am farly new to PHP and MySQL so I do say sorry in advance for any stupid lines of code I have written. But I am stuck at a point in a website im making for a friend. I have a database...
View ArticleFacebook app to post to a page
Hello, I want to post automatically to my Facebook page, but not to my personal account. What's the difference in coding? It's linked to my personal account perfectly using the following code:...
View Articleredirect ALL traffic to new url
Hi, can anyone tell me how to redirect ALL hits (image searches etc.) to one of my websites to land on .../index.php of my NEW website? Not just redirect [old]/index.php to [new]/index.php? I'm on a...
View ArticlePHP Listing Help.
Hi, Just wondering if anyone could advise some help for a site im working on. Basically this archive is obviously currently quite long: Im trying to cut it down so that all of the 2011 months are...
View ArticleQuery String not working properly
I have three websites that goes to an order form. If you go to the checkout page from site 2 first then go to the confirmation then to the link that takes you to page3 with the questy string OB working...
View ArticleCall PHP function from Javascript
I have this html code in a .php document: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head>...
View ArticlePHP Login help
I have this code in login_seccess.php <?php session_start(); if(!session_is_registered(myusername)){ header("location:main_login.php"); } ?> <html> <body> Login Successful...
View ArticlePHP code help
Hello! I'm new here and this is my first post! Hello!I have a block code to my forum. The block shows a table with recent topics. The problem is that it shows only name of topic, poster and date. I...
View ArticleSimple call of php function using ajax
I would like to know how to call a php function using javascript. I've done some googling and found that I need to use ajax. I read some tutorials and don't understand how to use ajax. All I want to...
View Articlessh tunnel with php script not working?
I want to create a ssh tunnel with php script but it is not working: <?php exec ('sshpass -p my_pass ssh -L 9001:remote_server:80 user@shell.example.net -N'); echo '<b> Done </b>';...
View ArticleLooping through pixels of an image
Hi all, I would like to loop through a rows and columns, like looping through pixels in a image, square by square, block by block, this is my initial code and it works fine: imagePixels =...
View Articleplace xml closing tags on newline for empty nodes only
i need to replicate this strange dotnet behavior exactly. <?xml version="1.0"?> <library> <book> <Title>Green Eggs And ham</Title> <page>...
View Articleunexpected end of file on line 49
why unexpected end of file on line 49: <html> <?php session_start(); if(isset($_POST['submit'])){ if (isset($_SESSION['email'])) { $uid=$_SESSION['uid'];...
View ArticleWhite screen.
Hello, I am trying to write a bit of code that will open a different page url depending on whether the value in my 'newsimage' table is set to left, right or centre. There is a news page which...
View ArticleCan't get why php unable to parse this code
class QuestionTagTable extends Doctrine_Table { public function getRelatedTags(array $tags, $limit = sfConfig::get('app_tags_on_sidebar')) { } } PHP reports Parse error: syntax error, unexpected '(',...
View Articlehtml php and sql connection an upload
Ok, before I start, phpfreaks is my last resort to get help. it seems the people on the other sites are having trouble understanding and/or helping me with this... anyway, here is what I am trying to...
View Article