User Profile
Collapse
-
svn: Expected FS format '2'; found format '3'
I maintain a couple of web servers, and they synchronize changes via SVN with the development server.
The development server was running SVN v1.5.4, and the production servers were running SVN v1.5.2, and everybody was happy.
Adding a new site to the production servers was an easy task:
Code:> ssh admin@production-server > svn co svn+ssh://user@development-server/path/to/svn/repos/domain.com
-
Heya, klehonia.
$_SERVER['SERVER_NAME'] is populated by Zend Platform. A stock PHP installation generally won't have this variable accessible.
Try $_SERVER['HTTP_HOST'] instead. You might have to explode('.') it if you only want a specific part of it.Leave a comment:
-
Heya, sukhvir13.
Try $word->Documents->Open() instead of $word->ActiveDocument .
If that doesn't work, you might be able to get by with $word->Documents->Add() and then $word->ActiveDocume nt->open().
There might be more info here:
http://php.net/com...Leave a comment:
-
Leave a comment:
-
Heya, vikidigi.
Try viewing ViewImage.php directly in your browser and seeing if it is outputting the image correctly. If not, try removing the content-type line to see if your script is outputting an error message that is interfering with the image output.Leave a comment:
-
Heya, pinocchio123. Welcome to Bytes!
A path is simply a string that uses '/' or '\' characters to separate folders. All you need to do is provide the User with a text input so that he can specify the path.
The tricky part is not collecting the path; it is validating the path to make sure that the User did not (accidentally or maliciously) specify an unsafe path.
For example:
Code:$path = $_POST['path'];
Leave a comment:
-
Heya, vijay.
For the level of control that you want over your output, you should consider generating PDF files instead.Leave a comment:
-
DBAL does work much better with the singleton pattern, as maintaining multiple database connections per script execution tends to cause more problems while trying to solve a problem that doesn't exist.
The factory pattern is often useful in situations where you might be using different database adapters. Generally this is only useful for one-size-fits-all frameworks such as Zend Framework:
[code=php]$db = Zend_Db::factor y('Pdo_Mysql',...Leave a comment:
-
Heya, Theo.
I have posted a howto here:
http://bytes.com/topic/macosx/insigh...c-shadowwraith
I have a backup file somewhere, but I can't remember where I put it. In the meantime, I recommend that you give it a shot and post back if you have any trouble. It is infinitely satisfying to figure out, I promise!... -
-
Hi, I saw your post about pulling the mod files from ShadowWraith that you posted a while back. I used to be a mac user, and I loved playing ShadowWraith, especially because of the music. It is currently my most sought-after soundtrack, and I've driven myself almost to insanity trying to find somewhere to download it. I'm a pc user now, so I can't follow the steps listed in your post. This dismayed me, as this is literally the only site that... -
Sounds like an issue you need to take up with Yahoo. The problem is in their policy, not your code.Leave a comment:
-
Heya, Ravigandha.
Are only certain types of files not showing up, or is Yahoo blocking all your attachments?Leave a comment:
-
Heya, Scripper.
Read here for more information on how to pass variables by reference properly in PHP:
PHP: Passing by Reference - ManualLeave a comment:
-
Heya, hsmcdonald.
Add an ampersand at the end of the command string to execute it as a background process:
Code:system("/usr/local/bin/php ./mail.php arg1 arg2 arg3 arg4 >> /tmp/1234log.log [b]&[/b]");
Leave a comment:
-
Heya, prabhunew2005.
Use PHP's date() function (PHP: date - Manual), possibly combined with strtotime() if necessary (PHP: strtotime - Manual).Leave a comment:
-
Leave a comment:
-
Heya, Bigpoppa.
PHP isn't really the tool for this. Try using Apache to throttle the bandwidth (apache throttle bandwidth - Google Search).Leave a comment:
-
Heya, agphoto.
Try reading the contents of the file using file_get_conten ts() (PHP: file_get_conten ts - Manual) and then doing a separate fopen(..., 'w') to overwrite the file contents.Leave a comment:
No activity results to display
Show More
Leave a comment: