Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

php error

Featured Replies

Warning: Cannot modify header information - headers already sent by (output started at /home/saziew/public_html/sazies-designs.cz.cc/php/strip.php:627) in /home/saziew/public_html/sazies-designs.cz.cc/php/submit.php on line 241

 

what is causing this any ideas

 

submit.php

header("location: $host/$dir/$goto");

 

var.php

<?php 

$host = "http://www.sazies-designs.cz.cc";

$dir = "php";

$goto = "contactus.php";

?>

 

i cant show to much of the code as it was given to me

Edited by lee sands

Warning: Cannot modify header information - headers already sent by (output started at /home/saziew/public_html/sazies-designs.cz.cc/php/strip.php:627) in /home/saziew/public_html/sazies-designs.cz.cc/php/submit.php on line 241

 

what is causing this any ideas

 

submit.php

header("location: $host/$dir/$goto");

 

var.php

<?php 

$host = "http://www.sazies-designs.cz.cc";

$dir = "php";

$goto = "contactus.php";

?>

 

i cant show to much of the code as it was given to me

 

means your outputting something before headers are being sent, try this

 

if(!headers_sent()){
//If headers not sent do php way
header("location: $host/$dir/$goto");
}else{
     /**Else Redirect using javascript**/
         echo "<script type='text/javascript'>window.location='$host/$dir/$goto'</script>";
}

Edited by webdesigner93

  • Author

my work placement gave it to me it it was code quite deap

  • Author

yes very true but the sercurity of it is weak then i have 6 diffent scprits to scure it

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.