Jump to content

Search the Community

Showing results for tags 'title'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests


Age


Donation Link

Found 6 results

  1. Hello i have a question, i dont know if that is possible. I want to call a external page and echo like this below. index.php <?php include 'extern/connect.php'; $title = file_get_contents('extern/title.php'); ?> <head> <title><?php echo $title; ?></title> //here i want to echo also $a from title.php </head> Title.php <?php $a ="Youtube"; $b ="Facebook"; $c ="Myspace"; $d ="Google"; ?> Is that possible ? Thanks for any help
  2. Hello. I need to change dynamically the title of my website, but keeping the main page title and description only in main page. My website content is all generated (shown) from index.php (code bellow). I can change dynamically the title, but not keeping the main page title and description. In the articles, I would like to present title from news_post and description of _news_desc <!DOCTYPE html> <!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--> <!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--> <!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--> <!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--> <head> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8"> <meta lang="pt" /> <meta name="author" content="Motor Racing News"> <meta name="description" content="Motor Racing News - Notícias do Desporto Motorizado"> <meta name="keywords" content="motores, formula 1, motogp, gp2 series, automobilismo, motorsport, wrc, rali, rally,dakar,motor racing news, mrn"> <meta name="viewport" content="width=device-width" /><!-- Set the viewport width to device width for mobile --> <title>Motor Racing News | Informações de Altas Rotações</title> <!-- Included CSS Files (Uncompressed) --> <!-- <link rel="stylesheet" href="stylesheets/foundation.css"> --> <!-- Included CSS Files (Compressed) --> <link rel="stylesheet" href="stylesheets/foundation.min.css"> <link rel="stylesheet" href="stylesheets/app.css"> <link rel="shortcut icon" href="images/logobar.ico" type="image/x-icon"> <script src="javascripts/jquery.min.js" type="text/javascript"></script> <script src="javascripts/jquery-1.9.1.min.js" type="text/javascript"></script> <script src="javascripts/modernizr.foundation.js"></script> </head> <body oncontextmenu="return false;"> <?php if (isset($_REQUEST["todas"])) { include("todas.php"); return; } if (isset($_REQUEST["autospt"])) { include("autospt.php"); return; } if (isset($_REQUEST["autosrt"])) { include("autosrt.php"); return; } if (isset($_REQUEST["motospt"])) { include("motospt.php"); return; } if (isset($_REQUEST["motosrt"])) { include("motosrt.php"); return; } if (isset($_REQUEST["entrevistast"])) { include("entrevistast.php"); return; } if (isset($_REQUEST["outrostt"])) { include("outrostt.php"); return; } if (isset($_REQUEST["cit"])) { include("cit.php"); return; } if (isset($_REQUEST["mmt"])) { include("mmt.php"); return; } ?> <!-- Navigation --> <?php include("menu.php"); /* atribui valor a p remetendo para a home page */ if (isset($_REQUEST["p"])) {$p=$_REQUEST["p"];} else {$p=1;} ?> <div class="row"> <?php if (isset($_REQUEST["p"])) { $query = "SELECT * FROM nav WHERE id=".$_REQUEST["p"].""; $result = mysql_query($query); $row = mysql_fetch_array($result); echo "<p style='color:#ffc90d;'><b style='text-decoration:underline; color:#999;'>Página actual:</b> "; echo $row["element"]; echo "</p>"; ?> <?php } else echo ""; ?> </div> <!-- End Navigation --> <!-- Header --> <?php if (isset($_REQUEST["guid"])) { $guid = mysql_real_escape_string($_REQUEST["guid"]); // sanitize the guid $query = "SELECT * FROM news WHERE news_guid='".$guid."'"; $result = mysql_query($query); $row = mysql_fetch_array($result);?> <div class="twelve columns"> </div> <div class="row"><!-- Row interior--> <div class="twelve columns"> <div class="panel"> <div class="row"><h3 class="n4"><?php echo $row["news_title"]; ?></h3> </div> <p id="data"><?php echo $row["news_date"]; ?>, <?php echo$row["hour"] ;?> GMT<br/><?php if ($row['copyright'] <> 'Desconhecido') echo "Copyright Imagem: " . $row['copyright'] ;?></p> <p><?php echo $row["news_post"]; ?></p> <!-- begin htmlcommentbox.com --> <div id="HCB_comment_box">A carregar os comentários...</div> <script type="text/javascript" language="javascript" id="hcb"> /*<!--*/ if(!window.hcb_user){hcb_user={ };} (function(){s=document.createElement("script");s.setAttribute("type","text/javascript");s.setAttribute("src", "http://www.htmlcommentbox.com/jread?page="+escape((window.hcb_user && hcb_user.PAGE)||(""+window.location)).replace("+","%2B")+"&mod=%241%24wq1rdBcg%24al/Hneesch35kyev2Dpyr1"+"&opts=478&num=10");if (typeof s!="undefined") document.getElementsByTagName("head")[0].appendChild(s);})(); /*-->*/ </script> <script> // This code goes ABOVE the main HTML Comment Box code! // replace the text in the single quotes below to customize labels. hcb_user = { //L10N comments_header : '<h4 class="n4">Comentários</h4>', name_label : 'Nome (pode fazer login com a sua conta Google)', content_label: 'Escrever o comentário aqui', submit : 'Comentar', logout_link : '<p id="data">Logout<img src="images/door_out.png" alt="[sair]" class="hcb-icon"/></p>', admin_link : '<p id="data">Login <img src="images/door_in.png" alt="[entrar]" class="hcb-icon"/></p>', no_comments_msg: '<p>Ainda ninguém comentou o artigo. Seja o primeiro!</p>', add: '(+) Adicone o seu comentário', rss: '<img src="images/feed.png" class="hcb-icon" alt="rss"/> ', said: 'disse:', prev_page:'<img src="images/arrow_left.png" class="hcb-icon" alt="[ant.]"/>', next_page:'<img src="images/arrow_right.png" class="hcb-icon" alt="[próx.]"/>', showing:'mostrar', to:'para', website_label:'website (opcional)', email_label:'email', anonymous:'Anónimo', mod_label:'(mod)', subscribe:'subscrever tópico', msg_thankyou:'<b>Obrigado por comentar!</b>', msg_approval:'(este comentário não será publicado até o aprovar)', msg_approval_required:'<b>Obrigado por comentar! O seu comentário aparecerá após ser aprovado por um moderador.</b>', err_bad_html:'O seu comentário contem HTML errado.', err_bad_email:'Por favor escreva um endereço de email válido.', err_too_frequent:'Deve esperar alguns segundos antes de comentar novamente.', err_comment_empty:'O seu comentário não foi publicado porque estava vazio!', //SETTINGS PAGE:'', // ID of the webpage to show comments for. defaults to the webpage the user is currently visiting. RELATIVE_DATES:true // show dates in the form "X hours ago." etc. }; </script> <!-- end htmlcommentbox.com --> </div></div></div> <div class='row'> <?php } else switch ($p) { case 2: include("apresentacao.php"); break; case 3: include("news_principais_autosp.php"); break; case 4: include("news_principais_autosr.php"); break; case 5: include("news_principais_motosp.php"); break; case 6: include("news_principais_motosr.php"); break; case 7: include("news_principais_entrevistas.php"); break; case 8: include("news_principais_outrost.php"); break; case 9: include("news_principais_ci.php"); break; case 10: include("news_principais_mm.php"); break; default: include("news_principais.php"); break; } ?> </div> <!-- End Header --> <!--RECOMENDADOS e Links --> <?php include ("menu_links.php") ?> <!-- End RECOMENDADOS e Links--> <!-- Notícias Pequenas--> <?php switch ($p) { case 2: include("pequenas_news.php"); break; case 3: include("pequenas_news_ap.php"); break; case 4: include("pequenas_news_ar.php"); break; case 5: include("pequenas_news_mp.php"); break; case 6: include("pequenas_news_mr.php"); break; case 7: include("pequenas_news_e.php"); break; case 8: include("pequenas_news_o.php"); break; case 8: include("pequenas_news_o.php"); break; case 9: include("pequenas_news_ci.php"); break; case 10: include("pequenas_news_mm.php"); break; default: include("pequenas_news.php"); break; } ?> <!-- End Notícias Pequenas--> <!-- Footer --> <?php include("rodape.php") ?> <!-- End Footer --> <!-- Included JS Files (Uncompressed) --> <!-- <script src="javascripts/jquery.js"></script> <script src="javascripts/jquery.foundation.mediaQueryToggle.js"></script> <script src="javascripts/jquery.foundation.forms.js"></script> <script src="javascripts/jquery.event.move.js"></script> <script src="javascripts/jquery.event.swipe.js"></script> <script src="javascripts/jquery.foundation.reveal.js"></script> <script src="javascripts/jquery.foundation.orbit.js"></script> <script src="javascripts/jquery.foundation.navigation.js"></script> <script src="javascripts/jquery.foundation.buttons.js"></script> <script src="javascripts/jquery.foundation.tabs.js"></script> <script src="javascripts/jquery.foundation.tooltips.js"></script> <script src="javascripts/jquery.foundation.accordion.js"></script> <script src="javascripts/jquery.placeholder.js"></script> <script src="javascripts/jquery.foundation.alerts.js"></script> <script src="javascripts/jquery.foundation.topbar.js"></script> <script src="javascripts/jquery.foundation.joyride.js"></script> <script src="javascripts/jquery.foundation.clearing.js"></script> <script src="javascripts/jquery.foundation.magellan.js"></script> --> <!-- Included JS Files (Compressed) --> <script src="javascripts/jquery.js"></script> <script src="javascripts/foundation.min.js"></script> <!-- Initialize JS Plugins --> <script src="javascripts/app.js"></script> <script type="text/javascript"> $(window).load(function() { $('#featured').orbit(); }); </script> <!-- Quantcast Tag --> <script type="text/javascript"> var _qevents = _qevents || []; (function() { var elem = document.createElement('script'); elem.src = (document.location.protocol == "https:" ? "https://secure" : "http://edge") + ".quantserve.com/quant.js"; elem.async = true; elem.type = "text/javascript"; var scpt = document.getElementsByTagName('script')[0]; scpt.parentNode.insertBefore(elem, scpt); })(); _qevents.push({ qacct:"p-2G4Bk55Wj3bsE" }); </script> <noscript> <div style="display:none;"> <img src="//pixel.quantserve.com/pixel/p-2G4Bk55Wj3bsE.gif" border="0" height="1" width="1" alt="Quantcast"/> </div> </noscript> <!-- End Quantcast tag --> </body> </html>
  3. Hello! I need to create a dynamic page title and description to my website. However, the content is all generated from "index.php" page (example: the URL of post is [...].net/?id=2 ). So, title and description are the same in all pages, the website only has a "real" php file. So, how can I change the title with this situation? I have a mysql table for news and another for news/posts. Content generator PHP lines: <!-- Header --> <?php if (isset($_REQUEST["id"])) { $query = "SELECT * FROM news WHERE news_id=".$_REQUEST["id"].""; $result = mysql_query($query); $row = mysql_fetch_array($result); ?> <div class="twelve columns"> <div class="row"><h3 class="n3"><?php echo $row["news_title"]; ?></h3> </div> </div> <div class="row"><!-- Row interior--> <div class="twelve columns"> <div class="panel"> <p id="data"><?php echo $row["news_date"]; ?>, <?php echo$row["hour"] ;?> GMT</p> <p><?php echo $row["news_post"]; ?></p>
  4. Hi guys, I'm kinda new to PHP, and I started with developing a site. Now I've a piece of code (check below), it is suppost to edit a page in the database, but the output is "Error updating database1: Unknown column 'title' in 'field list'". But, the column exist! All variables are set, and I don't know what I'm doing wrong, and I hope you guys can help me. Code: $query_update = "UPDATE `pagina` SET `title` = '".addslashes($title)."', `korting`='".$korting."', `volg`='".$volg."', `product` = '".$product."',`product_id`='".$product_id."', `visible` = '".$visible."', `metadescription` = '".addslashes($metadescription)."', `url` = '".$url."', `content` = '".addslashes($content)."', `headerpicture`='".addslashes($headerpicture)."',`picture`='".addslashes($picture)."', form_id = '".$form_id."',`related`='".$related_string."', `datum` = NOW() WHERE `id` = '".$id."'"; mysql_query($query_update)or die('Error updating database1: '.mysql_error()); Column: Greetzz iRoot121.
  5. Gretings all. Right now i use wordpress and in my post i can add a Video by entering the Youtube address into a Custom field called "video_url" and then it outputs the video on my site wich works easy, here it is: <div class="video"> <html><center> <?php $meta_value = get_post_meta($post->ID, 'video_url', true); if($meta_value){ $url = parse_url($meta_value); $id = 0; if($url['host'] == 'youtu.be'){$id = ltrim($url['path'],'/');} else if(strpos($url['path'],'embed') == 1){$id = end(explode('/',$url['path']));} else{parse_str($url['query']);$id = $v;} echo '<p><iframe width="540" height="355" frameborder="1" allowfullscreen="true" src="http://www.youtube.com/embed/'.$id. '?version=3&theme=light&fs=1&rel=0&cc_load_policy=1&iv_load_policy=1&modestbranding=1" type="application/x-shockwave-flash" allowScriptAccess="always" allowfullscreen="true" width="600" height="355"> </iframe></p>'; } ?> </div> However i am tring to add this Modification here in wich adding the video link custom field will also bring back the youtube video title and descripiton, <?php $video_id = ’48J_DIZBNyE’; $video_info = simplexml_load_file(‘http://gdata.youtube.com/feeds/api/videos/’.$video_id.’?v=1′); echo $video_info->title . ‘<hr>’; // title echo $video_info->content; // description ?> Could anyone please help me implement the bottom code with the top piece of code !! Mucg respect>< Thanks
  6. I have a website called gapagap.com developed using php. What is basically want is to change the url pattern from: http://www.gapagap.com/gag/54 To this: gapagap.com/gag/then-why-am-i-not-a-millionaire-yet So what I basically want is to add the post title in the end of the url instead of the post sequence number.
×
×
  • 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.