Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 114
Search took 0.19 seconds.
Search: Posts Made By: howard-moore
Forum: PHP 03-31-2013, 08:47 PM
Replies: 19
Views: 296
Posted By howard-moore
Good advice - many thanks for your help - you've...

Good advice - many thanks for your help - you've been a lifesaver!!
Forum: PHP 03-31-2013, 08:33 PM
Replies: 19
Views: 296
Posted By howard-moore
I see what you mean. So you basically put the...

I see what you mean. So you basically put the code in the php.ini file like:

auto_prepend_file = /wamp/www/example/prepend.php
Forum: PHP 03-31-2013, 08:17 PM
Replies: 19
Views: 296
Posted By howard-moore
I guess so, but would that not mean that I have...

I guess so, but would that not mean that I have to edit every main script anyway?
Forum: PHP 03-31-2013, 07:50 PM
Replies: 19
Views: 296
Posted By howard-moore
Thanks, that does work. However, is it something...

Thanks, that does work. However, is it something that has to be added to every single script? I have hundreds of websites and each one has hundreds of pages of script. It will take literally weeks to...
Forum: PHP 03-31-2013, 07:40 PM
Replies: 19
Views: 296
Posted By howard-moore
Sorry, I'm not sure that I understand what it is...

Sorry, I'm not sure that I understand what it is that I need to add and to what file? I am pretty certain that none of the scripts are working because register_globals is not turned on (or indeed not...
Forum: PHP 03-31-2013, 07:21 PM
Replies: 19
Views: 296
Posted By howard-moore
OK, so I've done some testing with another site...

OK, so I've done some testing with another site and tried turning off register_globals, and this brings up exactly the same results. Therefore, this is what is causing the problem.

Does anyone...
Forum: PHP 03-31-2013, 06:56 PM
Replies: 19
Views: 296
Posted By howard-moore
Actually, I've just noticed another one using the...

Actually, I've just noticed another one using the new PHP 5.4.12 version, which I am sure is related. I have the following code:

<? include ("content/content_news$template.php"); ?>

and the...
Forum: PHP 03-31-2013, 06:48 PM
Replies: 19
Views: 296
Posted By howard-moore
Sure, the code is: <? include...

Sure, the code is:

<?
include ('config/config.php');
mysql_connect($localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM...
Forum: PHP 03-31-2013, 06:37 PM
Replies: 19
Views: 296
Posted By howard-moore
It's weird - nothing is showing up in the...

It's weird - nothing is showing up in the error_log.
Forum: PHP 03-30-2013, 11:41 AM
Replies: 19
Views: 296
Posted By howard-moore
Thanks for that. I have managed to change the...

Thanks for that. I have managed to change the php.ini file, but the ?dir=".urlencode($dir) part is still not working. It is only showing the first directory.

The idea of the code is that when you...
Forum: PHP 03-30-2013, 10:59 AM
Replies: 19
Views: 296
Posted By howard-moore
OK, so I have managed to get some of it to work...

OK, so I have managed to get some of it to work by using the following:

<?php echo (file_get_contents("$domain/docs/index.php?dir=".urlencode($dir))); ?>

However, the purpose of...
Forum: PHP 03-30-2013, 09:26 AM
Replies: 19
Views: 296
Posted By howard-moore
Help with new PHP version

Hi All,

I have recently upgraded my PHP server version to 5.4.12, and I am having some real difficulties with getting something to work.

The issue is with includes. I have a folder/file...
Forum: PHP 02-24-2013, 04:23 PM
Replies: 6
Views: 270
Posted By howard-moore
Thanks - that was exactly the issue! Really...

Thanks - that was exactly the issue!

Really appreciate your help.

Neil
Forum: PHP 02-24-2013, 02:35 PM
Replies: 6
Views: 270
Posted By howard-moore
PHP script not working - what is going wrong?

Hi,

I have the following bit of PHP that is not working. I am basically trying to put together a menu structure:

<?php
$sql = "SELECT * FROM PCNET_$filename WHERE page_type='TOP_PAGE' AND...
Forum: PHP 02-14-2013, 12:55 PM
Replies: 0
Views: 177
Posted By howard-moore
Help with a dynamic drop-menu

Hi,

I have put together the following script which creates a dynamic drop-menu (in unordered list which is subsequently styled in CSS). What I am looking to do is find a way to add a focus to show...
Forum: JavaScript programming 02-13-2013, 12:00 PM
Replies: 1
Views: 201
Posted By howard-moore
CKEditor textarea validation problem

Hi All,

I have tried putting this to the CKEditor forum but they appear to blank it, so am coming here in desperation.

I use the following script to validate whether someone has added any...
Forum: JavaScript programming 01-27-2013, 04:53 PM
Replies: 3
Views: 157
Posted By howard-moore
The reason that I have this is because I only...

The reason that I have this is because I only want the user to fill 'some' information (and I am not bothered as to what that content is). It is part of a CMS, which is also the reason that I use...
Forum: JavaScript programming 01-27-2013, 04:23 PM
Replies: 3
Views: 157
Posted By howard-moore
Form field check not working on first click?

Hi,

I have the following code used to check whether form inputs have been completed correctly:


<script language="JavaScript" type="text/javascript">
<!--
function checkform ( form )
{
...
Forum: JavaScript programming 01-27-2013, 04:19 PM
Replies: 4
Views: 279
Posted By howard-moore
Thanks very much for this - worked a treat!

Thanks very much for this - worked a treat!
Forum: JavaScript programming 01-27-2013, 02:11 AM
Replies: 4
Views: 279
Posted By howard-moore
Thanks for the reply, but it still appears to not...

Thanks for the reply, but it still appears to not be working. Below is the full script as shown on the page (and apologies for old code-style - it is coming from a pretty old app!):

<FORM...
Forum: JavaScript programming 01-26-2013, 06:31 PM
Replies: 4
Views: 279
Posted By howard-moore
Javascript form warning if field contains &

Hi,

I am trying to code a bit of JavaScript where it returns a warning if a field contains an ampersand: '&'

So far I have this:

<script language="JavaScript" type="text/javascript">
<!--...
Forum: JavaScript programming 12-30-2012, 02:07 PM
Replies: 3
Views: 254
Posted By howard-moore
Hi, That's right, but I need to save both...

Hi,

That's right, but I need to save both fields, and the plan is that when the user selects the text, it also populates the code field. I'll have a play with what you suggest and see how it goes...
Forum: JavaScript programming 12-29-2012, 07:47 PM
Replies: 3
Views: 254
Posted By howard-moore
Fill two fields from one drop-list

Hi All,

I have a bit of a tricky PHP/MySQL/JavaScript issue that I hope someone can help me with. I have a dynamically created drop-list (select) as follows:

<?php
$sql = "SELECT * FROM...
Forum: PHP 12-29-2012, 07:40 PM
Replies: 9
Views: 357
Posted By howard-moore
Hi All, Just an update to let you know that...

Hi All,

Just an update to let you know that I have managed to solve this. The code is a little messy and complex because of the stylesheets that I use for it, but it works like this:

<?...
Forum: PHP 12-28-2012, 10:29 PM
Replies: 9
Views: 357
Posted By howard-moore
I've been doing a bit more reading, and basically...

I've been doing a bit more reading, and basically what I am looking to do is a sort of dynamic menu using PHP and MySQL, but utilising the above fields. The issue I have is that I want the results to...
Showing results 1 to 25 of 114

 
Forum Jump

All times are GMT +1. The time now is 04:26 AM.