PHP

Pdo in command line php?

Hi
I had the following problem when trying to connect to oracle database from PHP when running in command line

"DB Connection failed: could not find driver"

How to prevent navigation to a different page in PHP

In order to prevent navigation to a different page you have to do the following:

Call the header function with "HTTP/1.0 204 No Data" as the parameter. See example:


<?php

How to Increase maximum post size in PHP

In PHP the default POST maximum size is 2MB,
If you need to be able to upload larger files to the server you have to change the following configurations in your php.ini

How to create a cookie in PHP

How to create a cookie in PHP
setcookie("<cookie_name>", "<cookie_value>",<time is will expire>);

setcookie("username", "$username", time()+36000000);

Syndicate content