birbal
-
Posts
2,543 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by birbal
-
-
error reporting constant is also a number. so applying bitwise operator on them is same as applying on numbers.
-
it is php error not mysql. you have missed closing quote in $sql;
-
Use unix timestamp to store date time and use local timezone to output local time.
-
you should restructure your array to another dimension.
$service['price']="foo"; $service['name"]="bar";foreach ($serviceslist as $value ){echo $value['price'] . $value['name'];echo '<br>';}?>
Also if you want to use print data proper order using print_r(), you should use the second parameter.
-
The problem is that the links are going to send the user back to the original site, unless you convert all the links into links to a PHP page that loads the HTML content as well. Overall it's really complicated and iframes are there for a reason.
yes, exactly so. the links can be pass thorugh a php page from his server. like passing the page link as parameter and that page will handle the request making process. It is the only problem with anchors,forms etc. but links to stylesheet and JS page can be handled directly without calling it from server (unless it needs to be proxied too). But those links need to be figured out of their actual URL by its relative URL to point correct location.
-
You can use DOM though to get the links of stylesheet, JS file and other links. and make separate request to those web resource.What you are asking is like proxy. Absolute links will work any way. You need to take care of relative links.
-
please help
in PHP
Do the basics. Start with developing small real life application. Use PHP manual as reference. learn from the mistakes.
-
yes. you cant have both. More Detailed picture, more pixels, more spaces to store data about those pixels.
-
First param is total digits including integer part and fraction part. Second one is number of fraction part.So (3,2) can be max to 9.99
-
Unsetting the session wont delete the session. It will just unset the session value. Session_destroy() will delete the server side session data. But there will be still session cookie on browser. Though that cookie cant get any data as in server that session is deleted and that cookie will expire on his own after certain time (as your session cookie setting was set. But i would like to delete the cookie imidiately once the user log out. Normal cookie deletion technique applies here
-
yes, remember me cookie and session cookie, both.
-
check the data, dump it in console.log(). verify the data it is sending to the data.php. unless you are using a php page to generate JS page, <?php echo $gender;?> this wont work. php code block only execute in php context.
-
This function tries to address 2 different scenarios. There is a cookie in the user's PC(remember me feature) and the second scenario is that there is no remember me cookie in the client.
You need to delete both cookie or any other user related data anyway when user logout.
-
for storing currency best to use decimal. float has issues to loss data in arithmetic operation.
-
$arr[]='foo';
-
If you want to log it in background, you can use exception with specific message and/or the sql dump in the message. and use a specific exception handler for that particular type of exception that handler will dump the data to flat file or inform the admin or any thing you want to do with it.
-
AFAIK their is not list of valid tag. any tags can be put.
-
I am not aware of that particular module. I believe you need to look into websocket.
-
32 bit version can be ran on both 32 and 64 bit. TS means thread safe. VC9 is compiler that is used to compile the binary. they should match with your existing php installation.
-
-
I prefer to set error mode to Exception and catch that on failure.
-
-
you need to detect when does your queries are failing and according to that you need to rollback. check method for 'rollback' in whatever API you are using
-
What would do those scripts? Why not using regular php file for admin job?
Receiving email on a shared host?
in PHP
Posted
you wan to work with stored email in your account?