Go Back   CodingForums.com > Search Forums

Before you post, read our: Rules & Posting Guidelines

Showing results 1 to 25 of 265
Search took 0.57 seconds.
Search: Posts Made By: anarchy3200
Forum: PHP 07-09-2008, 04:29 PM
Replies: 9
Views: 1,204
Posted By anarchy3200
I've not got a test machine at hand to check...

I've not got a test machine at hand to check whether the extension could be circumvented but as for the location you can simply use ../ to change up a directory.

Using this as a hole would be more...
Forum: PHP 07-09-2008, 03:25 PM
Replies: 7
Views: 616
Posted By anarchy3200
How are you calling your function, you need to...

How are you calling your function, you need to assign the returned data to a variable in your main program so a simplified example:


function test($var){
return $var;
}
$ret = test("hi");...
Forum: Computer/PC discussions 07-09-2008, 02:40 PM
Replies: 1
Views: 828
Posted By anarchy3200
What i think he is saying is that you must run...

What i think he is saying is that you must run the cron as root rather than your web user so as i say in my post in your other thread, you should just need to copy the cron line from your web user to...
Forum: Computer/PC discussions 07-09-2008, 02:26 PM
Replies: 2
Views: 1,775
Posted By anarchy3200
You should be able to use the command: crontab...

You should be able to use the command:
crontab -e
This will open the crontabs in your default editor, if you wish to change the editor then:
export EDITOR=vi
should do it.

If you are logged in...
Forum: PHP 07-09-2008, 02:17 PM
Replies: 8
Views: 696
Posted By anarchy3200
Just a quick comment as I pass. I'd actually...

Just a quick comment as I pass.
I'd actually suggest not using SELECT * in the SQL statement. After a quick google http://www.parseerror.com/sql/select*isevil.html briefly summarises some of the...
Forum: PHP 01-04-2008, 07:52 PM
Replies: 7
Views: 744
Posted By anarchy3200
If you start with arnyinc's suggestion of...

If you start with arnyinc's suggestion of removing the db part from the initial connect then in your mysql_select_db you need to change the full stop to a comma i.e.:



$con =...
Forum: PHP 01-04-2008, 03:25 PM
Replies: 3
Views: 617
Posted By anarchy3200
Very slow today! Just repeat of the above...

Very slow today! Just repeat of the above...
Forum: PHP 01-02-2008, 04:05 PM
Replies: 3
Views: 715
Posted By anarchy3200
Try moving the code for your function outside of...

Try moving the code for your function outside of the while loop.

i.e.

