Jump to content

Gast

Members
  • Posts

    131
  • Joined

  • Last visited

    Never

Everything posted by Gast

  1. That is good, I was worried something was seriously wrong with AJAXFreaks. I am am beginning to prefer SMF over Invision as I havent really used it before. Are you planning on building it within the website like it was before, Eric?
  2. Like vic-wdd said, you need to use & in the code instead of & for it to be valid XHTML. Also, if you are writing in JavaScript that directs to a URL like "http://www.example.com/page.php?act=test&something=this", for example you cannot use the & in the JS code, it won't work, so you must use a normal ampersand even if it won't validate.
  3. If it is a button (as in an input button): [code]<input type="button" value="Roster" onclick="document.getElementById('iframeId').src='roster.htm'" />[/code] Where 'iframeId' is the ID of the iframe you want to change.
  4. I think this is a bug with IE, not sure how it displays with Firefox. You cannot set the flash file as a background image, so the only thing I can suggest is to hide the flash file when you make the javascript menu appear.
  5. Does anyone know where I can find a script that will highlight PHP code actually through PHP. I am not that good at regular expressions and I have seen these done before? TIA
  6. [!--quoteo(post=354566:date=Mar 13 2006, 05:00 PM:name=slpwkr)--][div class=\'quotetop\']QUOTE(slpwkr @ Mar 13 2006, 05:00 PM) [snapback]354566[/snapback][/div][div class=\'quotemain\'][!--quotec--] is it possible to read a file starting from the bottom? thanx! [/quote] You could try this: [code]<?php // Read entire file into variable $file = file_get_contents("path/to/your/file.php"); // Split each line into a value of $lines array $lines = explode('\n', $file); // Count the number of lines $count = count($lines); // Create empty variable $temp = NULL; // Read each line starting from the bottom into a variable for($i=$count; $i==0; $i--) {     $temp .= $lines[$i] . "<br />"; } // Echo values echo $temp; ?>[/code] That code might need some ajusting... :)
  7. [!--quoteo(post=354566:date=Mar 13 2006, 05:00 PM:name=slpwkr)--][div class=\'quotetop\']QUOTE(slpwkr @ Mar 13 2006, 05:00 PM) [snapback]354566[/snapback][/div][div class=\'quotemain\'][!--quotec--] is it possible to read a file starting from the bottom? thanx! [/quote] You could try this: [code]<?php // Read entire file into variable $file = file_get_contents("path/to/your/file.php"); // Split each line into a value of $lines array $lines = explode('\n', $file); // Count the number of lines $count = count($lines); // Create empty variable $temp = NULL; // Read each line starting from the bottom into a variable for($i=$count; $i==0; $i--) {     $temp .= $lines[$i] . "<br />"; } // Echo values echo $temp; ?>[/code] That code might need some ajusting... :)
  8. Simply do this: [code]$date = date("d/m/y "); $date .= date("G") - 8; $date .= date(":i:s"); echo $date;[/code]
  9. *bump* has no one got any idea why?
  10. Yes I forgot to add that to the list, but I have done that. This problem is linked with this topic: [a href=\"http://www.phpfreaks.com/forums/index.php?showtopic=88176\" target=\"_blank\"]http://www.phpfreaks.com/forums/index.php?showtopic=88176[/a], where some of the settings in the php.ini file will not update. If you could help there, it would be greatly appreciated.
  11. Sorry to bump again, but this is a large problem that I have been working on all day. I have discovered that some of the settings are not reading properly, ini_get() and phpinfo() display different from what is in the php.ini file. I know it is the correct file as the location is correct listed on the phpinfo(), and some settings such as "memory_limit" do change. Thanks again.
  12. [!--quoteo(post=354144:date=Mar 12 2006, 10:55 AM:name=pneudralics)--][div class=\'quotetop\']QUOTE(pneudralics @ Mar 12 2006, 10:55 AM) [snapback]354144[/snapback][/div][div class=\'quotemain\'][!--quotec--] I just wanted to know what the % is for. It's in a table and when you view it it shows the word TITLE. [code] <table style="width:100%;" class="mainmenu5" cellspacing="0" cellpadding="4">             <tr>             <td style="font-size:8pt;">                 <b>{%TITLE%}</b>             </td>             </tr>             </table>[/code] [/quote] Looks like a templating system. Is a script you have downloaded? If it is, then there will be a PHP that searches through your html files and replaces the text like above with actual content.
  13. I am trying to update some of the settings in my php.ini file, however certain things will not update. Settings such as "memory_limit" will update fine after restarting Apache, but when I try and update "upload_max_filesize" or "post_max_size", they will not update at all and will only stay as the default value. Does anyone know why?
  14. Ok I have a script that will be used eventually to upload music and videos. I have got this working brilliantly, have tried with some songs and found that it only accepts files under 2MB. OK, I thought, I will change the settings... However I have spent hours searching for a solution and all things say the same things, all of which I have tried. I tried the following things:[list][*]Added a hidden field before the file field called "MAX_FILE_SIZE". I set this to 26214400 (25MB).[*]Changed the "max_execution_time" from 30 to 300 in the php.ini file.[*]Changed the "max_input_time" from 60 to 600 in the php.ini file.[*]Changed the "memory_limit" from 8M to 128M in the php.ini file.[*]Changed the "post_max_size" from 2M to 2048M in the php.ini file. This is what I thought would solve it![*]Made sure "file_uploads" setting is set to on.[*]Changed the "upload_max_filesize" from 2M to 2048M in the php.ini file.[*]Added the "LimitRequestBody" setting in the Apache httpd.conf file to 2147483648 (2GB)[/list]Does anyone here know why this will not work? I desperately need to get this working. I have full access to all configuration files is necessary. TIA Niall
  15. [!--quoteo(post=322000:date=Nov 25 2005, 06:51 PM:name=executive)--][div class=\'quotetop\']QUOTE(executive @ Nov 25 2005, 06:51 PM) 322000[/snapback][/div][div class=\'quotemain\'][!--quotec--] Well obviously AJAX is great, speeds things up and is very cool to play with, and make great web applications that run smoother, however one of the reasons i say it won't be "the next boom" is because its javascript. SE don't read Javascript, so you can't make a whole site out of AJAX. Only application type things can be made AJAX, such as a domain name look up that i made a while back. I mean its great everyone knows that, however, don't get so carried away with it... Seriously, you can barely make about 3 different ways of an AJAX engine. The reason i say this is because it isn't a very broad subject to be called a "next boom", something like PHP is! Well I think making an entire site out of AJAX wouldnt really be a good idea, it would be purely for adding applications to your website and implementing XML docs, etc. to your website. However virtually anything that needs a page load could be improved with the use AJAX.
  16. Well I am glad to see the green looking good. Like SA said, looks a bit strange at the moment without the logo finished, but it will look good soon. Nice to see the good use of find and replace with PHP and AJAX! Let us know any updates, Eric.
  17. This is just something that I am wondering about in AJAX. I know how to change stuff dynamically using AJAX without reloading the page, but I understand that you can get stuff to change dynamically automatically without you having to do anything. As far as I know you have to trigger on one of the javascript event handlers (onload, onclick, onmouseover, etc.) So how can this happen? Any ideas?
  18. Don't know if Eric has noticed this yet, but I am sure he will. BTW, guys. Me and obsidian are working on a project and are thinking of using AJAX. We have already used some stuff, but one of the things we are thinking of doing is a sort of shopping system (it isnt an e-commerce website, btw) with ajax that will fade out products you cannot afford and add to your cart, update your money, all without reloading the page.
  19. BTW, Eric, I know you said that you could just copy PHPFreaks, but if you are willing to let people help with the design I would be happy to help. Also, wouldnt it be a good idea to use some AJAX on the actual site?
  20. I recommend you do. It can make your life a lot easier, espeically when coding in PHP. Because of colour-coded syntax's it makes it a lot easier to find errors and writing code. *snip* by ober - I'm probably over my bounds here, but we shouldn't be encouraging that... mainly for legal reasons.
  21. Probably because FP isnt that popular itself. About the DW generated code: you can always tell when a site is built in dreamweaver because in the source you see the Javascript function names of "MM_jumpMenu", etc.
  22. Like others have said, I have only used Dreamweaver MX. However, I don't use that anymore...I used Dreamweaver 8!
×
×
  • 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.