Jump to content

Search the Community

Showing results for tags 'page'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • W3Schools
    • General
    • Suggestions
    • Critiques
  • HTML Forums
    • HTML/XHTML
    • CSS
  • Browser Scripting
    • JavaScript
    • VBScript
  • Server Scripting
    • Web Servers
    • Version Control
    • SQL
    • ASP
    • PHP
    • .NET
    • ColdFusion
    • Java/JSP/J2EE
    • CGI
  • XML Forums
    • XML
    • XSLT/XSL-FO
    • Schema
    • Web Services
  • Multimedia
    • Multimedia
    • FLASH

Calendars

  • Community Calendar

Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Languages

Found 16 results

  1. I made a piece of code to check wheter a url page exists. This is a part of the get_headers routine I'm using: <?php // check with checkdnsrr // validate with FILTER_VALIDATE_URL /////////////////////////////////////////////////// // get_headers part $array = get_headers($url); var_dump($array); $string = $array[0]; if( strpos($string,"200") || strpos($string,"301") || strpos($string,"302") || strpos($string,"403") ) { var_dump($url); } else { echo '<br><br> this site is insecure<br>'; echo '<br> use http instead of https <br><br>'; } } ?> The problem is that some websites configure their server either http or https but this does not mean that there is page content. What can be used to determine if there is an index.php or an index.html or any alternative indexpage used? The things I'm considering are: file_exists, file_get_contents or glob() on the other hand var_dump($array) gives in several cases the parameter: Content Type. The value is txt/html . Can this be used to see if there is a page? What would you recommend and can you give an example how this is used?
  2. Here I can upload videos successfully into database and videos are saving in appropriate folder named "uploaded". As I mentioned in question, once after uploading the video, if I refresh the browser the previously uploaded video is going saving in my database. Another question is, if I click on the video(displayed name in myvideo.php), video is not going to display instead I am getting "Object Not Found" error. I request you people to give me solutions to solve these problems. Below I am posting my code: myvideo.php: <div class="content"><div class="card"><div class="header" id="stand-fix" style="border-bottom: 1px solid #E1E1E1;"><?phpif(isset($_POST['submit'])){// $conn = mysqli_connect("localhost", "root", "", "videos") or die(mysqli_error());$name = (isset($_FILES['file']['name']) ? $_FILES['file']['name'] : '');$temp = (isset($_FILES['file']['tmp_name']) ? $_FILES['file']['tmp_name'] : '');move_uploaded_file($temp, "uploaded/".$name);$url = "http://localhost/xampp/htdocs/VS/uploaded/$name";mysqli_query($database, "INSERT INTO video VALUE ('','$name','$url')");}?><form action="myvideo.php" method="post" enctype="multipart/form-data"><div class="row"><div class="col-md-7"><h4 class="title">My Videos</h4></div><div class="col-md-3"><input type="file" name="file" class="btn btn-primary" style="font-size: 15px;"><br /></div><div class="col-md-2"><input type="submit" name="submit" class="btn btn-primary pull-right" style="font-size: 15px;" value="Upload"></div></div></form><?phpif(isset($_POST['submit'])){echo '<script language="javascript">';echo 'alert("Your video has been successfully uploaded.")';echo "window.location.href='dashboard.php'";echo '</script>';}?><hr width="50%"></div><div class="content" style="height: 30em; direction: ltr; overflow: auto;"><div class="row" style="margin-left:4em;" style="direction: rtl;"><?php$database = mysqli_connect("localhost", "root", "", "videos") or die(mysqli_error());$query = mysqli_query($database, "SELECT * FROM video");while($row=mysqli_fetch_assoc($query)){$id = $row['id'];$name = $row['name'];$url = $row['url'];echo "<p style='margin:0.5em;'><a href='watch.php?id=$id' style='color:red;'>$id&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$name</a></p><br />";echo "<embed src='.$id.$url.'><video width='200' height='200' controls></video></embed>";}?></div></div></div></div> watch.php<?php$conn = mysqli_connect("localhost", "root", "", "videos") or die(mysqli_error());if(isset($_GET['id'])){$id = $_GET['id'];$query = mysqli_query($conn, "SELECT * FROM video WHERE id='$id'");while($row=mysqli_fetch_assoc($query)){$name = $row['name'];$url = $row['url'];}echo "<p style='font-size:20px;'><center>You are watching ".$name."</center></p><br /><embed src='.$url.'><video width='600' height='400' controls></video></embed>";}else{echo "Error!";}?>
  3. Page by page quiz HELP

    So, I'm really stuck. I know how to make a quiz just fine, with radio buttons, go to the next page, etc., but for our project we have to make the quiz go from one page to the next and hold the answers provided, and then at the end we need to output the result by combining the answers. Essentially it's a personality quiz type thing, rather than a scoring one. My idea is to add 1 each time an answer corresponding to that personality is given, but how to I transfer those values from one page to the next?
  4. Is there a tool to find a webpage's location on a server? I am not able to locate the page www.parkinson.org/blog (which itself gets redirected from www.parkinson.org/find-help/blog). Any recommendations appreciated.
  5. Hello, I'm currently working on a school project involving a bunch of coding in html, css and js. The project's purpose is to basically build a website containing a 'quiz' system. I've already managed to successfully create one, but I'm not yet fully satisfied with it. The quiz contains 21 questions in total, and each question has their own html page; 21 pages in total. Now I have been using a java code to call a random page when a button is pressed on the home website (index.html). It works properly, but it often redirects me to the same page every time I click the button. I want to prevent it from visiting the same page whenever the button is pressed, until all 21 pages have been visited, at which point it resets the data and starts over. I have been looking for a kind of script for this, but can't seem to find it. My only option would be to ask for help, which is why I'm here. This is the code I am currently using for the page randomizer: var howMany = 20; // max number of items listed below var page = new Array(howMany+1); page[0]="spelopdracht1.html"; page[1]="spelopdracht2.html"; page[2]="spelopdracht3.html"; page[3]="spelopdracht4.html"; page[4]="spelopdracht5.html"; page[5]="spelopdracht6.html"; page[6]="spelopdracht7.html"; page[7]="spelopdracht8.html"; page[8]="spelopdracht9.html"; page[9]="spelopdracht10.html"; page[10]="spelopdracht11.html"; page[11]="spelopdracht12.html"; page[12]="spelopdracht13.html"; page[13]="spelopdracht14.html"; page[14]="spelopdracht15.html"; page[15]="spelopdracht16.html"; page[16]="spelopdracht17.html"; page[17]="spelopdracht18.html"; page[18]="spelopdracht19.html"; page[19]="spelopdracht20.html"; page[20]="spelopdracht21.html"; function rndnumber(){ var randscript = -1; while (randscript < 0 || randscript > howMany || isNaN(randscript)){ randscript = parseInt(Math.random()*(howMany+1)); } return randscript; } quo = rndnumber(); quox = page[quo]; window.location=(quox); } } If there is anything you can do, please let me know. I would really appreciate your help! ^.^
  6. Think i have a easy issue for all people here. I received some help from stackoverflow and now I need the final adjustment. I would like to change the width on a specific page in Wordpress. I'm using the theme Touchfolio: http://dimsemenov.com/themes/touchfolio/about.html my page: http://karimphoto.com/about/ This is the code I'm using now to adjust the width: .page-id-247 .hentry, .page-id-247 .aligncenter { max-width: 700px !important; The only problem I have now after resizing the width is that the image won't resize any longer. Same problem on both computer and mobile devise. Any input on this? Thanks,
  7. Own Page in Wordpress

    I want to make a page where on each **tags** :My page should look alike : http://www.missmalini.com/aamir-khan-2/Above page is coming from http://www.missmalini.com/celebrity-fan-pages/this are categories with **Tags** :I also know that the patten is likeBig Image is First ( **First** latest Post of resp. tag )... then 4 image with title are from **Second** post )and then only title after **sixth** post .. its means they have **divide latest 10-12 post** with this structure..2 } if u see on top ( above Ten Latest Aamir Khan Updates ) there is "**Aamir Khan Full Bio** " which is ***different*** for resp. **tags**.3 } If Scroll Down there is Photos and Videos of resp. celeb ( which is tags or may be category wise )Hence how i can do this ( means how i can make such Own Custom Page code ) can any one let me know.
  8. Center page

    My page was centered in the web page, but now it isn't anymore.. this is my code html: <!doctype html><html><head><link href="../css/style.css" rel="stylesheet" type="text/css"/><meta charset="utf-8"><title>Events</title></head><body><div id="page"><div id="logo"><img src="../images/ETlogo.jpg"></div><header><h1> Latest Electric Car News </h1></header><nav><ul><li><a href="home.html">Home</a></li><li><a href="Staff.html">Staff</a></li><li><a href="Subscription.html">Subscription</a></li><li><a href="Events.html" class="current">Events</a></li><li><a href="News.html">News</a></li><li><a href="Sitemap.html">Sitemap</a></li></ul></nav><article><h1>Events</h1></article><footer>Sitemap</footer></div></body></html> CSS: @charset "UTF-8";/* CSS Document */##page{ margin-left:auto; margin-right:auto; width:1024px;}li{ list-style-type:none;}#logo{ width:203px; height:183px; display:inline-block; text-align:center; border-right:solid 1px #999999; position:fixed;}header{ background-color:#FFF; width:100%; width:600px; height:85px; float:left; padding-top:30px; padding-left:20px; margin-left:203px; border-left:solid 1px #999999; }p{ font-size:100%; font-family:Georgia, "Times New Roman", Times, serif; }h1{ font-size:30px; font-family:Georgia, "Times New Roman", Times, serif; color:#B90000}h4{ font-family:Georgia, "Times New Roman", Times, serif; font-size:16px; margin-bottom:auto; color:#B90000;}nav { float:left; width:203px; border-right:solid 1px #999999; height:clear; background-color:#FFF; position:fixed; margin-top:200px; }nav a{ color:#B90000; font-size:18px; text-decoration: none}nav a:active{ font-weight:800; text-align:right;}nav a:visited { } nav a.current:link, a.current:visited { font-weight:900;} article{ padding:10px; width:600px; display:block; float:left; background-color:#FFF; border-top:solid 1px #999999; border-left:solid 1px #999999; margin-left:203px;}form glowing-border { border: 2px solid #dadada; border-radius: 7px;}form glowing-border:focus { outline: none; border-color: #9ecaed; box-shadow: 0 0 10px #9ecaed;}input{ width:400px; margin-bottom:10px;}footer{ clear:both; width:100%; height:30px; border-top:solid 1px #999999; border-radius:5px;} Why won't it position in the center of the page?
  9. Hi,i need help for a script that on a evet or condition to take screen shot ot save the web page on my PC. Can you help methe event is when its played a sound ... using firefox and Greasemokey to start the script Pls help we thank you
  10. Onepage /paralax navigation isue

    Dear,I just got back into web dev, now i have a small question.I'm bussy on my new portfolio and i want it to be a single page portfolio.So i setup my site in sections ( Image rotator , home , service , contact ,...)and i am wondering how to make a menu that starts on the botom of the image rotator section and as i scroll down it will rise to the top of the page and stay there even if i scroll further then the rotator section.The following link will give you an idea of what i mean .http://themestrong.com/demo/argo_wp/Also , while i'm at it . does someone also know how to make a "Back to Top" button that will display if i enter the second Section ?Thanks in advance !Jochem.
  11. hello, i have been wondering, and this might be a rookie question, but one i simply need to ask, coz it is making me a little bit insane... i have this CSS right now: /* unvisited link */#forum_cats_title_wrapper a:link { color:#0087DC; text-decoration:none;}/* visited link */#forum_cats_title_wrapper a:visited { color:#0087DC; text-decoration:none;}/* mouse over link */#forum_cats_title_wrapper a:hover { color:#172aba; text-decoration:none;}/* selected link */#forum_cats_title_wrapper a:active { color:#172aba; text-decoration:none;} what i wish, is for the links to show what page i am at, for instance, if i am in a forum, the forum link will be highlighted, meanwhile the others will go down to a more darker blue kind of color... Any ideas? Oo...
  12. Page not responding

    Hello Friends, I have created a website. Website pages load normally. But if any page remains open for sometime then it stops responding for a couple of seconds. After a couple of seconds, page again responds normally. What can be the problem for page NOT responding? Please HELP.
  13. Web Page - Dynamic Table Data Navigation

    Hi. Not quite sure where to start with this one. Am creating a website at the moment, and within that site - in my SQL Compact database I have a "transaction" table. There will be thousands of records in that table - what I want the user to be able to do is search based on a particular parameter - which is fine as I can just use SQL to obtain that information. However, say for instance it returns 100 records - I don't want to display all that data to a user all at once. How would I go about creating a facility to navigate on a table? For instance so it displays ten records at a time? I am using WebMatrix to create this site. Thanks. Kevin
  14. I have this php script stop.php <?phpinclude('ssh_con.php');$stop = 'screen -S testapplication -X quit';ssh2_exec($con, $stop);mysql_query("UPDATE servers SET Online=0 WHERE Owner='".$_SESSION['Username']."'");echo "<meta http-equiv='refresh' content='0;index.php'>";?> now i want to execute/call/get this page/script using javascript onclick to execute the code and the page refreshes itself. Can anyone guide me to do this? Thanks before hand.
  15. Hi there!!!Is there any way I can code a website to redirect the page to a new one is they refresh it???(Or something similar)Many thanksMm
  16. I have attached my sample website. In it how do i arrange multiple "div" and why do some break up at different screen sizes. Check my code and help me find my mistakes. index.html
×