Search Results

Showing results 1 to 40 of 82
Search took 0.02 seconds.
Search: Posts Made By: scru ; Forum: PHP and child forums
Forum: PHP Jan 20th, 2009
Replies: 4
Views: 1,056
Posted By scru
What you want is a lamp, not wamp

Here you go: http://tinyurl.com/9qdkz2
Forum: PHP Nov 23rd, 2008
Replies: 3
Views: 801
Posted By scru
Use code tags.

Shouldn't <a href="action.php?id='.$num.'">Text to be displayed</a> be <a href="action.php?id=<?php echo $num; ?>">Text to be displayed</a> ?

I ask because you appear to be...
Forum: PHP Nov 22nd, 2008
Replies: 10
Views: 1,620
Posted By scru
Of course they can, and it's no magic.

If you're spanking new to php/mysql, you might want to consider a few warm-ups first before delving into this. Then, you can tackle them individually as...
Forum: PHP Oct 29th, 2008
Replies: 7
Views: 2,372
Posted By scru
Forum: PHP Oct 29th, 2008
Replies: 7
Views: 2,372
Posted By scru
$str = "%20";
$str2 = urldecode($str);
echo $str2;

-


Note, some browsers may change - to %20 automatically as long as it's in a link, and there's nothing you can do about it, AFAIK.
Forum: PHP Oct 29th, 2008
Replies: 7
Views: 2,372
Posted By scru
Forum: PHP Oct 29th, 2008
Replies: 13
Views: 1,558
Posted By scru
Hmm, maybe the PEAR mail extensions weren't installed. Do a page with just this code:
<?php include "Mail.php"; ?>

If you still get that error, then you need to manually install the mail...
Forum: PHP Oct 27th, 2008
Replies: 13
Views: 1,558
Posted By scru
What is the error message?
Forum: PHP Oct 27th, 2008
Replies: 13
Views: 1,558
Posted By scru
From PHP >= 4, it may have already been installed.

Just try including Mail.php.
Forum: PHP Oct 27th, 2008
Replies: 13
Views: 1,558
Posted By scru
Does your server require authentication? (logging in before you can send)

