Jump to content

wildteen88

Staff Alumni
  • Posts

    10,480
  • Joined

  • Last visited

    Never

Everything posted by wildteen88

  1. Yes, check the package manager that comes with your linux distribution to install Apache, PHP and MySQL Or use XAMPP.
  2. Have a look into array_slice
  3. You'll need to use a Highlighter service which will highlight your code. You should then be able to copy the highlighted text straight into Word. Here's such a service: http://www.phphighlight.com/
  4. I think this line: if(in_array($item,$this->_locations)){ $this->checkArray(); } Should be: if(in_array($item,$this->_locations)){ return $this->checkArray(); }
  5. The problem is the .doc is not just plain text. So you cant do a straight forward word count.
  6. What are you archiving to do? Just read the contents of the .doc and display it? If so just open it as you would with any file, eg $content = file_get_contents('path/to/file.doc'); However if you're wanting to modify its contents then this can only be done by COM AFAIK
  7. I think you'll need group the results by the matching column. Eg SELECT q.qid, q.cid, q.status, c.name, c.company FROM quote AS q INNER JOIN customers AS c USING (cid) WHERE q.cid = 128 GROUP BY q.cid Moved to MySQL Help.
  8. Remove position:relative; From your CSS for your body selector
  9. Yes, always make sure you go to http://localhost whenever you're executing your PHP scripts
  10. I had a similar issue to this, however I solved it by using the mod_userdir module.It allowed me to use the following url: http://11.22.33.44/~sitename/ to access whatever site I had setup in my virtualhosts when using an IP address to access the Server.
  11. Wrap the HTML for your 'get a quote' banner in a div, eg <div id="quote-strip"><a href="quote.html"><img class="QuoteTop" src="images/getaquote.gif" width="129" height="129" /></a> </div> Then apply the following CSS: #quote-strip { position: absolute; top: 0px; left: 0px; display: inline; }
  12. Not it wont! It'll only include the output from cookie.php. It wont include the PHP code.
  13. I assume you're referring to Zend Core about wasting money? From what I have read Zend Core is free to download/use. However its the Support Subscription that you have to pay for which is an Optional purchase.
  14. That'll be your problem then. PHP is not reading the php.ini for your WAMP installation. Instead its using the php.ini for Zend Core. Just looked up on Zend Core. It appears Zends Core installs the same AMP stack as WAMP. Installing multiple instances of the AMP stack can cause problems such as this.
  15. Always apply default margin/padding to block level elements. Different Browsers use different padding/margin values for block level elements. .loginform { margin: 0; padding: 0; text-align: right; } That makes no sense what so ever and does contribute the problem in hand.
  16. When using isset never do: $var = $_POST['var']; if(isset($var)) { // do something } As that will always evaluate to true. You should do this instead: if(isset($_POST['var']) && !empty($_POST['var'])) { $var = $_POST['var']; // do something }
  17. Can you post a screenshot of the problems you're having and attach Apaches configuration too.
  18. Apply display: inline to your H1 tags. eg #content h1 { display: inline; padding: 0; margin:0; text-decoration: underline; }
  19. The way I see it the OP wants to keep the tags in but not allow a user to edit them. As they may not know how to edit HTML. This is the job of an WYSIWYG editor as I suggested.
  20. Pardon? Not understanding you. Can you post an example of what you mean.
  21. for what you're trying to do you'll need to use a WYSIWYG editor. For such editors look into TinyMCE and/or FCKEditor
  22. I have tested your code and no syntax errors arose. However what I would suggest you to do is to save that huge block of HTML to en external file (such as contactus_form.html) and then change your form_display function to just function form_display() { $form = file_get_contents('contactus.html'); echo $form; }
  23. It may be helpful if you included the error message produced.
  24. Umm, Instresting use the following instead: $str = preg_replace ('/\[size=([0-9]+)\](.*?)\[\/size\]/is', '<span style="font-size: $1px">$2</span>', $str); Yes change [0-9]+ to [0-30]
  25. Enable the mysql extension via WAMPs Control Panel. To do so Click on WAMP's taskbar icon (looks like a speedometer) then there should a be sub menu for enabling/disabling PHP extensions. Ensure php_mysql is checked. Restart WAMP after making any changes. Also this has nothing to do with PHPMyAdmin's configuration.
×
×
  • 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.