-
Posts
1,516 -
Joined
-
Last visited
Everything posted by Ric
-
The above looks correct, I assume you enter http://gemdev.localhost into your browser address bar. Your browser attempts to resolve this address by first looking in the hosts file hence you need an entry in this file that points to local host address 127.0.0.1 Looks something like this: 127.0.0.1 localhost # loop back address 127.0.0.1 gemdev.localhost # loop back address Your browser just needs the numeric address (127.0.0.1) with this information it sends a page request to your local server with the domain part (gemdev.com) in the header. Apache looks at this header information and directs to the appropriate top-level folder. The hosts file can be found in: c:\windows\~system32\drivers\etc — [Windows Vista] c:\windows\hosts — [Windows 95/98/me] c:\winnt\system32\drivers\etc\hosts — [Windows NT/2000/XP Pro] c:\windows\system32\drivers\etc\hosts — [Windows XP Home] Additional Information: What is more interesting if you like to use say www. gemdev.localhost Add this to the hosts file as well: 127.0.0.1 localhost # loop back address 127.0.0.1 gemdev.localhost # loop back address 127.0.0.1 www.gemdev.localhost # loop back address You also need a corresponding entry in the httpd.conf file: ##### GEMDEV <VirtualHost *> ServerAdmin michael@digitalgemstones.com DocumentRoot /www/dev/gemdev ServerName www.gemdev.localhost ErrorLog logs/gemdev-error_log CustomLog logs/gemdev-access_log common </VirtualHost> Now typing either of the following into your browser will take you to the same location. http://gemdev.localhost or http://www.gemdev.localhost You can use this technique for any number of Apache virtual hosts. Note: If you design on your local machine and publish your site/sites to a service provider you can use real domain names, just put these into the host file allowing your browser to resolve them and point to your local server. With your site published remember to remove the corresponding entries in your host file otherwise you will not be able to view your real live site on-line Sorry for the ramble but this is on my do list for UniCenter and will be added to the following page when I have time: http://center.uniformserver.com/new_users_...rs_hosts_1.html
-
If it bugs me, I will look at it, never even considered this. Just hate to push you to another site. Hope this will help its not definitive but contains a few ideas. http://center.uniformserver.com/dot_leader..._leaders_1.html
-
This page may be of interest: http://home.tampabay.rr.com/bmerkey/exampl...ot-leaders.html Save the page and view it’s source, there are two additional links these may also help.
-
Feel free to delete this: This little gem sums up our UK problems! “Important: Windows Vista and your ********** service Microsoft has launched a new operating system called Windows Vista. If you are thinking of upgrading your system to Vista, please read the important information below. The introduction of Windows Vista has caused some problems throughout the industry. These are due due to incompatibility issues with other software. If you are upgrading to Vista there are scenarios where you may experience problems, such as being unable to connect to the Internet. This is due to incompatibility issues with your existing modem software and Vista. “ Is not UniServer, existing software, or have I missed the plot. All my software talks to XP. As a humble consumer the bable fish should remain in communication with Vista otherwise it becomes redundant. Interesting litigation extinction of bable fish due to ! I am not a Luddite but when something works (XP) it should be enhanced not con singed to the waste bin. One day! Well we will just move on.
-
Welcome, I trust the blood dripping down your walls has been cleaned up, as for the hair loss; I have yet to find a solution. I read your post with mild amusement; it describes my experience with PCs and software to a T. I cannot fault your logical and methodical approach to solving the problem, only to find no tangible solution. The real problem vaporised into thin air with a fresh download. Hence you have seen the effect as to the cause! Well probably long since gone. It’s this type of scenario that frustrates me, but hey that’s the real world. My definitive solution for all hardware and software problems, never switch the PC on, but then again I never practice what I preach so my hair loss continues. One tip worth considering, paint the walls red. You never mentioned screaming I find earplugs work a treat. Banging your head against a wall, pulling hair out with bouts of screaming is found on most software and hardware job descriptions (its in the small print) and allows you to seamlessly blend in and become an active team player. Well have fun and enjoy. PS I do understand “sometimes it frustrates”
-
That looks good, proves memory stick and UniServer are working (4sec on XP Pro). I would still like to eliminate the USB / Win 2000 interface, hence the reason for running it from your C drive. If this is relatively fast, then it points to either the USB stick or possibly Win 2000 drivers. Do you run large programs from the stick on Win 2000 if so are these OK. The initial long start up could be due to virus scanning (but 5Mins) I have no experience with Win 2000 but I have this nagging in the back of my mind that’s screaming threads and environment. Do you have the right drivers for USB 2?
-
I have never used Windows 2000 I use either Windows XP home or XP Pro. The reason I mention this is because of your last statement it works (well after 5mins). Hence it is not the recursive loop problem you are seeing. You are running from a USB stick and state subsequent reads are OK. I have observed a similar thing on XP and tracked the problem back to the USB stick. To confirm that this is your problem, create a folder on your C: drive and copy all of UniServer into it. Run UniServer from that folder after a short delay (not 5 mins) you will see apanel. If so try using a different USB stick and see if that makes any difference.
-
Yep, from what you have just said I think you are in the right direction. I wish you all the best with the project. If you do get stuck, please feel free to come back, some one will do their best to help. All the best
-
I am not sure of your real problems; it’s the first time I have looked at this post. What I see is you are doing an excellent job. Hack UniServer around that’s great, had a quick scan of INNO will do what you want. Have you taken a look at UniTray http://center.uniformserver.com/unitray/un..._install_1.html Tailor this to your users I think that would be useful. This surprised me That rings alarm bells, a clean install works, assuming no other conflicts with port 80. I personally would be worried if I could not get the default installation to run on my machine and then expect others to when using INNO, all you are doing is exporting the problem. I recently received a message from my ISP not to use VISTA for the time being because there are problems and they could not guarantee my service or email. Hence I look at this: That’s the problem; what will they be running on, if it matches your machine perfectly they will have no problems. Well sorry to be negative but in general XP Home no problems, XP pro expect conflicts with IIS, Vista well to me a little unknown expect few problem with the versions with no server, as the that extra dosh expect problems at the higher end.
-
can't start Windows processes the background with phpcli
Ric replied to mixersoft's topic in Programming & Web Design
The start command starts a new command window, the first parameter, if in quotes, is taken as the Title hence the reason you see "bla" in the title bar. The line looks wrong why use start! popen should just run the program as is with the "r" argument Try this and see if it works pclose(popen("$path_phpexe.$phpexe."\" -f W:/www/services/xmlrpc.php " . $args, "r")); -
Hi Olajide Yep got your message, have no problem with that, thought it would be a good idea for a mini Wiki, but thinking about it would be impossible to maintain, I think the main Wiki is the right way to go. Now all I have to do is learn how to use it :angry: All the best Mike
-
UniCenter is a strange beast; it is independent that’s why I have never ported anything to the Wiki. The reason behind that is because I can; well just move it to another location and remain independent. Olajide (thanks), after nine months has been true to his word; he would host the site with no censorship. Well I have just revamped the site and I hope have made it a little more navigable. I have added some new sections to actively encourage any new user to go in and have a play. That may sound strange but I have hammered UniServer to the point of annihilation but it has never reciprocated; by that I mean has never KILLED my machine. Why the hell do I support UniServer, apart from being a production server it is a very competent teaching server. When it breaks my PC I will let you know. As for UniCenter, well I will apologise for the links, that do not zap you to the right location and to the inarticulate content, I have been known to ramble on, Ho well. The content may be total rubbish; I have no problem with that, if I have sparked one idea; or stimulated one brain cell; then I will have achieved my goal and welcome to the world of open source software.
-
I have just updated UniCenter and have included a section that covers UniTray problems with a proposed interim solution. http://center.uniformserver.com/unitray/unitray_menus_1.html
-
I have just updated UniCenter and have included a section that covers Stunnel 4.20 upgrade this may help you. Take a look at this page http://center.uniformserver.com/stunnel_42...20_1_intro.html
-
With XP Home there really should be no problem. Download a fresh copy of UniServer 3.3 (yours may have been corrupted). Extract the files to any folder you like and run that version to see what happens. That’s the beauty of UniServer you can have as many copies of it as you like in different folder. Experiment with it, once you break it beyond repair just use another copy and delete the old one. Yes do a clean install, run the server using Server_Start.bat wait a little while for your browser to start. This will display a page named Apanel from this start the MySQL server and then run phpMyAdmin (again from apanel). Note: if challenged by any firewall or other security allow connections on all ports for both Apache and MySQL. If the problem remains do not hesitate, come back and we will try to resolve it.
-
Hi Harley, Well that sounds like fun three servers, seriously I have not come across those error messages. What would be of help if we know what your OS is (Windows XP home, XP pro). With a clean installation there is no need to change a thing (until you go on-line) however with Apache and MySQL running there should be no problem with phpMyAdmin. Need to resolve this first, hence what OS, have you ever used another WAMP or MySQL on your machine (and uninstalled it) any other error messages.
-
I have read the message “Windows cannot find “W:\www.myORTHO_Ver1.0\index.html” and I find it interesting because if you clicked a link in UniTray and received that, it’s not possible. You can run two instances of UniTray so long as they are in different folders. However that’s beside the point: Try the following two links and tell me what you get: Left click on the tray icon and then click on About: Left click on the tray icon and then click on Uniform Server: The first is version independent hence you should be able to read the intro. The second executes a path to the UniServer home site; this will be viewable in your browser. Just need that extra bit of info to point you in the right direction
-
Two hours ago I downloaded this plugin to see if I would have similar problems OK I confess I have never used it because I like bat files. It’s easy to install however I did get that error message on three links (I have not finished all my testing) what puzzles me is that all his links fail. There cannot be anything missing because he gets the menu list ie the plugin is correctly installed and loads it’s ini file (ps info I use XP Home). Are those three links that did not work? Incorrect paths open UniTray.ini To start Uniserver it should look like this: [startUniServer] Action: run; FileName: "%USRoot%\Server_Start.bat"; ShowCmd: hidden; Flags: waituntilterminated PHP info To get it displayed in browser should look like this (last line): [serverGen] Type: item; Caption: "Server Information"; Action: shellexecute; FileName: "%WebRoot%/info/"; Glyph: 4 Type: item; Caption: "Server Status"; Action: shellexecute; FileName: "%WebRoot%/status/"; Glyph: 4 Type: item; Caption: "PHP Information"; Action: shellexecute; FileName: "%APWebRoot%/phpinfo.php"; Glyph: 4 Images: well the folder (www/images) does not exist in 3.3 hence path failure. Make one One final point to my horror I pressed “Install all services” and it did just that, now I hate removing this stuff. Well I clicked that magic button “Remove All services” and it just went off and did its thing. Is that ace or what? There was some dross left on the C drive, basically inactive folders. When I have time I will pop this on UniCenter I must have one final word, what a grate guy Onno Broekmans is for putting such an excellent piece of software into the public domain.
-
Have you changed the MySQL root password, if you have this is a two part process: Details on this page: http://center.uniformserver.com/uniserver/...check_list.html section 3 If you changed only the password in ??/Uniform Server/diskw/home/admin/www/mysql_password You will be locked out of the MySQL server. Change it back to root, check that it works, and then follow the procedure it section 3 in the order stated.
-
I apologise I do not know the program “rotaletelogs.” However US does not set any file attributes on the files in the apache2 folder. I am at a loss on this one, what is this program, what OS are you running on any other info would help. If you are trying to access externally via the Internet to your server at this location you cannot because of the tight production controls. PS I do like cheesecake and would like to help
-
You need to use : http://localhost/apanel/phpmyadmin/
-
I have seen this once before on a friends machine, re-installed a known working copy of US from a pen drive and yep W busy. He totally assured me that he had installed no new software. I disabled updates, rolled the machine back to a known working date. This cured the problem as for the cause, well it points to updates, not convinced on that one, could have just been a pc feature. He enabled updates with no adverse effects. As for the cause
-
If the above meets your requirement you may find this of interest. Copy the code and name the file list2.php and play with the variables $outCount, $perPage and $numNavItems. I think I have commented out most of the code that is irrelevant for your application. It is easily adaptable for a MySQL database originally designed for use with the DigiOz Guestbook, which uses a file database architecture. My proposed solution can be enhanced so feel free to hack the code. <html> <head> <title>Sliding NAV bar links</title> </head> <body> <?php //################################################################################################## // Original code proposed for Digioz Guestbook REF DIGIOZ Beta17 // MPG V1.0.0 30-9-05 // Extracted and made generic for UniServer // MPG V1.0.1 15-2-07 //################################################################################################## //################################################################################################## // This code produces a sliding navingation bar based on a list of items to be displayed. This data // may be stotred in a database or in a file as in the Digioz Guest book. The type of information // stored may be lines of text or a collection of data. This data will either fit onto one page or // spread over several pages. To determine the number of pages we obtain the total // number of enteries stored "$outCount" and define the number of enteries to display per page // "$perPage". $pageNum = $_GET['page']; // current page number to be displayed in multi-pages if($pageNum <0) $pageNum=0; // prevent negative numbers entered by user do similar for higher numbers $outCount = 37; // total number of enteries or items stored in file or database // obtain this info from file or database $perPage=2; // Number of entries to show per page. Resonable default is 10. $singlePage = FALSE; // script sets this to true if enteries fit onto a single page //################################################################################################## $numberOfPages = ceil($outCount/$perPage); // Total number of pages contained in our list if ($outCount <= $perPage){ // Do the list results fit on a single page $start = 0; // YES: first entery starts at array location 0 $end = $outCount - 1; // set last entry location, note -1 $singlePage = TRUE; // Set the single page indicator flag } else{ // NO: Use default or users page selection. if($pageNum == 0){ // Did the user select a page to display $pageNum = 1; // NO: we set a default to display first page } // To output a page from the list array we define page start and end based on user page number // This section is not required for the NAV bar but may be of use when outputing pages // $start = ($pageNum-1) * $perPage; // Defines any page's start boundary // if($outCount >= ($pageNum * $perPage)){ // Check to see if it is a full page // $end = ($pageNum * $perPage)-1; // Yes: Set end to page boundary end -1 // } // else{ // Not a full page end point is the total found // $end = $outCount - 1; // Set end accordingly again -1 // } } //################################################################################################## //################################################################################################## // If the list fitted a single page we can clean up and finish. // Again included for completeness if($singlePage){ // Was it a single page // include("footer.inc"); // YES: write footer, completes page echo "</body>"; // replaces footer for testing echo "</html>"; // replaces footer for testing exit; // nothing else to do } //################################################################################################## // The database contains multi-pages one of these pages will have been displayed either the deafult // or one a user selected. We now construct a navigation bar allowing other pages to be selected. // This nav bar is dynamic and adjusts to the number of pages found. Links are added until a predefined // maximum is reached. For example if I define a core group to have a maximum of three, links are // displayed in this sequence [1], [1] [2] and [1] [2][3]. // When the number of pages exceeds the core group’s capacity, additional links (I use chevrons) // transform the core group into a variable block for example <<<[4][5][6]>>> clicking on the left // chevrons slides the block to give <<<[1][2][3]>>> click on the right chevrons slides the block // to produce <<<[7][8][9]>>> . // When the number of pages exceeds three blocks, I hammer in fixed reference points. These are the // first and last page links added to either side of the chevrons; again automatically added // only when required. It is more difficult to explain than implement. //================================================================================================== $self = $_SERVER['PHP_SELF']; // This page's path used in link creation $numNavItems = 5; // Number of seperate links to display in nav bar menu // ie number of links in core group //### Dynamic nav bar creation. Setup // The nav bar is contained in a paragraph tag. We add to this string to build a complete nav bar. $gbListNav = "<p class='mpgozbnav' >"; // start of nav bar optional style class $numNavGroup = (INT)(($pageNum-1)/$numNavItems); // Calculate number of navigation groups // multiples of nav items (sliding blocks) if($numberOfPages > (($numNavGroup+1)*$numNavItems)){ // More than a full block of nav links required $ref = ($numNavGroup+1)*$numNavItems; // Yes: calculate pages catered for within } // a full group of links. else{ // No: could be equal or less than a full group of links $ref = $numberOfPages; // hence all the pages are catered for. } //Show page 1 link, back ref (chevrons) to previous page $back_ref = $numNavGroup*$numNavItems; // back navigation $forward_ref = (($numNavGroup+1)*$numNavItems)+1; // forward navigation if($numNavGroup >0){ // Add first page and back nav (chevrons)to menu $gbListNav .= "<a href=\"$self?page=1\">Page1 </a> "; // link $gbListNav .= "<a href=\"$self?page=$back_ref\"><<< </a>"; // chevrons } // Add page nav core group and square brackets or other separator. for($page = $numNavGroup*$numNavItems+1; $page < $ref+1; $page++){ $gbListNav .= "[<a href=\"$self?page=$page\">$page</a>]"; } if($numberOfPages >(($numNavGroup+1)*$numNavItems) ){ // Add last page and forward nav $gbListNav .= "<a href=\"$self?page=$forward_ref\">>>></a> "; //chevrons $gbListNav .= "<a href=\"$self?page=$numberOfPages\">Page $numberOfPages</a> "; } $gbListNav .= "</P><br class='mpozbr'>"; // complete the paragraph echo $gbListNav; // after all that hard work display it //######################################## END ##################################################### ?> </body> </html> Well have fun PS this site is worth a visit http://www.digioz.com/phpscripts.php
-
You may find this code of interest; I do admit it was written on the fly so forgive my use of variable names and inconstant comments. Think of it as a test piece I just hacked your code a little seemed a good base to start from. Save the code as index.php and play with some of the variables. I am no programmer hence never really understood the problem because there were no comments in your code. No reflection on you just my inability to understand the problem hence my little test piece may be an answer to an entirely different problem. <html> <head> <title>Test page</title> </head> <body> <?php $currentPage = $_GET['index']; // page number to be displayed in multi-pages $displayPage = $currentPage; // this page will be highlighted in link list $totalLines = 43; // stored in file or database $maxLinesPerPage = 2; // lines per page $maxLinks = 8; // maximum number of direct links to display // Need to know total number of pages based on data stored in either a file // or database. This data is split into lines for example 5 lines per page. // $totalLines = total lines in database or file // $maxLinesPerPage = lines per page to be displayed. // $currentPage = current page being displayed variable re-used for adjustment // $totalPages = total number of pages that can be displayed including the // last page that may be incomplete (partial page) $totalPages = intval($totalLines/$maxLinesPerPage); // Number of full pages if ($totalLines % $maxLinesPerPage){ // is there a remainder $totalPages = $totalPages + 1; // YES add partial page } if(!$currentPage){ // was there a page request $currentPage=0; // NO set the current page to 0 } if($totalPages < $maxLinks){ // there are only direct links to display $maxLinks = $totalPages; // set max links to number of pages } if($currentPage >($totalPages-$maxLinks)){ // can be the first link displayed $currentPage = $totalPages-$maxLinks+1; // reset accordingly } if(($totalPages - $maxLinks) > $maxLinks){ // exceeded hence display a previous link if($currentPage!=0){ // however not if it is the first page echo "<a href=\"$_SERVER[PHP_SELF]?index=".($currentPage -1)."\">[PREV]</a>\n"; } } for($i=$currentPage; $i!=($currentPage+$maxLinks); $i++){ //display link block if($i==$displayPage){ // set current page bold echo "<a href=\"$_SERVER[PHP_SELF]?index=".$i."\"><b>[$i]</b></a> \n"; } else{ // display links in block echo "<a href=\"$_SERVER[PHP_SELF]?index=".$i."\">[$i]</a> \n"; } } if(($totalPages-$currentPage) >= $maxLinks){ // exceeded hence display a next link echo "<a href=\"$_SERVER[PHP_SELF]?index=".($currentPage + $maxLinks)."\">[Next]</a>\n"; } ?> </body> </html> Well have fun
-
The above was a long ramble... I have continued this on UniCenter... and provided code for the batch files.... Page: http://center.uniformserver.com/applicatio...ortability.html Enjoy