Jump to content

RussellReal

Members
  • Posts

    1,773
  • Joined

  • Last visited

Everything posted by RussellReal

  1. for 'first' change if ($file != "." && $file != "..") { echo "<img src=\"$path/$file\" height=\"100\" width=\"100\" />"; } to if (($file != ".") && ($file != "..") && (substr($file,strlen($file) - 3) != '.db')) { echo "<img src=\"$path/$file\" height=\"100\" width=\"100\" />"; } for 'second' you'd want htaccess
  2. what is $artid? you want the files to come from RECSCHART but you want it to show up in /$artid/? than yes thats how you'd do it
  3. first you'd need to calculate how many pages there is.. then you can make a link to the last page
  4. I've modified the code above that I gave you from the poster on php.net and have come up with something pretty sweet, hope it solves your problem <?php class Zipper extends ZipArchive { public function addIntoDir($path,$name = false,$into = false) { $path = trim($path,'/'); if ($name === false) $name = $path; $this->addEmptyDir($e = ($into.'/'.$name)); $nodes = glob($path . '/*'); foreach ($nodes as $node) { $x = explode('/', $node); if (is_dir($node)) { $this->addIntoDir($node,$x[count($x) - 1],$path); } else if (is_file($node)) { $this->addFile($node,$path.'/'.$x[count($x) - 1]); } } } } $z = new Zipper; $z->open('zipToMake.zip',Zipper::CREATE); $z->addIntoDir('PathToTheDirectoryToZip','NameOfDirectoryInsideZipFile'); ?>
  5. I would never wanna skin a cat lol atleast your problem is solved!
  6. php does not work with flash.. it just outputs data.. you could.. echo file_get_contents($_GET['url'])); and in flash call the file as www.whatever.com/file.php?url=http://theurl.com/url/to/post/back.php
  7. it shouldn't because try again is in the else for the if I told you to put the echo above of
  8. yeah also I really do not see why this isn't working like 30 mins ago I broke it up in my notepad++ and everything looks fine.. its definately something wrong with the password from the row and the password supplied.. change: if($row3['password'] == $pass) { to: echo $row3['password']." ~~ ".$pass; if($row3['password'] == $pass) { and see if they match up
  9. file_get_contents or if you don't want the content you want the 100% redirect header('Location: http://www.abc.com'); however, if you're making this connection from flash to php, php will redirect the requested file, not the current file executing the current script.. You'd probably (if you're intending to redirect the page the flash app is on) want ExternalInterface; import flash.external.ExternalInterface; ExternalInterface.call('someJsFunctionToRedirectThePage');
  10. Touche. In the future I will defer to your superior grasp of people's problems and your probable solutions. ^^ lol wut
  11. yeah lol he uses 3 different connections, and I think 2 of them use the same tables he shoudl just make ONE connection @ the top and change the database accordingly
  12. dude keep up thats what me and kingphilip just said
  13. I'm really not following you here.. maybe try $_REQUEST but if not I really can't understand you dude, I apologize for that but I'm trying to help you as best I can
  14. somewhere after there is an endwhile; and an endif; basically its the same as doing while (...) { } except... while (...) : endwhile; its I guess to make visual basic programmers to feel more comfortable with php.. its nothing to get excited about and the ternary operator is the : in an inline if statement, the : you're referencing is just some bridge to reach out to vb programmers
  15. why not just load it into flash via xml? and also this isn't exactly the forum to ask this in I know flash as3 to an extent but I haven't coded in it for about a year. var ldr:URLLoader = new URLLoader(); var x:XML = new XML(); ldr.addEventListener(Event.COMPLETE, LoadXML); ldr.load(new URLRequest("yourXmlFile.xml")); function LoadXML(e:Event):void { x = XML(e.target.data); trace(x.dataForTextBox[0]); } and make yourXmlFile.xml push out <dataForTextBox>Whatever</dataForTextBox>
  16. show some of the html attached to this..
  17. in the database when adding to it.. do you hash your passwords? that could be the reason.. because thats the only check that goes to else tht isn't correct
  18. usually whatever payment gateway you use should let you know one way or another, I'm guessing that the APIs give you like a php class or whatever that you use to handle a client's data with, then it sends the request to their server and then they send you approved or denied
  19. $i = 0; while ($type = each($upload_permitted_types)) { $e = explode(":",$type); if (($e[1] == $upload_project_thum_ext) && ($_FILES['upload_project_thum']['type'] == $e[0])) { $i = 1; break } } if (!$i) { // not a valid type }
  20. <a href="1.php"< change that to <a href="1.php">< everything else looks satisfactory
  21. yeah, \0 is the nulbyte and 0 is just a simple 0
×
×
  • 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.