If it does, you have to use the PEAR set of email methods, because mail() does not support SMTP authentication.
Forum: PHP Oct 26th, 2008
Replies: 2
Views: 684
Posted By scru
Suggestion: check the previous line and make sure its statement was terminated correctly. The line if (isset($_GET['p'] && $_GET['p'] == "login"){} parses fine on my server.
Forum: PHP Oct 26th, 2008
Replies: 7
Views: 2,068
Posted By scru
1: Posting your phpinfo() on the web is a bad idea.

2. Does PHP give you an error or warning on move_uploaded_file()? What does it say?
Forum: PHP Oct 24th, 2008
Replies: 7
Views: 2,068
Posted By scru
What error are you receiving? Is it apache or IIS (don't know if this matters, but / works on my apache in windows).

Does the snaps directory already exist? Because you might get an error...
Forum: PHP Oct 24th, 2008
Replies: 5
Views: 1,276
Posted By scru
While you can wrap at a certain amount of characters in plain text emails, I'm not certain about the ability to wrap at exactly 400 pixels.

What you can do is send and html email instead, and put...
Forum: PHP Oct 20th, 2008
Replies: 2
Views: 427
Posted By scru
Can you be more specific? What is the structure of the file? Have you already created the database table structure?
Forum: PHP Oct 19th, 2008
Replies: 3
Views: 684
Posted By scru
You have the loop in the wrong place, I'm afraid.


{section name=1 loop=$obj->mProducts[k].attributes}


You want to start (and end) looping between the <select></select> tags so that only the...
Forum: PHP Oct 19th, 2008
Replies: 1
Views: 365
Posted By scru
My advice to you is to use a free CMS software, and add a theme to it.

Wordpress is a good example of one that might work. The learning curve isn't so hard, and it can do all of what you want...
Forum: PHP Oct 19th, 2008
Replies: 3
Views: 1,230
Posted By scru
Forgot to add, you could have written it like:

<?php session_start(); ?>
<!-- InstanceBegin template="/Templates/index.dwt.php" codeOutsideHTMLIsLocked="false" -->
Forum: PHP Oct 18th, 2008
Replies: 1
Views: 534
Posted By scru
Open them with any text editor of your choice. I use geany for my php needs. Dreamweaver should work fine too, just right click and choose open with (assuming you use Windows).
Forum: PHP Oct 18th, 2008
Replies: 6
Views: 1,005
Posted By scru
I don't know flash well, but I suspect you'd have to use some flash ActionScript to do the counting for you.
Forum: PHP Oct 18th, 2008
Replies: 3
Views: 1,230
Posted By scru
No. Session start must always come before headers are sent, and that means before that code there.
Forum: PHP Oct 15th, 2008
Replies: 4
Views: 720
Posted By scru
Bitwise operations are binary. I couldn't really explain how this particular one works that easily because it's a bit hard to grasp. Just know that:

$var & 1 is equivalent to $var % 2

ie, the...
Forum: PHP Oct 14th, 2008
Replies: 4
Views: 720
Posted By scru
The functions odd and even are predicates, ie, callbacks. odd returns true if the number passed in is odd, and even returns true if the number passed in is even. (Note: the & is a bitwise AND...
Forum: PHP Oct 14th, 2008
Replies: 1
Views: 365
Posted By scru
Forum: PHP Oct 11th, 2008
Replies: 1
Views: 1,014
Posted By scru
I havent tested this, but you can create a hidden form field, and set its value to the filename upon selecting with javascript. When the form submits, try deleting the file input beforehand from the...
Forum: PHP Oct 11th, 2008
Replies: 2
Views: 756
Posted By scru
Three simple steps:

1. Have enough brainpower to know that you ask VB questions in the VB forum.

2. Don't ask for help doing such nefarious things on upstanding forums like Daniweb. Instead,...
Forum: PHP Oct 10th, 2008
Replies: 1
Views: 693
Posted By scru
Does mail.prs.prod require you to login before you can send email?

If it does, you'll need to use the PEAR email functions to send the email.
Forum: PHP Oct 9th, 2008
Replies: 6
Views: 609
Posted By scru
Try http://recaptcha.net for a free captcha library. Using this library aides in the digitizing of books. Also, the image generation is handled by their servers, not yours.
Forum: PHP Oct 9th, 2008
Replies: 26
Solved: php email help?
Views: 1,541
Posted By scru
Ah, sorry, didn't read the script at all, I admit. It now comes to my attention that the code I posted above is totally irrelevant.
Forum: PHP Oct 9th, 2008
Replies: 26
Solved: php email help?
Views: 1,541
Posted By scru
The variable $attn would only work if he has register_globals on, which is turned off by default in PHP => 4.3.0 since it is a security vulnerability.

krauz2, you can try something like:
...
Forum: PHP Oct 8th, 2008
Replies: 5
Views: 570
Posted By scru
Gonzo, it's not making much sense at all. Here's why:

You must be aware that $i is an integer, defined an declared by your for loop. And I dont think you mean to set your href to those integers.
...
Forum: PHP Oct 7th, 2008
Replies: 3
Views: 531
Posted By scru
Try geany (avaliable for windows and linux). Don't know if it has as much features as PHP edit, but it has syntax highlighting, tabs, and auto-tabbing which is good enough for me.
Forum: PHP Oct 7th, 2008
Replies: 3
Views: 531
Posted By scru
You need to set the charset in your editor to UTF-8, not East European. Remember that unicode supports all characters, so those special slovanian letters should still work.
Forum: PHP Oct 5th, 2008
Replies: 3
Views: 528
Posted By scru
Can I just ask? Do you have PHP validation is place as well in case the user disables javascript?
Forum: PHP Oct 5th, 2008
Replies: 6
Views: 661
Posted By scru
Yeah, you will need something like javascript for this. Ajax techniques are probably best suited for this.
Forum: PHP Aug 24th, 2008
Replies: 8
Views: 694
Posted By scru
What error are you receiving?
Forum: PHP Aug 17th, 2008
Replies: 6
Views: 703
Posted By scru
I'm not sure what you mean by suppress. Can you do a check in PHP for whether the text box is empty before adding the data to the email?
Forum: PHP Aug 17th, 2008
Replies: 3
Views: 520
Posted By scru
php function time() returns the server time in the timestamp format you need (or at least, easiest and probably best to work with in this case)
Forum: PHP Aug 17th, 2008
Replies: 6
Views: 703
Posted By scru
This is a job for javascript.

Something in the textbox onchange event:

(document.getElementsByName("sailing1")[0].value == "")? document.getElementsByName("sailingEx1")[0].style.visibility =...
Forum: PHP Aug 17th, 2008
Replies: 19
Views: 1,936
Posted By scru
Also, session variables can be exploited if you are in a shared hosted environment.

Someone with ssh access to the shared server can get a valid session id from where PHP stores them and pretend...
Showing results 1 to 40 of 82

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC