trq
Staff Alumni-
Posts
30,999 -
Joined
-
Last visited
-
Days Won
26
Everything posted by trq
-
Your best (and most logical) approach would be to change the DNS records to point to the new server. Otherwise, you could nfs mount the remote directory locally and do it that way but it would slow your site down considerably.
-
Using jQuery this would be a simple task. A VERY simple example, not tested. <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script> <script> $('#thumbs ul li').hover( function() { img = $(this).find('img').attr('src').replace('-thumb', '-full'); $('#stage').html('<img src="' + img + '" />'); }, function() { $('#stage').html(''); } ); </script> </head> <body> <div id="thumbs"> <ul> <li><img src="image1-thumb.jpg" /></li> <li><img src="image2-thumb.jpg" /></li> <li><img src="image3-thumb.jpg" /></li> </ul> </div> <div id="stage"></div> </body> </html> You'll need the images image1-thumb.jpg , image1-full.jpg etc etc
-
IIS7 has url re-writing abilities, otherwise, you'll need to fork out for a third party isapi filter such as isapi_rewrite3.
-
The part in cPanel that asks for a remote host would need to be the hostname (or ip address) of the site you wish to allow access to your database. The part in your connection however would need to be the name of the server hosting the database.
-
Calling a function from inside a function - possible ?
trq replied to MacRedrum's topic in PHP Coding Help
The point of functions is to package code into small encapsulated, reusable, callable pieces of code. Globals break 2 of the three things functions set out to do, encapsulation and re-usability. They also (as you are now experiencing) make things very difficult to debug. -
Calling a function from inside a function - possible ?
trq replied to MacRedrum's topic in PHP Coding Help
With all those globals I'm not sure why your bothering with functions at all. Functions accept parameters, use them. -
Have you looked into jQuery or a similar framework? This sort of thing is simple with a decent framework? Otherwise, where are you stuck? You haven't exactly posted any code.
-
Your point? phpBB likely allows blocks to appear raw when there is no data within them. I still fail to see the logic in your question / problem. What exactly would you expect your parser to do when it sees a closing [/code] tag? I would expect it to close the code block.
-
You need to turn error reporting on on your server, your code is riddled with syntax errors.
-
Which is exactly what your rewrite rule does.
-
Post your current code.
-
What exactly would you expect to happen? Any parser still needs the correct syntax given to it.
-
.box1 { background-image:url(images/newimage.jpg); }
-
You have html after the ; on that line, which continues onto the next line.
-
tried to install xampp on lucid lynx but things went wrong
trq replied to gencom97's topic in Apache HTTP Server
Ubuntu has a package manager that is perfectly capable of installing the amp stack. Did you use it to install xampp? -
What makes you believe JSP is any quicker than PHP?
-
Again, you cannot execute anything on the clients computer.
-
Help needed with PHP session management class
trq replied to Fergal Andrews's topic in PHP Coding Help
Why would there be a restriction on being able to use php sessions? You can use standard php sessions and still store all session data in a database if the writing of files is the problem. -
A bat file is just another executable. Where exactly are you trying to execute these? On the server or the client?
-
If it is enabled. Your not going to be able to execute an exe file on a client.
-
Were not here to write code for people. I suggest you learn enough cold fusion to pull this apart and turn it into php. Or, if you know php well enough, just write it from scratch.
-
Thanks for what?
-
Is there any decent way to distribute complex PHP CLI scripts?
trq replied to DWilliams's topic in PHP Coding Help
That is pretty much what package managers do. If however (as you have found) the packages you depend on are not available through whatever package manager you (or the end user) are using you won't have much choice but to have them manually install the application. Obviously, you should try and avoid uncommon dependencies when writing an application for distribution. What you could also do however (and this will mean allot more work) is actually provide (and maintain) the dependencies yourself as packages as well. -
You need to draw up a document outlining a sites requirements before work even begins. Anything outside of these requirements needs to be re-negotiated. And yes, you should always get sign-off on work completed. Generally I work on the principle of 1/3 upfront, 1/3 at beta and the final 3rd when the spec is completed.
-
Is there any decent way to distribute complex PHP CLI scripts?
trq replied to DWilliams's topic in PHP Coding Help
Because most (if not all) Linux distributions have there own package management systems distribution should be rather simple. Release a pure src version allowing a manual install and simply list any dependencies within a README file. Then, either you or someone else could maintain distro specific packages. eg; deb, rpm or ebuild scripts.