////reformat date
function reformat_date($date, $format){
$output = date($format, strtotime($date));
return $output; ...
Forum: PHP 12-27-2007, 12:20 PM
Replies: 8
Views: 728
Posted By anarchy3200
In that code i dont see where you include...

In that code i dont see where you include top.php?

The ob_start needs to be before you start outputting things, i.e. at least before the echo in top.php.

Its best if you place it at the very...
Forum: PHP 12-24-2007, 10:32 PM
Replies: 8
Views: 762
Posted By anarchy3200
Well i don't agree with your reasoning but next...

Well i don't agree with your reasoning but next method:

Just make sure all your form fields have different names then for your processing enter the block with the usual if(isset$_POST['xyz'])){...
Forum: PHP 12-24-2007, 10:26 PM
Replies: 8
Views: 762
Posted By anarchy3200
POST being a more secure method may be a slight...

POST being a more secure method may be a slight stretch of the imagination but i'll go with it.

It is possible to set the method as post but then set the action to include the get variable
i.e....
Forum: MySQL 12-10-2007, 01:51 PM
Replies: 4
Views: 1,756
Posted By anarchy3200
Exactly what i was looking for. Thanks alot for...

Exactly what i was looking for.
Thanks alot for that!
Forum: MySQL 12-10-2007, 12:06 AM
Replies: 4
Views: 1,756
Posted By anarchy3200
Almost, i was trying to get it to work with just...

Almost, i was trying to get it to work with just the ID but will be reading more values.
If all else fails i can do this with two queries but was looking for a single compact answer!

So many...
Forum: MySQL 12-09-2007, 10:20 PM
Replies: 4
Views: 1,756
Posted By anarchy3200
SQL Subselect

Hi, I am trying to read a database tables fields whose parent ID is set as the page ID of another record, lets demonstrate with some code:
SELECT pages_ID
FROM cms_pages
WHERE pages_ID = ( ...
Forum: PHP 09-03-2007, 11:11 PM
Replies: 6
Views: 3,549
Posted By anarchy3200
Ok, basically at no point if the confirmation...

Ok, basically at no point if the confirmation fails do you tell it to stop, the way i do it is without the external function:

<input name="delete" type="Submit" value="Delete " onClick="if...
Forum: PHP 08-12-2007, 12:50 AM
Replies: 3
Views: 628
Posted By anarchy3200
Yeh sorry about that, i realised it was wrong, i...

Yeh sorry about that, i realised it was wrong, i did try the new version and believe it should work!
Forum: PHP 08-12-2007, 12:31 AM
Replies: 3
Views: 628
Posted By anarchy3200
You could just use something like array_keys to...

You could just use something like array_keys to find the key name i.e.


$vals = array_keys($array);
print $vals[0];


That would give you the key name of the first item and to get the value...
Forum: PHP 08-10-2007, 09:16 PM
Replies: 13
Views: 946
Posted By anarchy3200
Try changing your query so that you dont escape...

Try changing your query so that you dont escape the single quotes as follows:

$mysql_query = "INSERT INTO MainT VALUES =...
Forum: PHP 08-09-2007, 11:07 PM
Replies: 7
Views: 12,394
Posted By anarchy3200
An alternative that i can see to using the...

An alternative that i can see to using the database is to change the hash for a reversable encryption, you could send the encrypted version in the URL then the page decrypts it and embeds the...
Forum: PHP 08-09-2007, 10:59 PM
Replies: 3
Views: 604
Posted By anarchy3200
A MySQL database would be much faster than a text...

A MySQL database would be much faster than a text file although for a simple hit counter is may more hassle to create so unless you are likely to experience a large amount of traffic then a text file...
Forum: Post a PHP snippet 08-09-2007, 12:58 AM
Replies: 8
Views: 5,510
Posted By anarchy3200
Just been playing with this script recently and...

Just been playing with this script recently and encountered the same problems as previously commented on that the cache does not update after the first run.
This is caused by a cache of the file...
Forum: PHP 08-07-2007, 11:37 AM
Replies: 3
Views: 570
Posted By anarchy3200
Try having a look at: array-intersect...

Try having a look at:
array-intersect (http://www.php.net/manual/en/function.array-intersect.php)
Forum: PHP 05-22-2007, 10:50 PM
Replies: 11
Views: 677
Posted By anarchy3200
try again with: while($row =...

try again with:

while($row = mysql_fetch_array($result))
{
$link = 'addpoints.php?Firstname=' . $row['FirstName'] . '&Lastname=' . $row['LastName'] . 'Points=' . $row['Points'];
echo...
Forum: PHP 05-06-2007, 05:05 PM
Replies: 2
Views: 1,093
Posted By anarchy3200
How about using ucwords() Linked to from the...

How about using ucwords()
Linked to from the ucfirst page on php.net :P
Mike
Forum: PHP 02-13-2007, 01:03 AM
Replies: 5
Views: 803
Posted By anarchy3200
Well whats it meant to output, if all of your...

Well whats it meant to output, if all of your rows are being output irrespective of the WHILE then the problems lie with the query, a little more explaination please...
(Koyama got there first!)...
Showing results 1 to 25 of 265

 
Forum Jump

All times are GMT +1. The time now is 06:45 PM.