Search found 109 matches
- Fri Jun 24, 2016 4:19 am
- Forum: PHP - Security
- Topic: HELP: What does this code injected into my hacked site do?
- Replies: 1
- Views: 24984
Re: HELP: What does this code injected into my hacked site d
Here is code listing from another file: <?php $GLOBALS['m4f5b78'] = "\x34\x71\x37\x4d\x7a\x3e\x7b\x29\x23\x40\x2b\x59\x57\x6e\x28\x73\x60\x76\x3c\x61\x49\x54\x3d\x58\x62\x74\x43\x9\x5d\x26\x35\x4b\x67\x51\x6a\x3a\x48\x25\x2a\x7d\x36\x33\x2c\x68\x78\x5a\x4e\x50\x4c\x20\x27\x65\x70\x47\x44\x5b\x6...
- Fri Jun 24, 2016 3:48 am
- Forum: PHP - Security
- Topic: HELP: What does this code injected into my hacked site do?
- Replies: 1
- Views: 24984
HELP: What does this code injected into my hacked site do?
Hello, I manage a wordpress website on a shared hosting space which also holds other PHP applications. This website keeps getting hacked - codes are injected into files and strange files are uploaded. The website has been blacklisted once by Google for serving malware and spamming. I have gotten hol...
- Thu Sep 27, 2012 9:41 am
- Forum: PHP - Code
- Topic: Insert records from a query
- Replies: 9
- Views: 2589
Re: Insert records from a query
I have tried different ways to populate table "p_keys" from table "programs" but to no avail. The following code is a last resort. It does not generate any errors or records fpr that matter My code is: <?php $count = 0; mysql_query('TRUNCATE TABLE p_keys;'); $result = mysql_quer...
- Thu Sep 27, 2012 9:30 am
- Forum: PHP - Code
- Topic: MySQL_Query Issue
- Replies: 4
- Views: 1169
Re: MySQL_Query Issue
if you have a successful query, the following line
will not work. You cannot just echo the result of a query!
Code: Select all
echo $userlist;
- Thu Sep 27, 2012 9:25 am
- Forum: PHP - Code
- Topic: Bug in php post Form
- Replies: 2
- Views: 861
Re: Bug in php post Form
In case you do not have access to your php.ini and/or web server, just clean the variable
Code: Select all
if (get_magic_quotes_gpc()) {
$value = stripslashes($value);
}
- Thu May 31, 2012 1:13 pm
- Forum: PHP - Code
- Topic: PHP Serveral forms problem :Please help emergency
- Replies: 9
- Views: 1524
Re: PHP Serveral forms problem :Please help emergency
Your form tags are overlapping. make sure the tags are separate and standing outside each other e.g <form></form>.... <form></form>....<form></form>
- Fri Mar 02, 2012 2:20 am
- Forum: PHP - Code
- Topic: Session variable
- Replies: 3
- Views: 1133
Re: Session variable
The file may need to be restructured. How come you include one file1 in file2stribor wrote: i first run file1
Then on press of the button i run file2.php
and still navigate to of the file2 afterwards?
- Thu Mar 01, 2012 2:08 am
- Forum: PHP - Code
- Topic: Session variable
- Replies: 3
- Views: 1133
Re: Session variable
Your code should look like this instead
file1.php
File2.php
file1.php
Code: Select all
<?php
session_start()
If (something){
$_SESSION['MYCONST'] = 5;
}
Else {
$_SESSION['MYCONST'] = 6;
}
Code: Select all
Session_start();
echo $_SESSION['MYCONST'];
- Thu Mar 01, 2012 2:01 am
- Forum: PHP - Code
- Topic: Website preview script
- Replies: 4
- Views: 1729
Re: Website preview script
Hello Temidayo, ...But I want to load example.com from my own server, where the php script will run ( localhost in fact ); no matter to where example.com is resolving to. For this, I just have the doain name (example.com ) and the IP on which it is hosted on my server. Maybe html frame/iframe is wh...
- Wed Feb 29, 2012 6:02 pm
- Forum: PHP - Code
- Topic: Problems with email activation
- Replies: 36
- Views: 9821
Re: Problems with email activation
Blaade wrote:Thanks a lot! If i ever come to Nigeria i'll buy you a drink![]()
I just want you to know I edited my last post before this, to include another function
which is needed for remove_all_slashes() to work
Code: Select all
function my_strip_slashes(&$var){
$var = stripslashes($var);
}
- Wed Feb 29, 2012 5:43 pm
- Forum: PHP - Code
- Topic: Problems with email activation
- Replies: 36
- Views: 9821
Re: Problems with email activation
Man...i don't know what to say...Thanks a lot and god bless you! If it wasn't for you i would be stuck for life ii think. After 3 days of :banghead: you made me happy:D Thank you so much. Think everything it's in order now. You are welcome. And one last thing if i got your attention, maybe you know...
- Wed Feb 29, 2012 5:03 pm
- Forum: PHP - Code
- Topic: Problems with email activation
- Replies: 36
- Views: 9821
Re: Problems with email activation
Now Try this: <?php session_start(); $mysql_server = 'localhost'; $mysql_username = 'username'; $mysql_password = 'password'; $mysql_database = 'database'; $mysql_table = 'USERS'; $success_page = './thank_you_page.html'; $error_message = ""; if ($_SERVER['REQUEST_METHOD'] == 'POST' &&a...
- Wed Feb 29, 2012 4:47 pm
- Forum: PHP - Code
- Topic: how do you delete a category from a forum?
- Replies: 14
- Views: 4507
Re: how do you delete a category from a forum?
It's a pleasure to be of help.
- Wed Feb 29, 2012 4:38 pm
- Forum: PHP - Code
- Topic: Problems with email activation
- Replies: 36
- Views: 9821
Re: Problems with email activation
Try this: <?php session_start(); $mysql_server = 'localhost'; $mysql_username = 'username'; $mysql_password = 'password'; $mysql_database = 'database'; $mysql_table = 'USERS'; $success_page = './thank_you_page.html'; $error_message = ""; if ($_SERVER['REQUEST_METHOD'] == 'POST' && ...
- Wed Feb 29, 2012 3:54 pm
- Forum: PHP - Code
- Topic: Problems with email activation
- Replies: 36
- Views: 9821
Re: Problems with email activation
We are getting closer. Here is another modification: <?php session_start(); $mysql_server = 'localhost'; $mysql_username = 'username'; $mysql_password = 'password'; $mysql_database = 'database'; $mysql_table = 'USERS'; $success_page = './thank_you_page.html'; $error_message = ""; if ($_SER...