-
Posts
252 -
Joined
-
Last visited
Posts posted by ryanfilard
-
-
It did not this is my whole ht file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
RewriteCond %{HTTP_HOST} ^ryanweekly.ryanweekly.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.ryanweekly.ryanweekly.com$
RewriteEngine On
RewriteRule ^\/(.*)\/(.*)\/.*$ user/index.php?p=$1
-
I put
RewriteRule ^\/(.*)\/(.*)\/.*$ user/index.php?p=$1&interface=$2
in my ht access file.
www.ryanweekly.com/cja
to
www.ryanweekly.com/user/?p=cja
-
How do I make a php script that will use mydomain.com/username instead of mydomain.com/?p=username
-
Parse error: syntax error, unexpected $end in /home/rweekly/public_html/sn.php on line 62
-
That is all the code. In adobe dreamweaver it shows the "?>" as the error which is line 63
-
I get a syntax error on line 63 I do not know what is wrong.
<?php error_reporting(E_ALL ^ E_NOTICE); $email = $_GET['ipn_email']; $header = ""; $emailtext = ""; // Read the post from PayPal and add 'cmd' $req = 'cmd=_notify-validate'; if(function_exists('get_magic_quotes_gpc')) { $get_magic_quotes_exits = true; } foreach ($_POST as $key => $value) // Handle escape characters, which depends on setting of magic quotes { if($get_magic_quotes_exists == true && get_magic_quotes_gpc() == 1){ $value = urlencode(stripslashes($value)); } else { $value = urlencode($value); } $req .= "&$key=$value"; } // Post back to PayPal to validate $header .= "POST /cgi-bin/webscr HTTP/1.0\r\n"; $header .= "Content-Type: application/x-www-form-urlencoded\r\n"; $header .= "Content-Length: " . strlen($req) . "\r\n\r\n"; $fp = fsockopen ('ssl://www.paypal.com', 443, $errno, $errstr, 30); // Process validation from PayPal // TODO: This sample does not test the HTTP response code. All // HTTP response codes must be handles or you should use an HTTP // library, such as cUrl if (!$fp) { // HTTP ERROR } else { // NO HTTP ERROR fputs ($fp, $header . $req); while (!feof($fp)) { $res = fgets ($fp, 1024); if (strcmp ($res, "VERIFIED") == 0) { // TODO: // Check the payment_status is Completed // Check that txn_id has not been previously processed // Check that receiver_email is your Primary PayPal email // Check that payment_amount/payment_currency are correct // Process payment // If 'VERIFIED', send an email of IPN variables and values to the // specified email address foreach ($_POST as $key => $value){ $emailtext .= $key . " = " .$value ."\n\n"; } mail($email, "Live-VERIFIED IPN", $emailtext . "\n\n" . $req); } else if (strcmp ($res, "INVALID") == 0) { // If 'INVALID', send an email. TODO: Log for manual investigation. foreach ($_POST as $key => $value){ $emailtext .= $key . " = " .$value ."\n\n"; } mail($email, "Live-INVALID IPN", $emailtext . "\n\n" . $req); } } fclose ($fp); ?>
-
I have this code:
<?PHP if (empty($row_Recordset1['lurl'])) echo ($row_Recordset1['lurl']); ?>
I need to include text inside of the ()
Would I do this?
<?PHP if (empty($row_Recordset1['lurl'])) echo ('<img src="'$row_Recordset1['lurl']'/>'); ?>
-
Thanks
-
-
It seems alright to me
-
I use this:
<?php $form_message = true; if ($form_message) echo ' <h1> Need to contact me? </h1> <p> Please fill out your details and press the submit button to email me. <span class="bold">All fields are required</span>, thank you.</p><br /> '; ?>
-
ORDER BY ID DESC
"id" is uppercase
it should be like this
ORDER BY id DESC
I had this issue once
-
Lighter gradient in the logo
-
Yes you can.
-
Thankyou
-
How would I make a script to Create Temporary TXT file on load
-
Everything is great but the logo could be easier to read.
-
Try This:
<?PHP $t = echo '<a href=\"../'.($r['accounttyperaw'] == '') ? 'c' : 'u'.'/'.($r['accounttyperaw'] == '') ? $r['companytag'] : $r['feedusername'].'\">'.ucwords($r['feedfirstname'].' '.$r['feedlastname']).' has updated</a>'; ?>
-
Thank you
-
What is the maximum amount of records in mysql if there is one?
-
How is the style of my website? Do you like it?
I had someone from this forum touch it up a little.
-
as far as i can tell, you allow very odd passwords usernames and emailaddresses. Also the script to verify the emailadress is not working correctly since anything is valid.
Also i have a strong feeling (which i am happy to email you) that some other form is allowing pretty bad things.
I fixed everything but the Verify Script I don't think there are any more issues beside SQL Injection
-
How do I make a verify script for my website. After a user registers they have to verify via email link
-
mysql_query("SELECT * FROM yourtable ORDER BY id DESC")
/username instead of ?p=username
in Apache HTTP Server
Posted
It still won't do it. I dont know what I am doing wrong.