Search Results

Showing results 1 to 40 of 95
Search took 0.01 seconds.
Search: Posts Made By: petr.pavel ; Forum: PHP and child forums
Forum: PHP Feb 16th, 2009
Replies: 8
Views: 854
Posted By petr.pavel
Hi there,
since you don't have a control over the server there's nothing you can do to in order to make the default mail() function work.

To be really really sure create a file with just one...
Forum: PHP Sep 18th, 2008
Replies: 1
Views: 469
Posted By petr.pavel
Hi Welbzobeng,
have a look at the query. After SELECT and before FROM it lists what attributes it will fetch for you. files.* means "all attributes from table files so your artist should be covered....
Forum: PHP Sep 18th, 2008
Replies: 3
Views: 846
Posted By petr.pavel
Hi Venom Rush,
please include a link to the project so that we don't have to search for it.
I would be surprised if they didn't have a usage example on their website.
Forum: PHP Sep 18th, 2008
Replies: 2
Views: 693
Posted By petr.pavel
Hi Namratashukla, I don't see a problem in updating a large number of records in database tables. You ask how - the answer is using UPDATE or INSERT statement.

I'm not sure if you're new to SQL...
Forum: PHP Sep 18th, 2008
Replies: 1
Views: 513
Posted By petr.pavel
Hi Asyieen,
I'm afraid the reason why nobody has answered so far is that it's not very clear what you actually want.

You posted a script that inserts records into projectcontact and user_upload....
Forum: PHP Sep 18th, 2008
Replies: 8
Views: 2,170
Posted By petr.pavel
Helo Bear,
I guess the immediate problem is that you reference $checkbox instead of $_POST['checkbox']. You use $_POST['delete'] so you probably work in an environment with register_globals off.
...
Forum: PHP Sep 4th, 2008
Replies: 4
Views: 3,754
Posted By petr.pavel
Uhm, I find it difficult to believe that a CSS style could add an apostrophe.
Can you give me an URL with the HTML table you're trying to import? Or can you attach it here?
Petr
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 459
Posted By petr.pavel
Hi there,
you're using function getParam() that isn't PHP built-in function.
So I guess you forgot to include a file that defines it.
Forum: PHP Sep 4th, 2008
Replies: 2
Views: 578
Posted By petr.pavel
I'm afraid you're not giving the full story here.
Is this script is embedded in a HTML document that has the Home title?
And you need to include (using require()) a part of this HTML document,...
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 611
Posted By petr.pavel
No. PHP runs on a server while you want to drag and drop on a client (your browser). You will have to use AJAX, flash or Java applets for this kind of magic.
For that I suggest asking in different...
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 353
Posted By petr.pavel
Hi there,
you're treating $value as if it were an object while it is in fact a string "".
You cannot write $value->id unless you first assign an instance of an object to $value.
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 1,111
Posted By petr.pavel
Hi Khanbaba,
the problem is not related to your stored procedure.
mysql_connect doesn't return an object but a resource pointer. Therefore you cannot use

$resource = mysql_connect(...);...
Forum: PHP Sep 4th, 2008
Replies: 1
Views: 580
Posted By petr.pavel
Hi Kwesiaryee,
I suggest you try a server like scriptlance.com or offer a bounty for this task. It's too much work to do for free.

My understanding is that people in this forum help with...
Forum: PHP Sep 4th, 2008
Replies: 4
Views: 3,754
Posted By petr.pavel
Hi there,
in HTML apply this

style="mso-number-format:'\@';"

to cells with your . values or define a CSS class with this style and apply the class.
Forum: PHP Jun 29th, 2008
Replies: 0
Views: 988
Posted By petr.pavel
Hi there,
I have read a few articles about WordPress plug-ins and themes but I can't figure out how to create a completely new page that uses theme.

Let's say that my blog is set up to display...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 2,785
Posted By petr.pavel
I'm sorry I assumed that you are running Windows on your development box and that would be why GD doesn't find the font in Windows font folder.

I'm quite sure that you don't have to configure GD...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 679
Posted By petr.pavel
Either you forgot to attach the source code or you got the tenses wrong. Please re-read your posts in a preview before posting. They contain a lot of typing errors that further confuse the matter.
...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 679
Posted By petr.pavel
Yes, that's because of the exit() statement. Just remove it and the script will continue.


Maybe you removed the md5() function completely, I don't know. Can you post the whole script as an...
Forum: PHP Jun 10th, 2008
Replies: 1
Views: 588
Posted By petr.pavel
Hi there,
I'm not sure I understand.

It sounds like you already have what you want. You said you want to display a file size in a browser after user selects the file to be uploaded. Why can't you...
Forum: PHP Jun 10th, 2008
Replies: 2
Views: 1,023
Posted By petr.pavel
Hi there,
the bug is in this if statement. Try using parentheses to make your intentions more clear:

if ( (!isset($filter)) && ($page == 1) )


Frankly I would just write this instead of the...
Forum: PHP Jun 10th, 2008
Replies: 1
Views: 563
Posted By petr.pavel
Good news, it works now :-)
Tested in MSIE and Firefox. I do see the banner - when I switch off my Adblock, of course ;-)

