Hi stackoverflowers,
I'm currently working on a project with the php framework symfony.
I've configured secured pages, defined 30 minutes for the session timeout and set the page where the user should be redirect if an unauthenticated user tries to access a secured page.
I've remarked that he is also redirected there if he tries to acce...
Hi friends,
I want to make a file upload form.
But my confusion is that when i put file element in html its allow all types of files to select.
I want that browse button will only allow the images to select from the file system.
Actually it should display only images of the file system.
Thanks in advance.
...
I was wondering how can I select a value from a database that a user just entered it into and then add it to another mysql table all in the same script before the script is finished running.
...
You can find all source files at http://github.com/a2h/Sponge-CMS/tree/master
Okay, here is my login page, and here is a function isloggedin():
function isloggedin()
{
// is the user set to remember?
if (pisset('cookie',array('cookuname','cookpwd')))
{
pset('session',array('uname'=>$_COOKIE['cookuname'],'pwd'=>$_COO...
I would like to pass over 50 items of variables from php to flash. Actually I want to pass array with foreach statement, looping through the array and assigning loop index to the variables and flash again accept the php values through looping. Is this possible?
If passing values through foreach or loop statement is impossible, I would l...
I want to create a gallery of pictures for my website and upload those pictures from the administration panel of the website. I am going to show all pictures in a page with a very small size, and one place I will separate for each picture to show the selected picture (from small ones) with big size.
I know two ways of doing that:
I c...
Hi,
I'm running windows 7 and using WAMP for my local development. Now I Installed Cultbooking (sourceforge.net/projects/cultbooking/) in my wamp and can't finish my installation because it says sock "Socket support - Socket not supported". I don't know how I can enable my socket. I'm new to web development.
This is what I did, I downl...
When I modify the php.ini document found in
Applications/MAMP/conf/php5/php.ini
The changes are not reflected in the php info page in the MAMP interface
WHY?
...
Online chat is deceptively difficult due to the stateless nature of http and the web in general, causing such hurdles as session timeouts, users opening multiple windows and different accounts being signed in on one browser window. There is also the problem of users closing the browser window and logging out and such things, which make d...
Need some help with how to handle sessions. I am using ajax techniques to implement a group discussion platform and alot of its success depends on whether or not i can handle sessions properly, be able to see who is online etc. How can i do this efficiently. Remember, this is a typical single url ajax application where the server only re...
This is the command with which I set cookies:
setcookie('username', $username,
strtotime('+1 months'), '/',
'.localdomain.com/jp/');
This is the statement with which cookie is read:
$user=$_COOKIE['username'];
Why can I not read cookies on another page?
...
I want to detect encoding correct, but i found mb_detect_encoding always get error result, And I added lots of encoding_list UTF8 ISO-8859-* ....
...
How would it be possible to generate a random, unique string using numbers and letters for use in a verify link? Like when you create an account on a website, and it sends you an email with a link, and you have to click that link in order to verify your account...yeah...one of those.
How can I generate one of those using PHP?
Update: J...
I've little idea of how arrays are implemented in PHP, and know that for most OOP languages the complexity is one of constant time, O(1), for an array of a predefined type. So what's the deal in PHP with it's dynamic typing, extending arrays, etc.?
...
I keep seeing variations of this:
Not equal
!=
Not equal, equal
!==
Which one is the standard or do they have different meanings?
I am guessing the latter also checks the value and the name if it's a string, while the
former might just check the value only...
...
Hello,
I have weather forecast data formatted like so:
loc_id#location#state#forecast_date#issue_date#issue_time#min_0#max_0#min_1#max_1#min_2#max_2#min_3#max_3#min_4#max_4#min_5#max_5#min_6#max_6#min_7#max_7#forecast_0#forecast_1#forecast_2#forecast_3#forecast_4#forecast_5#forecast_6#forecast_7#
090180#Airey's Inlet#VIC#20091204#20091...
Hi Everyone
I have a problem with one of the websites i'm administrating. All emails sent from the website have this email address at the top: [email protected]
How can i get rid of it.
...
I have two domains with pretty much the same code on both, (version control) but I wanted a little bit of code that would show '(US)' if the viewer was looking at the .com or '(UK)' if the .co.uk, any help welcome...
...
I inherited a Zend project devoid of comments and I didn't get to talk to the previous developer. Since I have no Zend experience I'm having some issues :)
I'd like to print out some variables inside an function that indexes items from the site using Zend_Search_Lucene because I think something is going wrong here.
From what I've read...
I have a Mysql database of 500+ Real Estate Listings which I am looking to load into an empty Joomla Extension (this may apply to any PHP Script).
I have copied the structure and convention of each table the extension uses - with the idea of either exporting or simply deleting the original tables and replacing them with mine.
Upon test...