Jump to content

ray_nl

Members
  • Posts

    21
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

ray_nl's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. installed an web application in my server but after everything, when i tried to goto index.php im getting this error: Fatal error: Class 'Engine_IP' not found in /var/www/html/application/modules/User/Model/DbTable/Online.php on line 33 can someone please help? how do i fix this? thanks! my website was working fine, till today
  2. bump
  3. ok now i got the website to work be removing this line " Options +FollowSymLinks" and i had to delete another .htaccess file for the website to display the theme, but now images dont display such as the profile image etc.. this is the .htaccess i deleted # $Id: .htaccess deny from all <Files ~ "index.php|css.php|mobile.php|lite.php|offline.html|maintenance.html"> order allow,deny allow from all </Files> <FilesMatch "\.(avi|flv|mov|wmv|wma|mp3|mp4|m4a|mkv|swf|pdf|doc|ppt|ico|jpg|jpeg|png|gif|js|css)$"> <IfModule mod_expires.c> ExpiresActive On ExpiresDefault A29030400 <IfModule mod_headers.c> Header append Cache-Control "public" </IfModule> </IfModule> <IfModule !mod_expires.c> <IfModule mod_headers.c> Header set Expires "Sun, 1 Jan 2012 00:00:00 GMT" Header append Cache-Control "max-age=172800, public" </IfModule> </IfModule> </FilesMatch>
  4. I get a internal server error when trying to access my website. But if I delete my .htaccess file I can access the site but the images don't display. Can anyone help? here is the .htaccess file: # $Id: .htaccess <IfModule mod_rewrite.c> Options +FollowSymLinks RewriteEngine On # Get rid of index.php RewriteCond %{REQUEST_URI} /index\.php RewriteRule (.*) index.php?rewrite=2 [L,QSA] # Rewrite all directory-looking urls RewriteCond %{REQUEST_URI} /$ RewriteRule (.*) index.php?rewrite=1 [L,QSA] # Try to route missing files RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} public\/ [OR] RewriteCond %{REQUEST_FILENAME} \.(jpg|gif|png|ico|flv|htm|html|php|css|js)$ RewriteRule . - [L] # If the file doesn't exist, rewrite to index RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?rewrite=1 [L,QSA] </IfModule> # sends requests /index.php/path/to/module/ to "index.php" # AcceptPathInfo On # @todo This may not be effective in some cases FileETag Size
  5. ray_nl

    PHP API?

    Sorry if this is in the wrong section dont know where it suppose to go. I am having trouble understanding about API (sry if it sounds too dumb). Can anyone explain what API really does? e.g. if i have a php website with features like video, and the user sends a request to the video and the video sends the data back to the user, is that what the API is? sorry im kinda new to php i just couldnt find any answer in google. thanks in advance.
  6. Thank you.. I'll have a look into that. Thanks for the help tho. This looks pretty informative and helpful: http://www.learnerassociates.net/dissthes/
  7. Lol yea I dont know much about writing a good paper for dissertation.. I do know the subject but, I need to to provide a brief from those subject to my tutor or else she aint going to be my supervisor!
  8. Hi, Yes I am suppose to cover the concepts in internet technology and cisco communications. Those are the bits that falls into my dissertation. Honestly tho I am really stressed out because I got no clue what I am going to do lol this is really new to me (I mean the dissertaion thing).
  9. Hi, I have been given my dissertation last week and its "Network Security". I have told to come with a title, topic for my dissertation but I got no clue where to start because this is my first time doing something like this. I am really intrested in knowing if anyone know or watched the movie "Die Hard: 4"? if so do you know what Justin Long does in that movie? I know he does network security but what kinda security base does he do? btw I only got 2 days to come up with a title and topic/description.. if anyone of you could help me I would appreciate it. Thanks for helping!
  10. lol.. ok but can you help me with this then? is there a php code that i can use?
  11. sorry im not really good at java or php.. is there some sort of a code that i can use to validate the submit button and still have the confirmation dialog box pop up when its all filled out and submitted?
  12. if you look into my code all the fields are javascript validated.. so.. javascript validation
  13. Hi, I am trying to add a validation to the submit button so that when someone clicks submit, the form fields must be filled in. But.. the problem is tho that I have already assigned a cofirmation dialog box so that when someone clicks on the submit a confirmation dialog box appears asking you to confirm the details.. how can I make it so that when someone clicks submit all the fields must be filled in? here is my code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> <head> <link rel="stylesheet" type="text/css" href="travel.css"/> <script type="text/javascript"> <!-- function confirmation() { var answer = confirm("Confirm Booking?") if (answer){ //I tried the below code to validate the submit button before processing, it works but the confirmation dialog box doesnt appear for some reason.// //formvalidation(car_rental);return false(); {// alert("Booking Confirmed") document.booking.submit(); } else{ window.location = "Car.html"; } } //--> </script> <title>Travel Air Home Page</title> <script language="JavaScript" src="gen_validatorv31.js" type="text/javascript"></script> <SCRIPT LANGUAGE="JavaScript" SRC="CalendarPopup.js"></SCRIPT> <SCRIPT LANGUAGE="JavaScript"> var cal = new CalendarPopup(); </SCRIPT> </head> </head> <body> <FORM NAME="car_rental"> <div align="center"> <div id="header"> </div> <div id="topnav"> <ul> <li><a href="Home.html">Home</a></li> <li><a href="Destinations.html">Destinations</a></li> <li><a href="Flights.html">Flights</a></li> <li><a href="car.html">Cars</a></li> <li><a href="Hotels.html">Hotels</a></li> <li><a href="Insurance.html">Insurance</a></li> <li><a href="Build your own.html">Build your own</a></li> <li><a href="Special Offers.html">Special Offers</a></li> <li><a href="Reviews.html">Reviews</a></li> <li><a href="Forum.html">Forum</a></li> <li><a href="Log.html">Log-In/Register</a></li> </ul> </div> <div id="navigation"> <div id="Welcome"> <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash4/cabs/swflash.cab#version=4,0,0,0" id="name" width="490" height="560"> <param name="movie" value="flash/header.swf"> <param name="quality" value="high"> <param name="wmode" value="transparent"> <embed name="name" src="flash/header.swf" quality="high" wmode="transparent" width="490" height="160" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi? P1_Prod_Version=ShockwaveFlash"> </embed> </object> <hr/> <hr/> <div id="Why"> <H2>Reserve Online</H2> <body> <FORM METHOD="POST" ACTION="booking_process.php" name="booking" > <div align="center"> <input type="HIDDEN" name="first_pass" value="no"> <table> <td colspan="2"><b>Customer Information</b></td> </tr> <tr> <td>First Name </td><td><input type="text" size="15" name="first_name"" maxlength="40"></td> </tr> <tr> <td>Last Name </td><td><input type="text" size="20" name="last_name" maxlength="40"></td> </tr> <tr> <td>Email </td><td><input type="text" size="20" name="email" maxlength="40"></td> </tr> <tr> <td>Address</td><td><input type="text" size="30" name="address" maxlength="80"></td> </tr> <tr> <td>Contact Number</td><td><input type="text" size="18" name="contact_no" maxlength="20"></td> </tr> <tr> <td colspan="2"> </td> </tr> <script language="JavaScript" type="text/javascript"> var frmvalidator = new Validator("car_rental"); frmvalidator.addValidation("first_name","req","Please enter your First Name"); frmvalidator.addValidation("first_name","maxlen=20", "Max length for FirstName is 20"); frmvalidator.addValidation("first_name","alpha"); frmvalidator.addValidation("last_name","req","Please enter your Last Name"); frmvalidator.addValidation("last_name","maxlen=20"); frmvalidator.addValidation("email","maxlen=50"); frmvalidator.addValidation("email","req","Please enter your Email"); frmvalidator.addValidation("email","email"); frmvalidator.addValidation("address","maxlen=50"); frmvalidator.addValidation("address","req","Please enter your Address"); frmvalidator.addValidation("contact_no","maxlen=50"); frmvalidator.addValidation("contact_no","req","Please enter your Contact Number"); frmvalidator.addValidation("contact_no","num"); </script> </table> <hr/> <hr/> <table> <div id="Why"> <tr> <td colspan="2"><b>Vehicle Reservation</b></td> </tr> <tr> <td>Vehicle Type</td><td>Number of Units</td> </tr> <tr> <td>Car</td><td><select name="units_car"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Pickup</td><td><select name="units_pickup"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Van</td><td><select name="units_van"> <option value="0">0 <option value="1">1 <option value="2">2 <option value="3">3 <option value="4">4 <option value="5">5 </select> </td> </tr> <tr> <td>Reservation Date </td><td> <INPUT TYPE="text" NAME="date1" VALUE="" SIZE=25> <A HREF="Car.html" onClick="cal.select(document.forms['car_rental'].date1,'anchor1','MM/dd/yyyy'); return false;" NAME="anchor1" ID="anchor1">Select a date</A> </td> </tr> </div> </table> <table> <tr> <td>Inquiries/Trip Details </td><td> </td> </tr> <tr> <td colspan="2"><textarea name="inquiries" cols="42" rows="7"></textarea></td> </tr> <tr> <td><input type="submit" onclick="confirmation()"> <input type="reset" value="clear"></td> </tr> </table> </form> </div> <hr/> <div id="loglink"> <H2>New to Travel Air?</H2> By registering with Travel Air you gain several benefits. Once registered you can use the forums, leave reviews and start building your dream holiday. All the information that is required is your name and email address. You can choose to receive free newsletters telling of new deals! Follow this link to register or if you are a member log in </div> </div> </body </html>
  14. now i keep getting a form validation error i attached a picture it says "could not get form object myform" here is the form validation code: <script language="JavaScript" type="text/javascript"> var frmvalidator = new Validator("myform"); frmvalidator.addValidation("first_name","req","Please enter your First Name"); frmvalidator.addValidation("first_name","maxlen=20", "Max length for FirstName is 20"); frmvalidator.addValidation("first_name","alpha"); frmvalidator.addValidation("last_name","req","Please enter your Last Name"); frmvalidator.addValidation("last_name","maxlen=20"); frmvalidator.addValidation("email","maxlen=50"); frmvalidator.addValidation("email","req","Please enter your Email"); frmvalidator.addValidation("email","email"); frmvalidator.addValidation("address","maxlen=50"); frmvalidator.addValidation("address","req","Please enter your Address"); frmvalidator.addValidation("contact_no","maxlen=50"); frmvalidator.addValidation("contact_no","req","Please enter your Contact Number"); frmvalidator.addValidation("contact_no","num"); [attachment deleted by admin]
  15. omg! dude ur a genious!!!!!!!!! i cant thank you enough for helping me out!! thanks alot man!!!
×
×
  • 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.