Hi Rob Sorry my english. Isnt native
I think php will get the php code and execute it. I am Drupalist. $().load() will execute my php file always in my main root or in http://localhost/mysite or in actual physical path, no matter. I need pass an argument to this php file or to my server (I dont know how or which "server or file") telling this php file isnt in main root it is in http://localhost/mysite/node/add/mycontent. Like a mask or alias. myscript.php is - - - - - - chdir('./../../../'); // for relative path includes to work I tried change this value but didnt work include "includes/bootstrap.inc"; drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL); print $content; - - - - - - If I can pass the argument (path=http://localhost/mysite/node/add/mycontent) to my server with load() the $print content; will get my content from this path in the Drupal. You can see if this work could be a good, fast and easy way to implement AJAX and many CMS will love. But could be a crazy idea. If is forgive me and sorry. Regards Mario 2007/7/25, Rob Desbois <[EMAIL PROTECTED]>:
Mario, I don't understand - are you wishing to change the working directory for PHP? If so the function chdir() can help you. If that's not what you're asking I don't get it, can you rephrase the question, perhaps let us know what you're trying to do with this? --rob On 7/25/07, Mario Moura <[EMAIL PROTECTED]> wrote: > > Hi Folks > > Now I am tasting Jquery AJAX > > My BIG problem is > > $("#myID").load("/mysite/myCustomDir/MyOtherPlace/myscript.php"); > > Yes I can run my php file. Excelent! but How can I set to this file to > run in http://localhost/mysite/mydir/myplace? > > In other word I would like to say to my server hey! I am in http://localhost/mysite/mydir/myplace > load me > > Every time run in http://localhost/mysite > > It is impossible set the web url by php. Could I set with Jquery? > > In my case is impossible set > /mysite/myCustomDir/MyOtherPlace/myscript.php equal with > http://localhost/mysite/mydir/myplace > > Regards > > -- > Mário -- Rob Desbois Eml: [EMAIL PROTECTED] Tel: 01452 760631 Mob: 07946 705987 "There's a whale there's a whale there's a whale fish" he cried, and the whale was in full view. ...Then ooh welcome. Ahhh. Ooh mug welcome.
-- Mário Alberto Chaves Moura [EMAIL PROTECTED] 31-9157-6000