Search found 487 matches
- Tue Mar 29, 2011 10:38 am
- Forum: PHP - Code
- Topic: Having troubles naming my downloaded file with Header!!
- Replies: 3
- Views: 345
Re: Having troubles naming my downloaded file with Header!!
Nobody? =) I still can't figure it out.. ;]
- Sat Mar 26, 2011 11:20 am
- Forum: Javascript
- Topic: Swapping images?
- Replies: 1
- Views: 783
Swapping images?
Heres a snipplet from my JS file.. $("#next").mouseup(function () { $.ajax({ url: "ajax/userSlider.php?userID=" + lastUserID, global: false, type: "GET", dataType: "html", success: function(msg){ userSplit = new Array(); userSplit = msg.split(":"); i...
- Fri Mar 25, 2011 11:36 pm
- Forum: PHP - Code
- Topic: Having troubles naming my downloaded file with Header!!
- Replies: 3
- Views: 345
- Thu Mar 24, 2011 1:21 pm
- Forum: PHP - Code
- Topic: Having troubles naming my downloaded file with Header!!
- Replies: 3
- Views: 345
Re: Having troubles naming my downloaded file with Header!!
Problem fixed but now a new problem arises.. Script works perfect in FireFox. When using IE, it will not download the file. Its always 0kb... Any ideas? $SEARCH = mysql_fetch_object($s_query); $fsize = filesize(cleanData($SEARCH->url)); header("Pragma: public"); // required header("Ex...
- Thu Mar 24, 2011 1:15 pm
- Forum: PHP - Code
- Topic: Having troubles naming my downloaded file with Header!!
- Replies: 3
- Views: 345
Having troubles naming my downloaded file with Header!!
I am trying to name the file by the title with .mp3.. It only takes the first word of the title and doesn't even give it the file extension .mp3 $fsize = filesize(cleanData($SEARCH->url)); header("Pragma: public"); // required header("Expires: 0"); header("Cache-Control: mus...
- Sun Mar 20, 2011 11:08 am
- Forum: Databases
- Topic: DISTINCT not working right....
- Replies: 4
- Views: 1380
DISTINCT not working right....
I am only trying to get one of each article_id. It seems to be getting the whole database instead. $sql = " SELECT DISTINCT article_id, pqdb_articles.*, category_id, category_name, SUBSTRING_INDEX(article_text,' '," . CENTER_COLUMN_PREVIEW . ") AS text FROM pqdb_articles, pqdb_categor...
- Sun Mar 20, 2011 9:33 am
- Forum: PHP - Code
- Topic: Passing a lot of info from one class to another?
- Replies: 2
- Views: 304
Re: Passing a lot of info from one class to another?
pretty simple. Thanks!!
- Sat Mar 19, 2011 12:50 pm
- Forum: PHP - Code
- Topic: Passing a lot of info from one class to another?
- Replies: 2
- Views: 304
Passing a lot of info from one class to another?
How can I pass my user class info to another class? I hear of this thing called inherit but never used it. I got a lot of user vars..
- Fri Mar 11, 2011 11:31 pm
- Forum: PHP - Code
- Topic: my array not being stored in my session... ;\
- Replies: 1
- Views: 358
Re: my array not being stored in my session... ;\
FULL SOURCE: <?php session_start(); require "../config.php"; require "../libs/Smarty.class.php"; $smarty = new Smarty; if($_SESSION['rpg_' .$game_name . 'userrank'] != 1) { die("You dont belong here"); } //set template var $smarty->assign("game", $game_name); ...
- Fri Mar 11, 2011 11:31 pm
- Forum: PHP - Code
- Topic: my array not being stored in my session... ;\
- Replies: 1
- Views: 358
my array not being stored in my session... ;\
I have a multi step form being proccessed so I am trying to store my inserts into a session to carry over to the next form.. $inserts = array('textName', 'textDesc', 'textPrice', 'select', 'checkStartUp', 'checkBuy'); for($x=0; $x<count($inserts); $x++) { $inserts[$x] = mysql_real_escape_string($_PO...
- Tue Feb 22, 2011 12:23 pm
- Forum: Javascript
- Topic: jQuery my server from another server
- Replies: 4
- Views: 1323
Re: jQuery my server from another server
Do you have any sort of example on how to do this? ;]Weirdan wrote:You can with json-pJonah Bron wrote:It appears your script is on simstests.zxq.net, while you're calling a page phpengines.info. You can't do that.
- Thu Feb 17, 2011 12:53 pm
- Forum: Javascript
- Topic: jQuery my server from another server
- Replies: 4
- Views: 1323
jQuery my server from another server
I am trying to return the results of a php file after sending a jquery request to it. The page: http://simstests.zxq.net/ My js file when button is clicked located on my server: $(document).ready(function(){ $("#attack").mouseup(function () { $("#outcome").html("Attacking......
- Sun Feb 13, 2011 10:37 am
- Forum: PHP - Code
- Topic: More class help =) Include file?
- Replies: 8
- Views: 456
Re: More class help =) Include file?
I am starting to get the hang of this OOP stuff but I still have some wacky problems... I am able to call my member class and it goes to my memberShowEditProfile page but the problem is in the class itself when I submit the update avatar form this line returns "user table: " and USER_TABLE...
- Sun Feb 13, 2011 9:27 am
- Forum: PHP - Code
- Topic: imagex/imagesy with $_FILE??
- Replies: 2
- Views: 178
imagex/imagesy with $_FILE??
I am having trouble getting the imagesx and imagesy with an image from memory. always returning true no matter what... ;) any work-a-round. I don't feel like uploading the image then deleting if its to big. if(imagesx($_FILES["file"]["tmp_name"]) > AVATAR_MAX_WIDTH || imagesy($_F...
- Sun Feb 13, 2011 9:24 am
- Forum: Javascript
- Topic: Javascript security?
- Replies: 10
- Views: 3124
Re: Javascript security?
I'll take a look into HTML purifier.
thanks.