Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Showing results 1 to 25 of 357
Search took 0.03 seconds.
Search: Posts Made By: anshul
Forum: Apache Tomcat May 29th, 2008, 07:21 AM
Replies: 1
Views: 2,195
Posted By anshul
Tomcat6 service on Windows XP

Many times, I tried `service install` and installed Tomcat 6 service in Windows XP.

However in my notebook PC, its throwing error now (before, it was working before). I'm getting below error now....
Forum: Beginning PHP February 27th, 2006, 05:44 AM
Replies: 4
Views: 1,042
Posted By anshul
PHP has problem in line: <?xml version="1.0"...

PHP has problem in line: <?xml version="1.0" encoding="UTF-8"?>

I changed it to:
<?php echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"; ?>

Actually tags of both PHP and XML are same.
...
Forum: PHP How-To February 25th, 2006, 02:32 AM
Replies: 6
Views: 1,090
Posted By anshul
Image is a file and we may use...

Image is a file and we may use filesize($filename).
It returns in bytes.

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
mediasworks.com project (http://www.mediasworks.com/)
Forum: Pro PHP February 21st, 2006, 09:31 AM
Replies: 2
Views: 1,160
Posted By anshul
Cache the script: ob_start() and ob_end_flush()...

Cache the script:
ob_start() and ob_end_flush()

Regards,





`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Forum: Beginning PHP February 21st, 2006, 07:54 AM
Replies: 4
Views: 1,042
Posted By anshul
PHP has nothing to do with X/HTML except that it...

PHP has nothing to do with X/HTML except that it can be output-ed by PHP. PHP files always've extension .php

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
mediasworks.com project (http://www.mediasworks.com/)
Forum: PHP How-To February 21st, 2006, 07:49 AM
Replies: 1
Views: 839
Posted By anshul
Please see PHP copy function: ...

Please see PHP copy function:


`~@#\^%&*/\.<.\/-|+|_!:;..=?>
mediasworks.com project (http://www.mediasworks.com/)
Forum: MySQL February 15th, 2006, 07:55 AM
Replies: 1
Views: 1,308
Posted By anshul
You're doing too much wrong ..:D:D Now use...

You're doing too much wrong ..:D:D

Now use the arrays as you like:
print_r($rs_email);

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
mediasworks.com project (http://www.mediasworks.com/)
Forum: MySQL February 15th, 2006, 07:43 AM
Replies: 1
Views: 1,781
Posted By anshul
You need correct MySQL selection for it: see...

You need correct MySQL selection for it: see LIMIT clause.

Also see, php paging script (http://www.mediasworks.com/scripts/paging_records_php_script.htm).

`~@#\^%&*/\.<.\/-|+|_!:;..=?>...
Forum: Beginning PHP February 9th, 2006, 04:59 AM
Replies: 1
Views: 1,221
Posted By anshul
Use switch() ..case statement to echo in betweeen...

Use switch() ..case statement to echo in betweeen html textarea tags. User need submit the form after checkboxes choices.

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
mediasworks.com project...
Forum: Pro PHP February 2nd, 2006, 03:31 AM
Replies: 3
Views: 1,821
Posted By anshul
$archive_dir="http://domain_name/images/booksimage...

$archive_dir="http://domain_name/images/booksimage/thumb";
is wrong.

Use PHP filesystem functions.

Upload is to your internal directories not to external ones like http://~path~

Hence...
Forum: Pro PHP February 1st, 2006, 05:57 AM
Replies: 1
Views: 884
Posted By anshul
How can I implement that? Any ideas? 1) Get...

How can I implement that? Any ideas?

1) Get the form POST data.
2) First insert that data into the database.
3) Then, mail() that data to the recipient.

Any questions? :)
...
Forum: PHP How-To February 1st, 2006, 05:51 AM
Replies: 1
Views: 12,486
Posted By anshul
May rename the file and then upload. You may...

May rename the file and then upload.

You may write PHP code to pass arguments to PHP function mail() and it will just do the rest job.

Or try to upload the file via file manager in CP.
...
Forum: MySQL January 21st, 2006, 07:21 AM
Replies: 2
Views: 1,999
Posted By anshul
For host argument, use IP of machine where MySQL...

For host argument, use IP of machine where MySQL is installed lieu localhost

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
A small donation and a link back to you
Students' finances...
Forum: Beginning PHP January 20th, 2006, 02:09 AM
Replies: 3
Views: 3,195
Posted By anshul
Is your PHP script having fopen() is in same...

Is your PHP script having fopen() is in same directory as Log-Tarrif.dat?

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
A small donation and a link back to you
Students' finances...
Forum: Beginning PHP January 20th, 2006, 02:06 AM
Replies: 1
Views: 944
Posted By anshul
chmod() is used to change permission of a file...

chmod() is used to change permission of a file generally to public read (0644) or public read not (0640). If file is writeable/editable, its permission need be 0666.

Uploading PHP files to Web...
Forum: Beginning PHP January 17th, 2006, 02:04 AM
Replies: 3
Views: 3,195
Posted By anshul
file can't be found by PHP. file name may be...

file can't be found by PHP.
file name may be wrong or file path may be wrong.

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
A small donation and a link back to you
Students' finances...
Forum: MySQL January 9th, 2006, 08:38 AM
Replies: 5
Views: 1,539
Posted By anshul
My suggestion is you put separate table for UK...

My suggestion is you put separate table for UK countries and towns. Try to avoid keys that are long.

'zipcode', 'passport number', 'election card number', 'cell number', 'email' can be good keys....
Forum: MySQL January 9th, 2006, 05:15 AM
Replies: 5
Views: 1,539
Posted By anshul
Searching 30000 records for matching an integer...

Searching 30000 records for matching an integer ID won't take 30 seconds. I hope it will take only a few seconds.

Time consumed in such search depends on how efficiently 'keys' are designed.
...
Forum: PHP How-To January 9th, 2006, 04:48 AM
Replies: 7
Views: 1,459
Posted By anshul
Hi, You could use any of many ready free...

Hi,

You could use any of many ready free scripts available from SourceForge or HotScripts. Or you may wait to learn and write the script.



`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Students' finances...
Forum: Beginning PHP January 7th, 2006, 06:09 AM
Replies: 2
Views: 7,675
Posted By anshul
For require and include problem, verify/set...

For require and include problem, verify/set correct include_path.

In header("location: index.php"), prefer to use absolute URI.

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Students' finances...
Forum: Beginning PHP January 6th, 2006, 03:37 PM
Replies: 3
Views: 1,074
Posted By anshul
Here...

Here (http://www.mediasworks.com/scripts/php_mailer_script.htm) is the detailed examples for beginners.

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Students' finances (http://scholarship.mediasworks.com/)
Forum: Beginning PHP January 6th, 2006, 07:01 AM
Replies: 8
Views: 1,994
Posted By anshul
top.html need be in same directory of what PHP...

top.html need be in same directory of what PHP script in whcih you included it.

If it is in other directory, there may be path problem.
use echo get_include_path(); to know include_path.
...
Forum: PHP How-To January 4th, 2006, 03:13 PM
Replies: 2
Views: 1,527
Posted By anshul
It shouldn't be; it is a static HTML file. How...

It shouldn't be; it is a static HTML file. How Apache knows it contain PHP code!

If you wanna parse HTML as PHP, you may add below line to '.htaccess' file directory wise:
AddType...
Forum: MySQL January 4th, 2006, 03:12 PM
Replies: 3
Views: 3,536
Posted By anshul
It is as simple as: INSERT into...

It is as simple as:
INSERT into table_name(field1, field2) VALUES('$var1', 'timestamp()')

Note that PHP has no function timestamp(). It is of MySQL.

Use phpMyAdmin to easy manage all these...
Forum: PHP Databases January 4th, 2006, 08:00 AM
Replies: 4
Views: 1,569
Posted By anshul
May be, user that is connected to MySQL database...

May be, user that is connected to MySQL database via PHP script may not have delete permission ..!

`~@#\^%&*/\.<.\/-|+|_!:;..=?>
Students' finances (http://scholarship.mediasworks.com/)
Showing results 1 to 25 of 357

 




Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.