RussellReal
Members-
Posts
1,773 -
Joined
-
Last visited
Everything posted by RussellReal
-
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
-
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
-
first you'd need to calculate how many pages there is.. then you can make a link to the last page
-
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'); ?>
-
[SOLVED] Checking a file type and extention from an array.
RussellReal replied to BandonRandon's topic in PHP Coding Help
I would never wanna skin a cat lol atleast your problem is solved! -
ANYTIME! <3 click 'solved' though
-
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
-
[SOLVED] if statement not responding..please help!
RussellReal replied to mcerveni's topic in PHP Coding Help
it shouldn't because try again is in the else for the if I told you to put the echo above of -
[SOLVED] if statement not responding..please help!
RussellReal replied to mcerveni's topic in PHP Coding Help
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 -
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');
-
Touche. In the future I will defer to your superior grasp of people's problems and your probable solutions. ^^ lol wut
-
[SOLVED] Checking a file type and extention from an array.
RussellReal replied to BandonRandon's topic in PHP Coding Help
use this instead of the foreach -
[SOLVED] if statement not responding..please help!
RussellReal replied to mcerveni's topic in PHP Coding Help
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 -
dude keep up thats what me and kingphilip just said
-
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
-
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
-
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>
-
show some of the html attached to this..
-
[SOLVED] if statement not responding..please help!
RussellReal replied to mcerveni's topic in PHP Coding Help
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 -
How can I "activate" an account after recieved payments
RussellReal replied to Rifts's topic in PHP Coding Help
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 -
[SOLVED] Preventing direct access to PHP files with Jquery tabs?
RussellReal replied to leafer's topic in PHP Coding Help
referer can be easily spoofed -
[SOLVED] Checking a file type and extention from an array.
RussellReal replied to BandonRandon's topic in PHP Coding Help
$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 } -
[SOLVED] Preventing direct access to PHP files with Jquery tabs?
RussellReal replied to leafer's topic in PHP Coding Help
<a href="1.php"< change that to <a href="1.php">< everything else looks satisfactory -
yeah, \0 is the nulbyte and 0 is just a simple 0
-
[SOLVED] Multidimensional Array - what am I doing wrong?
RussellReal replied to talknerdy2mee's topic in PHP Coding Help
he she big difference I could blame it on missing a key