Search found 14 matches

by whiterabbit
Mon May 26, 2008 6:17 pm
Forum: Regex
Topic: RegEx Match Help
Replies: 3
Views: 848

Re: RegEx Match Help

I think if you switch the order and add a [L], that should do it. Otherwise, I can help you with a new reg-ex.

Code: Select all

 
RewriteEngine on
RewriteRule ^([A-Za-z].*)/\?(.*) index.php?query=$1&get=$2 [nc, L]
RewriteRule ^([A-Za-z].*)$/ index.php?query=$1 [nc]
 
by whiterabbit
Mon May 26, 2008 6:01 pm
Forum: PHP - Code
Topic: [SOLVED] image is seen in firefox, safari but not in ie6
Replies: 3
Views: 211

Re: image is seen in firefox, safari but not in ie6

echo '<FORM name="auxemail" id=\'idauxemail\' action=\''.$pagina.'?' . $state.'&language=sp'.'\' method=\'post\'>';
Are you closing the \" in the action=\" anywhere??
by whiterabbit
Mon May 26, 2008 5:58 pm
Forum: PHP - Code
Topic: CuRL crashes on consecutive requests
Replies: 1
Views: 485

Re: CuRL crashes on consecutive requests

If you are executing multiple URL's via CURL, you may want to look into curl_multi_init() . Of course you would have to use the corresponding functions for that as well. curl_multi_exec curl_multi_getcontent curl_multi_close curl_multi_add_handle Maybe that will help with your problem. If that doesn...
by whiterabbit
Mon May 26, 2008 5:50 pm
Forum: PHP - Code
Topic: Newbie question - how can I do this simple task?
Replies: 2
Views: 183

Re: Newbie question - how can I do this simple task?

http://www.mywebsite.com/journal/0001/introduction For the above URL, I am going to assume that 0001 is the ID of the article in the database and introduction is the title of the journal. In order to do this, you have to use a mod rewrite rule. Create a .htaccess file in your web root and add the fo...
by whiterabbit
Mon May 26, 2008 5:41 pm
Forum: PHP - Code
Topic: password setting and verification with PHP?
Replies: 3
Views: 284

Re: password setting and verification with PHP?

In order to store a password in your database, you should use the md5() function. This is both a PHP and MySQL function. So, when a user initially signs up for an account, you would want to store the md5() value of the password in the database associated with that user's userid. Then, when the user ...
by whiterabbit
Fri May 23, 2008 11:36 pm
Forum: PHP - Code
Topic: Output problem
Replies: 3
Views: 359

Re: Output problem

When you call the nggShowImageFlow($galleryID,$irWidth,$irHeight, $link) function in your code, do you do it like this:   nggShowImageFlow($galleryID,$irWidth,$irHeight, $link);   or like $string = nggShowImageFlow($galleryID,$irWidth,$irHeight, $link); echo $string; or like echo nggShowImageFlow($g...
by whiterabbit
Fri May 23, 2008 11:32 pm
Forum: Databases
Topic: Data pulled from SQL showing up with \ before quotations.
Replies: 1
Views: 239

Re: Data pulled from SQL showing up with \ before quotations.

That is probably because gpc magic quotes is on. This is a setting that automatically escapes (adds in the \ before certain characters) strings before they are entered into your database. Before you enter the data into the database, you probably want to do a stripslashes() on the data, or you could ...
by whiterabbit
Fri May 23, 2008 8:39 pm
Forum: Databases
Topic: Using "Show if..." condition (php) with images
Replies: 1
Views: 253

Re: Using "Show if..." condition (php) with images

Try:

Code: Select all

 
if ( $row_rsDetailRS1['event_sponsor_img2'] == "") 
{
   echo "";
}
 
by whiterabbit
Thu May 22, 2008 8:28 pm
Forum: PHP - Code
Topic: How to return any previous site in PHP
Replies: 8
Views: 686

Re: How to return any previous site in PHP

califdon wrote:Won't window.history.back() work?
This would definitely be the easiest if...

1. We are going to assume that javascript is enabled for the clients
2. There is only 1 page in the cart.

Right??
by whiterabbit
Thu May 22, 2008 8:11 pm
Forum: Miscellaneous
Topic: Moving data from MySQL db to local PC (Access db)
Replies: 1
Views: 1024

Re: Moving data from MySQL db to local PC (Access db)

Have you looked into PHP scripting on windows? If you install the the command line version of PHP on windows, you can write a PHP script that your clients can run from their computer from the command prompt. You could then use curl to connect the script on their computer and your web server. Look at...
by whiterabbit
Thu May 22, 2008 7:49 pm
Forum: PHP - Code
Topic: PHP help, Report Broken Link
Replies: 2
Views: 102

Re: PHP help, Report Broken Link

If you are going to have this link available for the public to click, you might want to use a captcha as well for users to validate, otherwise plan on getting spammed. Just remember, you are going to get an email for every time someone (or some bot) 'clicks' on this link.
by whiterabbit
Thu May 22, 2008 7:41 pm
Forum: PHP - Code
Topic: How to return any previous site in PHP
Replies: 8
Views: 686

Re: How to return in previous site in PHP

use header(location:products.php) function, result I don't know thoroughly...better to test before you go ahead...and oh, use sessions to store all your variables, to make sure they are not destroyed... Thanks for your reply, but my goal is to return to any previuos page. header(location:any_previo...
by whiterabbit
Thu May 22, 2008 7:19 pm
Forum: PHP - Code
Topic: Upload not working...
Replies: 7
Views: 142

Re: Upload not working...

Well all I get is an output of this: ???m?-Sorry, there was a problem uploading your file. One thing that I find very useful when writing and debugging code, is to have error messages that are more verbose than what you would have as a finished product and display to your end users. It is very hard...