Redirect user - headers based on session variables
What is best practice when re-directing a user based on their session variables? Ok, so my below code gives me headers already sent error, as i'm using header location more than once, but it shows...
View ArticlePHP Time() in MySQL
First, I am a PHP Newbie.... I am maintaining a PHP / MySQL site. Many of the Date fields in the database are stored as INT14 and the value is set to the PHP time() function. Using SQL Only...
View ArticleProblem with php code simple calculater
Hello, I have a problem writing a code in one file. It's a drop list having a different operation ( - + / * ) I have to select one of these and before that there are two text field to write two number....
View ArticleIs there something wrong with my call to the rotten tomatoes API ? It's...
Ok , there is an issue with the rotten tomatoes API , It gives developers the ability to set a limit of movies to return from the API from a specific category , like the movies in the box office are...
View ArticlePHP Post to twitter - compare two files
Hi, I'm trying to write a script that posts the contents of a text file generated by radio automation software from a cron job every 30 minutes. The script should open this file (data.txt), compare...
View Articlepassing variable to url
Hi, My first post so please excuse if im ake any mistakes. I have a drop down that I am getting a post variable from with i am then trying to append an URL with. It works but only for the first...
View ArticleNeed help
I want to make simple game where if you combine 2 different item it would make a different item For example 1 + 2 = 3 if you get what I mean
View ArticleParse Error Help Please
This is what is happening.. Parse error: syntax error, unexpected $end in /Applications/XAMPP/xamppfiles/htdocs/Assignments php class/battleship/testing123.php on line 991 <?php session_start()...
View ArticleGenerating random alphanumeric code
I am trying to generate a random 4 character alphanumeric code. For some reason my script is sometimes generating a 3 character code, though most the time it is doing a 4 character. Thanks for your...
View ArticleRead Outlook.pst file using Php.
Hello everyone , I'd like to know if there is some not too hard way to read/parse basic informations in a local file D:/Outlook/outlook.pst. I've check some imap informations such...
View ArticleSubmit form to same page and then update - not working
I am trying to submit a form and then run an update but its not working, please help here is my page: <?php session_start(); mysql_connect("xxx", "xxx", "xxx"); mysql_select_db("xxx"); $id =...
View ArticlePassword Lenght (Change password script)
Hello, I'm creating a change password script and my problem is the lenght of the password (strlen). For example if the user add 1 character as his password i will be correct and then his password will...
View ArticleUnable to get HTML source with PHP
I'm quite new to PHP and I'm having big trouble getting the HTML source of a page. Here is the page : http://www.fisheriessupply.com/3m. After I take the HTML source of this one I want to take also the...
View ArticleX.509 Login
Hi guys, So rather than always having to enter in a username and password, I want my intranet to accept X.509 certs generated using http://phpseclib.sourceforge.net/x509/examples.html#casignedv Now...
View ArticleChecking for no data in SQL query
I am trying to code my script to display a message if the SQL query finds no results. I have used this snippet in a previous script and it works OK, but it does not work in this context. The SQL...
View Articlephp sessions problem (2 or more applications/domains on 1 server)
Hello, I'm not an php expert. I'm working on some php application and need help regarding php sessions or possibly something else. description application 1: On the apache server I have 1 php...
View ArticleForm HELP! Validation & server side
Hi! I need help! No other forum is helping me and it's a bit urgent. I have searched all over the internet and tried over 30 different codes but I can't get this to work. Im very new to php and that...
View ArticleReplace one value of array (if empty)
This code should be pretty self explanatory, but I'm struggling bad to get it to work. I want to check if the "propview" element is blank, if so, replace it with "No Contingencies". Simple right?...
View ArticleBeginner with beginner question re: listing specific file type
Hi all, I am new to PHP, really enjoying what I am learning. I went through Kevin Skoglund's tutorial and created a CMS http://www.trepaning.com/cms/public I am now doing other courses, but have a...
View ArticlePHP contact us form email trouble
Hi, not sure if ive posted this in the right section, but im making a website thats mainly html but ive thrown some PHP for the contact us page, i have used a form that requires the user to send a...
View Article