I think it was either Google problem or something with your connection....
Forum: PHP Jun 10th, 2008
Replies: 1
Views: 713
Posted By petr.pavel
Hi there,
sorry I can't help you but you won't solve this situation by having a discussion in a forum. What you really need is someone with CakePHP and ASP experience and you will have to pay...
Forum: PHP Jun 10th, 2008
Replies: 1
Views: 479
Posted By petr.pavel
Hi Tanha, why do you think that using classes and objects will help you achieve what you want?
It's just a different programming method as compared to linear, or spaghetti :-) code.
If you insist...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 2,785
Posted By petr.pavel
Hi there,
I suspect that it fails because it looks for the font in a wrong directory.
You can either specify the path in the call of imagettfbbox

imagettfbbox($font_size, 0,...
Forum: PHP Jun 10th, 2008
Replies: 5
Views: 679
Posted By petr.pavel
Hi there,
the main thing is that you start with applying md5() to the password so even when the password was empty you get something (this: d41d8cd98f00b204e9800998ecf8427e). The solution is to test...
Forum: PHP Apr 3rd, 2008
Replies: 3
Views: 1,049
Posted By petr.pavel
Hi I also used to set up my own configuration until I got fed up with it and switched to XAMPP. Give it a try:
http://www.apachefriends.org/en/xampp.html

However, if you can't or don't want to...
Forum: PHP Apr 3rd, 2008
Replies: 2
Views: 1,575
Posted By petr.pavel
Hi there, I have no experience with printing directly from PHP but here's what I found in PHP manual. I hope it helps.

$handle=printer_open("EPSON TM-T88III Receipt");
printer_set_option($handle,...
Forum: PHP Apr 3rd, 2008
Replies: 1
Ftp
Views: 481
Posted By petr.pavel
Hi Cente, I got a bit lost in your description but here're my five cents:

to redirect a browser to FTP use header("Location: ftp://example.com/directory/file"); . It's the same as with HTTP.
...
Forum: PHP Apr 3rd, 2008
Replies: 2
Views: 890
Posted By petr.pavel
I'm afraid it isn't possible. But if you tell us why would you ever want such a thing maybe someone will come up with a better solution.
Forum: PHP Apr 3rd, 2008
Replies: 1
Views: 1,796
Posted By petr.pavel
Hi Anish, I don't quite understand your description. What do you mean by "pass null values to integer"?

PHP NULL values won't be passed to MySQL as NULL you have to explicitly type NULL.
Example:...
Forum: PHP Apr 3rd, 2008
Replies: 1
Views: 518
Posted By petr.pavel
Hi Anitha,
I'm sorry but "0245875224485" isn't a unicode format for anything but "0245875224485".
"Anitha" in unicode would again be "Anitha". I guess that when you try to convert Unicode to some...
Forum: PHP Apr 3rd, 2008
Replies: 1
Views: 1,860
Posted By petr.pavel
Hi, please tell us what's wrong with the code, or what do you want from us.
Forum: PHP Apr 2nd, 2008
Replies: 1
Views: 840
Posted By petr.pavel
Hi there, I don't see that you'd be using $gametype or $gamesize. Could you please add some code that proves that they are empty indeed?

Also did you try displaying $_FILES['game']? Add...
Forum: PHP Apr 2nd, 2008
Replies: 2
Views: 1,311
Posted By petr.pavel
Hi there,
locate httpd.conf and change
Listen 80
to some other port number, for example
Listen 81

After starting up your Apache you'll be able to reach it via http://localhost:81
Forum: PHP Apr 2nd, 2008
Replies: 2
Views: 2,690
Posted By petr.pavel
Hi there, could you please let us know what isn't working? I.e. what is the behaviour you expect and what is it doing instead.

BTW: Are you sure you need all that JavaScript hassle with onClick on...
Forum: PHP Apr 1st, 2008
Replies: 4
Views: 927
Posted By petr.pavel
Hi, first let me suggest that you should think of some less complicated way of displaying the data. I guess you could achieve the same result with just about twenty lines of code.

But to answer...
Forum: PHP Apr 1st, 2008
Replies: 6
Views: 3,172
Posted By petr.pavel
Hi there,
I run PHP on a Windows box but with Apache (very easy to set up with XAMPP http://www.apachefriends.org/en/xampp.html).
I didn't hit this problem even though I worked with osCommerce.
...
Forum: PHP Apr 1st, 2008
Replies: 2
Views: 6,434
Posted By petr.pavel
Hi Peter,
you could use your webhosting's SMTP server but PHP doesn't support SMTP authentication out of the box. You have two options:
a) Either you will use your Internet provider's SMTP server...
Forum: PHP Mar 26th, 2008
Replies: 12
Views: 1,727
Posted By petr.pavel
check for viruses:

your hosting must be allowed to execute files (which I seriously doubt)
you have to know where the antivirus program is and what parameters it expects
then use exec() to...
Forum: PHP Mar 26th, 2008
Replies: 12
Views: 1,727
Posted By petr.pavel
If you are going to do only what you do now: move the file from temporary location to permanent location then yes, set only these three ini attributes.

If you are going to process the ROM files...
Showing results 1 to 40 of 95

 


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

©2003 - 2009 DaniWeb® LLC