I recently had a hard disk crash. I removed the hard disk form the computer that crashed and put it into another computer as a slave drive. WE have full access to the crashed disk, however we cannot get into the user folder where all of the important files are. How can we retrieve these files...
I have a PHP script with much repeated code that works fine - but not until I reach this function:
function deleteCommentAction() {
$db = new Database;
$con = $db->db_connect('removal'); //right here
mysql_select_db("theatheistconservative", $con);
$query =...
Hello! I am having a problem with my include system. The include system is a script that sets up the PHP include_path so that I do not have to juggle it around on a large website directory tree. Here is the code:
<?php
$_PATHS["base"] = dirname(dirname(__FILE__))."\\";
$_PATHS["config"]...
From the code you entered, it appears that there is a line before the <?php. Try removing that and all other spaces like it and tell me what you get.
Matt www.cyber-share.com
I know that, but even after I refresh that page the cookie does not show up. I opened my browser's cookie dalog box and no cookie was found. Also, no session cookies are being set.
Matt www.cyber-share.com
Hello! I have noticed that many of my scripts intermittently break because PHP is not setting cookies. It is only for the PHP scripts that I use for the website I am working on where this happens.
Here is a test script where I test for cookies:
<?php
setcookie("foo","bar",time() + 86400)...
The problem has been solved! I placed session_write_close after the setting the session variables and it worked perfectly. Thank you jpadie for your help!
Matt www.cyber-share.com
Yes, the session was started. I had my script echo out the variables just like you asked and got this:
Answer: ,f3abec1f926773b14f155b0cfe5e789b
Interesting. On the left (the empty space before the comma) is where the session md5 should be. The value on the right was the md5 of what I entered...
I am currently putting the finishing touches on my website before going fully live later. I am having an amazingly irritating issue with my CAPTCHA on the sign up form. Here is the code for the CAPTCHA:
<?php
require('includes/sessions/sessionfunc.php');
session_start();
$alphanum =...
Hello. I am currently working on a website that includes certain things on every page, e.g. the copyright notice and the navigational menu. On my Apache server I have aliased /includes/ as the includes directory. What I would like to do is have PHP include things that are in the /includes/ Alias...
Hello! What I am currently trying to do is create a dynamic flash video player (e.g. that of YouTube) where a value is plugged into a <param> tag or a GET url and the video is played. Anyway, what I would like to know is whether it is possible for an ActionScript or Flash could take a frame from...
Hello! I am using the built-in PHP session functions and want to store that data in a MySQL db. Any ideas on how to do it? Thanks in advance.
Matt www.cyber-share.com
Hello! I am trying to use a CGI script that uses a URL to run a function and display pages. Like this:
our %funcToAction = ('email_verify' => everify(),
'account_deactivate' => deactivateAccount(),
'edit_settings' => accountEditSettings() );
What I...
Hello! I know how to parse XML with PHP now, except that I do not know how to read the attributes. Here is an example of the code I am using:
<?xml version="1.0" encoding="iso-8859-1"?>
<mail read="0">
<from>Foo_user</from>
<subject>Hello!</subject>
<message>Good morning! How are...
Hello! I am wondering about doing certain things with the PHP XML functions.
First, I would like to learn how to get the value of an attribute and do something if the attribute equals something. Like this:
<?xml stuff>
<mail status="unread/read">
<subject>Hello!</subject>...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.