Hey everybody,
i'm looking for an advanced tutorial about PHP sessions. With a deep understanding of how they works, avoiding to get into the PHP code.
Thanks!
Im wondering what affect loading an external page with php has on a sites analytics. If php is loading an external page, and not an actual browser, will the javascript that reports back to google analytics register the page load as a hit?
How to get Locale using Php,I want to get the time zone based on the location,
is there any possibility to get in php.
I need to convert it to GMT and save Database.Again i need to Pull it back to UI with same time same time zone.
Hi,
I often come across some nice web sites and I want to know what technologies (PHP, JSP, ASP.NET, etc) are used to build those web sites.
The web address of some web sites end with ".aspx", ".php", ".jsp", etc. But some web address do not contains any indicators.
Is there any systematic way we can use to know the technologies used by a web site?
Thanks.
I'm a front end guy (HTML/CSS) so please excuse this basic question. I just need to know what code in PHP I can use to number some text.
Text
Text
Text
into:
Text
Text
Text
Kind of like what <ol> does in html but in PHP.
Hi, is there any jQuery plugin to create something like the live feed from the Twitter Main Page , using PHP, which is getting the data from a MySQL database?
How has to be the PHP file?
Thanks.
I have some xml files with figure spaces in it, I need to remove those with php.
The utf-8 code for these is e2 80 a9. If I'm not mistaken php does not seem to like 6 byte utf-8 chars, so far at least I'm unable to find a way to delete the figure spaces with functions like preg_replace.
Anybody any tips or even better a solution to this problem?
I'm looking for a random number generator that I can run in PHP, C and Java that will always return the same sequence of numbers for a given seed.
Here's the Java implementation I would use: java.util.random source
Whilst this would be fairly straightforward to port to C and PHP, there is potentially a lot of work to get all the edge cases correct and handle differences in number representation. I'd be extremely happy to just copy and paste a fully tested version should it exist.
How to replace space and dash coming together with only dash in php
e.g below is my url
[url] = http://kjd.case.150/1 BHK+Balcony- 700+ sqft. spacious apartmetn Bandra West
In this I want to replace all special characters with dash in php.In url there is already 1 dash after balcony.If i m replacing dash with special chars then it becomes two dash bcoz already there is 1 dash in url and i want only 1 dash.
I would expect this option to exist in PHP - Editor - Save Actions but the only thing available there is to "remove trailing whitespace"...
It's available in JavaScript - Editor - Save Actions but not php :(
Is there a plugin that will let me do this?
I am trying to set a variable in an 'if' statement so that only when the 'if' statement is true, the variable will be set and will be able to be used somewhere else on the page.
Here's what I have tried:
if ($row[8] == 1) {
echo 'Message here';
ob_start();
include('F164.php');
$f164 = ob_get_clean();
}
as well as:
if ($row[8] == 1) {
echo 'Message here';
$f164 = include('F164.php');
}
Hello everybody,
I want to convert a pdf file to an image with PHP, but i can't get the command worked. PHP returns a 4. I don't have any kind of idea what that can be.
I am using the next code:
$tmp = system("convert -version", $value);
var_dump($value);
Someone an idea?
I'm writing a simple linear linked list implementation in PHP. This is basically just for practice... part of a Project Euler problem. I'm not sure if I should be using unset() to help in garbage collection in order to avoid memory leaks. Should I include an unset() for head and temp in the destructor of LLL?
I understand that I'll use unset() to delete nodes when I want, but is unset() necessary for general clean up at any point?
Is the memory map freed once the script terminates even if you don't use unset()?
I saw this SO question, but I'm still a little unclear. Is the answer that you simply don't have to use unset() to avoid any sort of memory leaks associated with creating references?
I'm using PHP 5.. btw.
Unsetting references in PHPPHP references tutorial
Here is the code - I'm creating references when I create $temp and $this-head at certain points in the LLL class:
class Node
{
public $data;
public $next;
}
class LLL
{
// The first node
private $head;
public function __construct()
{
$this->head = NULL;
}
public function insertFirst($data)
{
if (!$this->head)
{
// Create the head
$this->head = new Node;
$temp =& $this->head;
$temp->data = $data;
$temp->next = NULL;
} else
{
// Add a node, and make it the new head.
$temp = new Node;
$temp->next = $this->head;
$temp->data = $data;
$this->head =& $temp;
}
}
public function showAll()
{
echo "The linear linked list:<br/> ";
if ($this->head)
{
$temp =& $this->head;
do
{
echo $temp->data . " ";
} while ($temp =& $temp->next);
} else
{
echo "is empty.";
}
echo "<br/>";
}
}
Thanks!
Is there anyway invoke a PHP page / function when a record being inserted in to the mysql db table. We dont have control over the record insertion procedure.Is there some thing called trigger which can call a PHP script back ?
Hi...
I need help because I don't know about web services using php
somebody help me
I need to create a web services with php and I need some any reference (free)
Thanks for your help
I have the array variable say $value, and it has the below given array
[navigation] => navigationHistory Object
(
[path] => Array
(
[0] => Array
(
[page] => order_form.php
[mode] => NONSSL
[get] => Array
(
[id] => 31
)
)
)
)
how to echo/access the 'get' index of the given array in PHP syntax
I would like to name my css file mystyles.php. All content within will still be css. I'd like to then include this into my index.php page without using the standard HTML <link> tag. Any direction would be appreciated very much.
i have created a file with extention .php.so how should i run this file with netbeans.i have download the netbeans 6.8 with all bundle feature.i hav seen the php file can run with netbeans so i m asking.plz explain
I am sending login status = fail, back to my login page.Here is my code-
header("location:index.php?login=fail");
but that is sending through URL like-
http://localhost/303/index.php?login=fail
is there any way to pass value without showing in URL? And how to get this value on the second page?
Hello,
How can I read from mysql and write the same in http output stream.
So its like if send a request http://www.xyz.com/download/A
it should return me data for A from mysql through php.
The data is plain text.
Thanks
PS: I am new to php.
Hi,
I want to have an array of struct (an array of books with their specifications like publication, ISBN number, ...). in wsdl and php. I have searched a little and I have found files that uses Nusoap, However, I dont want to use NuSoap. Is there any solution? I would appreciate if you help me in writing the related wsdl, client and server (php) files.
Thank you so much.
Best, shadi.