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"]...
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)...
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>...
Hello! I am making a sound player for my website, and I need the the player to read a GET variable to find the sound to play. I can't find ANY good resources for this. Could I please have some help?
Cheers,
MJAZ
Matt www.cyber-share.com
Hello! My PHP script is not connecting to the MySql database. Every time I run it, it says COuld not Connect: and then nothing. I am using mysql_error() and error checking. Here is the code (database usernames and passwords removed):
function user_check($user) {
$con =...
Hello! I have two questions for you all today: Are the built-in sessions for PHP secure and if so how can I make then secure. Also, I am having problems with PHP's checkdate() function. I am passing some dates from a drop-down list that has the numbers 1-12, 1-31, and 1900-1994. It always...
Hello! I am wondering how I can create a video player using flash that plays the video file either in a GET URL or a <param> tag. The only ones I have found require the file to be a flv video. Any ideas?
Matt www.cyber-share.com
Hello! Every time I run the script below in my browser I get this:
Warning: array_push() [function.array-push]: First argument should be an array in C:\Documents and Settings\Administrator\My Documents\Cyber Safe Deposit\website\signup\join.php on line 16
Warning: array_push()...
Is there a way so that a Perl script can check the size of a file or folder? I am wondering because file and folder size is an integral part of my website.
Hello! I have finally finished the first version of my CGI script, and when I run it in the browser, it tells gives me a 500 error. Here is a snippet from my error log:
[Wed Oct 25 15:27:32 2006] [error] [client 127.0.0.1] (OS 3)The system cannot find the path specified. : couldn't create...
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.