389 Posted Topics
Re: robots.txt usaly is not protected just use [url]www.thesite.com/robots.txt[/url]in your brouwser | |
Re: The header gets sent before the first output. In your case at line 1 [CODE]<a href='?goto=register'>register</a>[/CODE] you cant do a header call after that as you do at line 28 | |
Hi I've writen a server is PHP that i want to run every min. so i can do something like in cron [CODE]*/1 * * * * lynx -dump http://www.somedomain.com/myserver.php[/CODE] But i want to make sure there only 1 running. The web tells met to check for an prosesid but … | |
Re: are your comment text? The u can't store them in a longint. Just use TEXT as ur column type If there are numerical i don't see the problem with new lines | |
Re: Filetype is't what u want. check for gif file [CODE]if (exif_imagetype($dirArray[$index]) == IMAGETYPE_GIF) $NumberOfGif++; [/CODE] to check for other image types see [URL="http://nl.php.net/manual/en/function.exif-imagetype.php"]http://nl.php.net/manual/en/function.exif-imagetype.php[/URL] This look inside the file and is therefor slow but gifs u the true type of the image a .png renamed .gif wil be recognised as png … | |
Re: you can use something like to find out whats wrong [CODE]$related_query = mysql_query(' your query here' )or die( mysql_error());[/CODE] | |
Re: You have an error in your select statmend on line 5 [CODE]echo "DB_Backup <select name='DB_Backup'>";[/CODE] | |
Re: The width is part of the image tag [CODE]echo "<td><img width = '75' src='http://". $row['url'] . "' /></td>"; [/CODE] | |
Re: You didn't seleclect your db [CODE]mysql_select_db('yourDB', $plod) or die('db not found: ' . mysql_error());[/CODE] | |
Re: Your reverens to $_POST should be quoted like this [CODE]$_POST['topic_owner'][/CODE] | |
Re: [CODE]virtual('/Connections/conexion.php');[/CODE] alsso sent the headers can't you use include or require ? | |
Re: all i can think of is to set the dafault to NULL what's not the same as zero (=numerical value where NULL means doesn't exist) | |
Re: Are you sure your $_SESSION get gast to the next page and is not recreated by your loginscript? to test change [CODE]# /* Quick self-redirect to avoid resending data on refresh */ # echo "<meta http-equiv=\"Refresh\" content=\"0;url=".$HTTP_SERVER_VARS[PHP_SELF]."?".htmlspecialchars(SID).">"; # return;[/CODE] | |
Re: goto [URL="http://php.opensourcecms.com/"]http://php.opensourcecms.com/[/URL] and trie wath the best is for what you want | |
Re: this might shed some light [CODE]/** * Define MyClass */ class MyClass { public $public = 'Public'; protected $protected = 'Protected'; private $private = 'Private'; function printHello() { echo $this->public; echo $this->protected; echo $this->private; } } $obj = new MyClass(); echo $obj->public; // Works echo $obj->protected; // Fatal Error echo … | |
Re: someting like this: [CODE] $query = sprintf("SELECT Personal_tutor FROM Student WHERE student_ref='%s' ", mysql_real_escape_string( $username)); $tutorname = @mysql_query($query); if (!$tutorname) { exit ('<p> Error performaing query: ' . mysql_error() . '</p>'); }[/CODE] | |
Re: You missed the closing ' on your $_POST [CODE]<?php if (isset($_POST['submit'])){echo "clicked";}[/CODE] ![]() | |
Re: to prevent uploading to big a file you can also limit it in your form [CODE] <INPUT TYPE='hidden' NAME='MAX_FILE_SIZE' VALUE='51200' /> Upload this file: <INPUT NAME='userfile' TYPE='file' ID='file'/> [/CODE] recoment after this still use vaultdwellers script | |
Re: haeders are send when ou output something. so put the sesion stuf before anything else. also make sure that there are no empty lines before your [code] no empty line here <?php no echo here sesion_stuff() ?> [/code] ![]() | |
Re: You can mak this->title an array [CODE] class Entry { private $title = array(); [/CODE] change the constuctor: [CODE] $result=mysql_query($query); while($row=mysql_fetch_array($result)) { $this->title[]=$row['TITLE']; } [/CODE] | |
Re: The first time yo see the form you $_POST doesn't exist so [CODE] <form name="frmSearch" id="frmSearch" method="POST" action="http://localhost/CSV/<?php echo $_POST['keyword']; ?>">[/CODE] becomes [CODE] <form name="frmSearch" id="frmSearch" method="POST" action="http://localhost/CSV/">[/CODE] not using you url rewrite but just going to index.php the second time $_POST exits and [CODE] <form name="frmSearch" id="frmSearch" method="POST" action="http://localhost/CSV/<?php … | |
Re: i would use the the primery-key as reverns sometin like: tabel user: user_id (primery key) name ... table contact contact-id (primeyy key) user_id (foren- key form tabel user) tel mobile email ... | |
Re: you have to pass along the session id for it to work see: [URL="http://nl.php.net/manual/en/session.idpassing.php"]http://nl.php.net/manual/en/session.idpassing.php[/URL] | |
Re: On this websit you can playaround with most cms, blogs etc to find the one you like [URL="http://php.opensourcecms.com/"]http://php.opensourcecms.com/[/URL] | |
Re: What do you have as your form action? if you call the same scrip the form rest it self. The seleced value is in your $_POST do [CODE] <? var_dump($_POST); ?> [/CODE] ![]() | |
Re: You google funtion is in javascript that runs in the brouwser, all php is done and over (serverside) by that time. so you have to call an external scipt or do a refrech with the the latlng as a hidden form element | |
Re: I would use a xml file see : [URL="http://nl2.php.net/manual/en/simplexml.examples-basic.php"]http://nl2.php.net/manual/en/simplexml.examples-basic.php[/URL] | |
Re: you can refrece your page after 5 sec [CODE]<META HTTP-EQUIV="refresh" CONTENT="5;URL=homegage.html[/CODE]"> display the gif as any picture, you can't resize it because gif is een bitmap | |
Re: $fileName_database will not be an array if mysql_fetch_array has no result ==> it returns FALSE | |
Re: you said that you used Implode("/r", The Field) to create the Db you should have used Implode("\r", The Field) ![]() | |
Re: i googled this: [URL="http://unk1911.blogspot.com/2005/10/php-normal-cumulative-distribution.html"]http://unk1911.blogspot.com/2005/10/php-normal-cumulative-distribution.html[/URL] | |
Re: Just add [CODE]$find=$_POST['find'];[/CODE] at the start of search-exec.php | |
| |
Re: you have a typ at the start [CODE] function confirm_query($result_set) { if (!Sresult_set) { [/CODE] must be [CODE] function confirm_query($result_set) { if (!$result_set) { [/CODE] not sure that will anser your queston | |
Re: Your switch problem is fixed. You just have a bug online 29 trie [code]if(strpos('*image/gif image/jpg', $Files[' file1']['type'])) {[/code] | |
Re: By copying the directory you might have chanched the owner or the permisions ? | |
Re: You used " in a string . This is't nessarray. Just remove them [php]echo "<center><br><br><a href=http://novatrader.net/index.php?option=com_puarcade&Itemid=51><< Choose Another Game</a></center>";[/php] | |
Hi all I'm writing a code to search image on google and parse the urls to a flash aplication. More and more I don't get the image but a picture that tells me not to hotlink. I want to detect this so I can look for another image. I've written … |
The End.