Jump to content

Paper Tiger

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

Paper Tiger's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I read that Joomla uses PHP and is used frequently to produce websites with a content management system. Which is kind of what I am looking for. However I also see (on google) a number of companies offering "Dedicated Joomla Hosting". So - Does Joomla generate an entire website in PHP or does it require the host server to be running Joomla or either? If it requires a joomla hosting server does this mean any potential customer has to learn Joomla in order to use any site I create with it? I have a potential client that wants a simple catalogue website which will display images and descriptions of items from a searchable database with the ability for him to log in and add(with image upload) or delete items. eCommerce is not needed for this application. I'm new to PHP and I figure this is a good solid project I can get my teeth into that's not too complicated - It's a while since I've done anything like this and the last time I did it in ASP for a government website ( TIP - don't do a gov't website if you don't have to they give you a 300 page document of "guidelines" they'll assure you they're not "rules" but just you try not following one or two - it's soul destroying they love nothing better than to crush good ideas and creativity) I know I could do this in ASP though, I still have lots of code snippets I could use, I just want to do it in PHP,
  2. Well, I'm going to mark this one solved. Re-inventing the wheel using the suckerfish menus as a guide has taught me a bit and the problems I was having with the previous version have vanished. My server is still running on the same IP for the moment so if people want to have a look at my current version then they're welcome. I'm marking this as solved now.
  3. Thankyou, I shall reproduce what I have using the suckerfish examples and see how it goes.
  4. I knew I hadn't finished that post - I realise that the cyan areas are being caused by the <span> tag being shown differently in different browsers. Could someone explain the what and why of that? Also could someone explain the why of the Subject headers being smaller in IE than in Firefox and Chrome?
  5. Hello, hello, Little bit stuck with some drop down menus: In Chrome - my main browser - they behave exactly as expected. The menus are the same size as the Subject links and the X at the end of each link under subject one (which I added for no other reason than to see if I could) Appears neatly. In Mozilla Firefox - The dropdown menus are the right size, the same as their parent Subjects but in the first menu the X appears to be off the bottom of each link area and the bottom of the menu has a think Cyan strip. In IE - It's a complete mess, the menus are larger than their parent and the first menu, although it behaves correctly has a thin Cyan strip down the side and a thick one at the bottom. (Comparison with the other browsers leads me to believe that it's not actually the menus that are larger but rather the Subject headers that are smaller than the 140px they are supposed to be set to). I'm posting this here because I figured it's a CSS problem to do with different browser behaviours, I just don't know how to correct it or what I should be looking for. Here's a link to the page so you can see it: http://90.221.181.204/ (I've temporarily enabled forwarding of port 80 through my firewall to be sent to my Apache server) Here's the actual page code: It's just a small experiment page so I haven't bothered separating the JS and the CSS into different files. <html> <head> <style type="text/css"> <!-- #dropDownMenu { margin: 0; padding: 0; /*z-index: 30*/ } #dropDownMenu li { margin: 0; padding: 0; list-style: none; float: left; font-family:Arial, Helvetica, sans-serif; font-weight:bold; font-size:11px; } #dropDownMenu li a { display: block; margin: 0 1px 0 0; padding: 4px 10px; width: 120px; background-color:#6666CC; color: #FFFFFF; text-align: center; text-decoration: none; } #dropDownMenu li a:hover { background-color:#6699FF } #dropDownMenu div { width:138px; position:absolute; visibility: hidden; margin: 0; padding: 0; background-color:#00FFCC; border: 1px solid #6666CC } #dropDownMenu div span { visibility:hidden; float:right; } #dropDownMenu div a { position: relative; display: block; margin: 0; padding: 5px 10px; width: auto; white-space: nowrap; text-align: left; text-decoration: none; background-color:#CCCCFF; color: #5555BB; font-family:Arial, Helvetica, sans-serif; font-size:11px; } #dropDownMenu div a:hover { background-color:#6699FF; color: #FFFFFF } --> </style> <script type="text/javascript"> <!-- var timeout = 500; var closeTimer = 0; var dropDownMenuItem = 0; // open hidden layer function menuOpen(id) { // cancel close timer menuCancelCloseTimer(); // close old layer if(dropDownMenuItem) dropDownMenuItem.style.visibility = 'hidden'; // find the layer by the ID passed as the function parameter (eg m1 m2 m3) and show it dropDownMenuItem = document.getElementById(id); dropDownMenuItem.style.visibility = 'visible'; } // show the "X" at the end of each link function menuSpanShow(id){ theSpan=document.getElementById(id); theSpan.style.visibility="visible"; } //hide the "X" at the end of each link function menuSpanHide(id){ theSpan=document.getElementById(id); theSpan.style.visibility="hidden"; } // close shown layer function menuClose() { if(dropDownMenuItem) dropDownMenuItem.style.visibility = 'hidden'; } // go close timer function menuCloseTimer() { closeTimer = window.setTimeout(menuClose, timeout); } // cancel close timer function menuCancelCloseTimer() { if(closeTimer) { window.clearTimeout(closeTimer); closetimer = null; } } // close layer when click-out document.onclick = menuClose; --> </script> <title></title> </head> <body> <h2 style="color:#666666">Basic Dropdown Menus</h2> <ul id="dropDownMenu"> <li><a href="#" onmouseover="menuOpen('menu1')" onmouseout="menuCloseTimer()">Subject One</a> <div id="menu1" onmouseover="menuCancelCloseTimer()" onmouseout="menuCloseTimer()"> <a href="#" onMouseOver="menuSpanShow('a')" onMouseOut="menuSpanHide('a')">Anteaters <span id="a">X</span></a> <a href="#" onMouseOver="menuSpanShow('b')" onMouseOut="menuSpanHide('b')">Badgers <span id="b">X</span></a> <a href="#" onMouseOver="menuSpanShow('c')" onMouseOut="menuSpanHide('c')">Cats <span id="c">X</span></a> <a href="#" onMouseOver="menuSpanShow('d')" onMouseOut="menuSpanHide('d')">Dogs <span id="d">X</span></a> <a href="#" onMouseOver="menuSpanShow('e')" onMouseOut="menuSpanHide('e')">Elephants <span id="e">X</span></a> </div> </li> <li><a href="#" onmouseover="menuOpen('menu2')" onmouseout="menuCloseTimer()">Subject Two</a> <div id="menu2" onmouseover="menuCancelCloseTimer()" onmouseout="menuCloseTimer()"> <a href="#">Astronauts</a> <a href="#">Baseball Players</a> <a href="#">Commandos</a> <a href="#">Divers</a> </div> </li> <li><a href="#" onmouseover="menuOpen('menu3')" onmouseout="menuCloseTimer()">Subject Three</a> <div id="menu3" onmouseover="menuCancelCloseTimer()" onmouseout="menuCloseTimer()"> <a href="#">Nothing</a> <a href="#">Zip</a> <a href="#">Nada</a> <a href="#">begone</a> </div> </li> <li><a href="#">Subject Four</a></li> <li><a href="#">Subject Five</a></li> </ul> <div style="clear:both"></div> </body> </html>
  6. Hi, yes, I did use the MSI installer. However I am not seeing an add/remove php item control anywhere. Not in control panel nor in the start menu group for PHP. Checked php ini again and error_reporting = E_ALL & E_DEPRECATED, display_errors was Off so I changed that to On. Thanks for the tips
  7. I just had a minor revelation after posting - amazing how explaining what you've done can do that to you - I wondered if I had the right version of the extension. Turns out NO. I had a version not compatible with PHP 5.3 VC9 Just in case anyone else has the same problem then a dll compiled for PHP 5.3 VC9 can be found here: http://rapidshare.com/files/262914922/php_mssql.dll What I get now is a "Failed to connect" error message but at least that means that PHP and Apache and the MSSQL extension are playing nicely now. I'll chew over connecting to the database properly tomorrow and come back if I really can't work it out. Thanks for reading.
  8. Ok, they say the best place to start is at the beginning so I shall. Yesterday I decided I would install IIS. However I discovered that Vista Home Basic doesn't come with IIS so I went for Apache. Apache installed just fine and ran fine once I'd figured out that I needed to set "Listen 192.160.0.2:80" in the conf file. Then I decided to install php. I followed the instructions and PHP works fine in Apache - phpinfo() tells me lots of interesting things that I haven't fully read yet. Seeing as I already had MS SQL Sever 2008 Express installed I decided to use this instead of installing MySQL as well. I created a new database with a single table for testing purposes and created a login called "testUser" with password "testPassword" and then created an account for the testDB linked to the testUser login I had created. so now I had my server name "./SQLEXPRESS" my username "testUser" and the password "testPassword" all set up in my php file to test the database connection. $dbuser="testUser"; $dbpass="testPassword"; $dbname="test"; //the name of the database echo "Attempting Connect<br />"; $chandle = mssql_connect(".\SQLEXPRESS", $dbUser); if (!$chandle) {die('Something went wrong while connecting to MSSQL');} echo "<p>Got Connection!</p>"; That's the code I'm using to simply test the connection. I found that the mssql_connect() function was doing nothing, not even an error code. I found out that for some reason my installation of php had none of the MSSQL extensions installed so I located the latest versions of ntwdblib.dll and php_mssql.dll and changed php.ini to include the lines: [php_MSSQL] extension=php_mssql.dll ntwdlblib.dll is sitting in my system32 directory and php_mssql.dll is in the "c:\php\ext" however this time when I restarted Apache it simply crashed. No error message, I just g0t the windows message saying that Apache had encountered an error and had to close. If I comment out the line which includes the mssql extension in php.ini then Apache starts up fine. This is the tail of my error.log in Apache *here "extension=php_mssql.dll" in php.ini is commented out - server starts fine* Starting the Apache2.2 service The Apache2.2 service is running. pid file C:/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? Starting the Apache2.2 service The Apache2.2 service is running. pid file C:/Apache2.2/logs/httpd.pid overwritten -- Unclean shutdown of previous Apache run? [Mon Feb 01 23:50:41 2010] [notice] Apache/2.2.14 (Win32) PHP/5.3.1 configured -- resuming normal operations [Mon Feb 01 23:50:41 2010] [notice] Server built: Sep 28 2009 22:41:08 [Mon Feb 01 23:50:41 2010] [notice] Parent: Created child process 3316 [Mon Feb 01 23:50:42 2010] [notice] Child 3316: Child process is running [Mon Feb 01 23:50:42 2010] [notice] Child 3316: Acquired the start mutex. [Mon Feb 01 23:50:42 2010] [notice] Child 3316: Starting 64 worker threads. [Mon Feb 01 23:50:42 2010] [notice] Child 3316: Starting thread to listen on port 80. *Apache is runing - I put "extension=php_mssql.dll" back into php.ini and issue the Apache restart command* [Mon Feb 01 23:52:25 2010] [notice] Parent: Received restart signal -- Restarting the server. [Mon Feb 01 23:52:25 2010] [notice] Child 3316: Exit event signaled. Child process is ending. [Mon Feb 01 23:52:26 2010] [notice] Child 3316: Released the start mutex [Mon Feb 01 23:52:27 2010] [notice] Child 3316: All worker threads have exited. [Mon Feb 01 23:52:27 2010] [notice] Child 3316: Child process is exiting [code] As you can see there are no further messages of any kind when the server attempts to restart, it simply crashes. I can't be sure if this is a problem with Apache or PHP or the extension dll, I'm inclined to suspect it's a faulty php_mssql.dll but if anyone has spotted anything obvious to the more learned eye please let me know. Not stressed yet though just mildly annoyed.
  9. Hello all, I just found this site looking while looking for general php help. I'm new to php (since yesterday) but not entirely new to Web development. I'm a computer science graduate and have worked a year in Web Dev for the government here in the UK but I've been out of it (and programming in general) for the last erm.. 7 years so I decided it was high time I took a new look and relearned some of my skills. Currently I'm trying to set up SQL Server Express to play nicely with Apache and PHP. But this is an introductions section not a help section so I'll leave it at that.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.