-
Posts
134 -
Joined
-
Last visited
Never
Everything posted by chantown
-
Hi, I tried to do: $image = open_image('test.jpg'); //syntax is right, and a file is there die("here"); but for some reason, my PHP stops at $image, and doesn't do anything after that 1st line. Also, I have GD 2 GD Support enabled GD Version bundled (2.0.28 compatible) FreeType Support enabled FreeType Linkage with freetype FreeType Version 2.2.1 GIF Read Support enabled GIF Create Support enabled JPG Support enabled PNG Support enabled WBMP Support enabled XBM Support enabled Why is this? I'm just trying to open a simple image
-
Play sound once per session or not at all when users turn it off
chantown replied to Lios's topic in PHP Coding Help
the only way is to use cookies and/or ip. i suggest both or a login -
Play sound once per session or not at all when users turn it off
chantown replied to Lios's topic in PHP Coding Help
cookies are a good way to do it Or you can use IP -
Play sound once per session or not at all when users turn it off
chantown replied to Lios's topic in PHP Coding Help
use a database. Whenever someone chooses to stop playing, $q = "UPDATE user_table SET play_music = 0 WHERE user = '$userID';" -
Play sound once per session or not at all when users turn it off
chantown replied to Lios's topic in PHP Coding Help
When they enter site, flag it $_SESSION['playedmp3'] = true; then everytime you load a page, check it. if(!$_SESSION['playedmp3']) play song. -
You can $_GET the destination. http://www.something.com/links.php?destination=www.yahoo.com then load destination to the right frame and Ad on left(i dont know how to use frames, that was N years ago) "When someone visiting this page clicks a link at yahoo, whole browser window will be used." I don't think this is possible, because if someone clicks on yahoo's link, it's THEIR website (they choose whether to break out of frames). but there may be a way other experts here may know how to manipulate that
-
make a universal file with the includes include("universal-includes.php"); change the file paths in that file Try using dreamweaver , it has a function to find text within multiple files . And you can replace include('... include('... include('... with include("universal-includes.php");
-
I don't get what you're trying to do, but if you want to get the URL that you see on the address bar currently, you can use $_SERVER['REQUEST_URI']. try that, or some $_SERVER variable.
-
[SOLVED] What is the string function that is like substring?
chantown replied to chantown's topic in PHP Coding Help
great -
FictionDiction.com Could you please write reviews about this site.
chantown replied to faruk123's topic in Website Critique
lol you go to harvard? where do you live? This looks pretty good, but the font is kinda childish for me, and the fireworks on the right hand corner looks like you're having a big 1 day sale. I like the "soft" feel though PS. check out my website (www.skoogo.com), it's somewhat similar to yours. maybe we can help each other -
it's not bad but the images (style, mood) don't match the overall design too much white space and PLAIN feeling I know you want it organized and professional, hence the plain is good. But you can be plain AND stylish -- perhaps do some borders or something? or a "holder" for the menu on the left?
-
hi majhate, I would NOT do this: "So I would have a field called answers, and all the answers they wanted would go in there seperated by a space or something." I would instead insert a row for each answer. trust me, it makes things much easier. To determine number of answers just count the rows in the table good luck-
-
you coded all this? it's nice. but the dark with yellow lights design makes me feel unsecure
-
so a better question would be: how many unique visitors do you get a day?
-
sorry, wrong forum (can someone move this topic?)
-
agensteal, i ahve a question- how did you find my files (did you scan the site)? How did you find my templates folder?
-
I really like Vbulletin or SMF's wysiwg, does anyone know how to get these and BB code?
-
wow thank you so much how do you guys know all this stuff???
-
First of all, is this a big problem (if we have patched up SQL inject + XSS)? Can we disable error reporting in PHP.ini , so that this will no longer show to people?
-
thanks guyz, is it a big problem if the absolute path is revealed?
-
I think it'd look better with padding between the text and the image
-
I have this string , called $email. if I do die($email), it outputs email@msn.com But when I do: $email = "<$email>"; die($email), it SHOULD output <email@msn.com> but instead, it outputs nothing! does anyone know why? I tried doing echo "<".$email.">";, but nothing works
-
i think you shouldd put some google ads in other places, one of them distracts me
-
your source code doesn't have a ending to the site it just stops at <div... So probably it's your PHP issues Is everything being included right?