php-cgi.exe - No Disk error

441 views
Skip to first unread message

gro...@nztm.net

unread,
Jun 27, 2015, 4:37:43 AM6/27/15
to phpde...@googlegroups.com
Hi,

When I download and run PHP Desktop a box appears with the following error message initially and on every page navigation:

php-cgi.exe - No Disk
There is no disk in the drive. Please insert a disk into drive F:.

There are several references to this problem, e.g.:

https://bugs.php.net/bug.php?id=68312
http://stackoverflow.com/questions/28390763/php-error-there-is-no-disk-in-the-drive

However the solution proposed is to remap the drive. I don't see how that is a reasonable answer, PHP shouldn't have anything to do with that drive letter. Isn't there a better solution for this issue?

Thanks

Czarek Tomczak

unread,
Jun 27, 2015, 4:55:05 AM6/27/15
to phpde...@googlegroups.com
I've also encountered this issue just a few days ago. I had a pendrive attached to F: and after removing it the error disappeared. This was with PHP 5.4. Have you tried with other php versions 5.5? 5.6? By default PHP Desktop comes with settings to display php startup errors, in php.ini the option is named "display_startup_errors", try changing its value to Off:

display_startup_errors=On 

Try also disabling the "display_errors" option. 



--
You received this message because you are subscribed to the Google Groups "PHP Desktop" group.
To unsubscribe from this group and stop receiving emails from it, send an email to phpdesktop+...@googlegroups.com.
Visit this group at http://groups.google.com/group/phpdesktop.
To view this discussion on the web visit https://groups.google.com/d/msgid/phpdesktop/58b6ac6a-bde4-49c0-b0e7-4f8c8a85b97b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tim

unread,
Jun 27, 2015, 5:20:40 AM6/27/15
to phpde...@googlegroups.com
Thanks for your reply Czarek, I'm using the latest version available for download so it's PHP 5.6. I tried changing both those options and unfortunately it doesn't have any effect on this error.

I appreciate that it's probably a PHP problem instead of a PHP Desktop problem, but if you or anyone else has an idea how to make an application that doesn't display this error I would be keen to hear.

Thanks!

Czarek Tomczak

unread,
Jun 27, 2015, 5:31:38 AM6/27/15
to phpde...@googlegroups.com
It might be possible to fix it by modifying the way Mongoose web server launches the php-cgi.exe process. I bet there should be an option to run the process in "silent" mode so that it doesn't display any dialogs.

Here is the mongoose source code in question:

MSDN docs for CreateProcess():

Maybe passing the CREATE_NO_WINDOW flag to CreateProcess() will fix the problem:




Tim

unread,
Jun 30, 2015, 4:46:43 AM6/30/15
to phpde...@googlegroups.com
Thanks for the helpful reply Czarek!

I actually have no experience with C++ but the build instructions are very straightforward so I was able to do it.

I can't say whether the flag you mentioned is a solution or not, because the version I built unmodified works fine and doesn't cause the error. So I guess it's a solution anyway!  :)

Thanks very much, I'm looking forward to trying this out.
Tim

Czarek Tomczak

unread,
Jun 30, 2015, 5:02:07 AM6/30/15
to phpde...@googlegroups.com
That's strange. You should test it out on at least one other computer that has an F: drive to make sure.

Czarek Tomczak

unread,
Jun 30, 2015, 5:08:42 AM6/30/15
to phpde...@googlegroups.com
Looks to me that when building from sources you've downloaded newer php binaries that do not have this issue.

Tim

unread,
Jun 30, 2015, 5:27:17 AM6/30/15
to phpde...@googlegroups.com
I used the latest VC11 x86 Non Thread Safe version which was v5.6.10 and dated this month.
The stable release looks to be using v5.6.1 so yes it's definitely an updated version.

I'll see if I can find a way to try it on another machine with an empty F: drive.
Reply all
Reply to author
Forward
0 new messages