Search found 14 matches

by jspmahavir
Tue May 31, 2011 2:21 am
Forum: PHP Scripts
Topic: cron problem
Replies: 0
Views: 621

Re: cron problem

For that

Create single file and include whole files one by one.

in between use timer function to delay between calling files :>
by jspmahavir
Tue May 24, 2011 1:10 am
Forum: PHP coding => General
Topic: $_SERVER['DOCUMENT_ROOT'];
Replies: 0
Views: 379

Re: $_SERVER['DOCUMENT_ROOT'];

This is not a problem with

$_SERVER variable but in your configuration file its changes that's why on server you don't get '/' when you print $_SERVER['DOCUMENT_ROOT'].
by jspmahavir
Fri May 20, 2011 1:06 am
Forum: PHP coding => General
Topic: add prefix to user id using phpmyadmin
Replies: 12
Views: 6367

Re: add prefix to user id using phpmyadmin

Hi Anu For adding prefix from database then u want prepared query with concat function in sql query. ex: SELECT concat( 'CL', '#', user_id ) FROM `users` LIMIT 0 , 30 Or if U want to store new id in database table then simple write one trigger on that table before insert. when any new record is inse...
by jspmahavir
Thu May 19, 2011 11:44 pm
Forum: phpMyAdmin
Topic: add prefix to user id using phpmyadmin
Replies: 2
Views: 2566

Re: add prefix to user id using phpmyadmin

Hi Anu

For adding prefix from database then u want prepared query with concat function in sql query.

ex:

SELECT concat( 'CL', '#', user_id )
FROM `users`
LIMIT 0 , 30
by jspmahavir
Thu May 19, 2011 11:36 pm
Forum: mySQL & php coding
Topic: Master Detail page using 1 form & 2 blocks
Replies: 0
Views: 575

Re: Master Detail page using 1 form & 2 blocks

For that you first write the join query on both table with DEPTNO field. After that you just fetch whole data with query steps: 1) $sql = mysql_query($query); 2) while($result = mysql_fetch_array($query)){ $data[] = $result; } 3) in $data array you have whole records from your database. 4) after tha...
by jspmahavir
Wed May 18, 2011 5:02 am
Forum: Other Database Engines
Topic: PHP and ODBC
Replies: 1
Views: 2040

Re: PHP and ODBC

Just follow below steps to get odbc connection with php.

http://www.w3schools.com/PHP/php_db_odbc.asp
by jspmahavir
Wed May 18, 2011 4:18 am
Forum: PHP Installation
Topic: PHP File transfer method help
Replies: 1
Views: 2650

Re: PHP File transfer method help

Hello,

In your case both PC are server then you simple create FTP for both server and just using FTP class in PHP then you simply upload files on other computer.


Thanks,
Mahavir Jain.
by jspmahavir
Tue May 17, 2011 9:36 pm
Forum: PHP General
Topic: Useful PHP Articles, Sites
Replies: 50
Views: 35828

Re: Useful PHP Articles, Sites

want to read new articles of html and css things..

Go to the http://jspmahavir.blogspot.com/ with new things........ Best luck :)
by jspmahavir
Thu Apr 21, 2011 2:43 am
Forum: PHP coding => Images
Topic: image resizing.....without adding width property
Replies: 3
Views: 1845

Re: image resizing.....without adding width property

hello macek

For resize image u must set single parameter to the function is width/height based on that we calculate the actual image size of the given image. and we just re size original image.
by jspmahavir
Thu Apr 21, 2011 2:36 am
Forum: PHP General
Topic: How php engine?
Replies: 3
Views: 854

Re: How php engine?

no i means when we use PHP technology then we want to user POST data then we use $_POST variable

same in .net technology we use Request.Form("variable")

i want to how how PHP engine interpret this things?
by jspmahavir
Wed Apr 20, 2011 5:10 am
Forum: PHP General
Topic: save object in session
Replies: 2
Views: 695

Re: save object in session

Also use create_function ( string $args , string $code ) for store huge data in session or cookie.
by jspmahavir
Wed Apr 20, 2011 5:07 am
Forum: PHP General
Topic: save object in session
Replies: 2
Views: 695

Re: save object in session

For storing huge data in session you first serialize that whole array or object after that you just store whole information in $_SESSION['var'].
by jspmahavir
Wed Apr 20, 2011 5:02 am
Forum: PHP General
Topic: root directory path of website
Replies: 1
Views: 790

Re: root directory path of website

getting current path in php script use getcwd() function. it is php function.

after that you just store that variable in to your global variable or constant variables in whole website.
by jspmahavir
Wed Apr 20, 2011 4:57 am
Forum: PHP General
Topic: How php engine?
Replies: 3
Views: 854

How php engine?

How PHP engine knows which variable are store in $_POST and which are store in $_GET variable

because in PHP it self $_POST is a variable

at what time those variables are filled on PHP execution time??