Jump to content

RichardRotterdam

Members
  • Posts

    1,509
  • Joined

  • Last visited

Everything posted by RichardRotterdam

  1. even when stored on the local computer as a csv file it's too big to pass as a php string any ideas how to handle a large file
  2. Hi, I am trying to download a csv from a remote server. Loading data from a remote server isnt a problem but the CSV file I am trying to download is very big and i get a fatal error everytime i try to load the whole thing in a variable. Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 17664191 bytes) the url of the CSV file is http://xml.ds1.nl/getcsv/?wi=58654&si=510&xid=83&ws= is storing all this data in a php var even possible?
  3. thanks for the links I will have a look at it and see if it will solve my problem
  4. Hi, Anyone has anytips on how to make a remote xml file into php arrays? thnx
  5. Indeed that swr3 object looks stupid. Why not just but your objects in normal variables like so $database = new database; $member = new member; that saves you a lot of hair pulling later on for further development
  6. you might wanna look at this http://www.phpfreaks.com/forums/index.php/topic,156382.0.html
  7. javascript that is possible you can just click "view source" in your browser but php source code thats not possible oh and i dont see anything on jimmry.com
  8. The only way to learn OOP is by doing it at least that worked for me. At first you are likely to mess up a couple of times. But the more you do it the more your code will make sence. And don't worry about making messy code at first in the end it will be worth it. One other thing php!=Java so if you use a function over and over like a function that checks for sql injections or html in a string just use a normal function. classes are great but don't overdo it
  9. depends on what you want to update. What d you need to update also I think this belongs in the SQL section
  10. do you mean you want to add options to an existing select? I have done this one time by using innerHTML="<option></option>" how ever that didn't work in ie 6 but there is a work around
  11. I have an alternative for you. Basicly you want a clean URL so you could use javascript to achieve this. Flash is able to call a javascript function within that page. Here is what you can do. in your swf file getURL("javascript:setVar('some value inserted from flash')"); on you parent page with flash(call the function setVar in flash) <script> var parentVar; //cal this function from flash function setVar(value){ parentVar=value; } </script> your _blank page <script> var parentVar=window.opener.parentVar; document.write(parentVar); </script>
  12. I often wonder why that is so. using Java i also use set and get methods and set all of the variables to private. But in php i dont see the use of it. Does using set and get functions for the class variables make your code any safer? Somehow i doubt that
  13. Now that's something we can work with and indeed that shows up on http://www.guwahatichessassociation.com/wcchap07_anand_wins12345.php this error means that your calling the function download_size() on line 212 of your file wcchap07_anand_wins12345.php but this function does not exist you need this function included on your php page it would look something like the following <?php function download_size(){ //some stuff to get the download size or anyhing return $downloadSize; } ?>
  14. if you changed the file extension to .php and also called the php file you should recieve errors what errors do you recieve?
  15. this is a php forum yeah but youre in the javascript section so you came to the right place. Something i always use when working with forms i just place a hyperlink inside the form so it wont submit. to make it look like a button just place an image inside. This is the easiest way. You can also write a script that stops the form from submitting when a button is clicked but I recommend using a hyperlink <form> <a href="javascript:jsFunction()">place time</a> </form>
  16. javascript is a great a tool but some things are NOT ment to be done with javascript. especially when it comes to putting a password in a $_GET string youre trying to use an extreme unsafe way if you're going that way might as wel not use a password at all. Use php only for this
  17. dont you just want the text to increase or decrease in size with an event?
  18. something like this maybe? http://demos.mootools.net/Fx.Scroll
  19. you do know some php right? Dreamweaver will get you nowhere if you want to program it only helps producing nice looking pages it doesn't do the programming for you
  20. nothing it means the following <?php echo($_GET['val']);//this will echo "jil+creed" ?>
  21. What you need something that stores the number of times that has been voted and the total score every time someone votes just add 1 to the vote count and the score to the total score you can calculate the rating as followed $averageScore=$totalScore/$votes; you can use javascript for that hover effect. And for voting make sure it only excepts value's not higher then 5 and lower then 1 with a php check otherwise I'll just drop by and give your crappiest votable object an average score of 256. You also might want to build something which prevents someone from voting more then once
  22. by just reading that I believe you mean you want a javascript var to php var am i right? If this is so you can't do that directly javascript runs in your browser and php on a remote server
  23. sounds to me your client is overly concerned about "evil" javascripts and just turns it off. Running a CMS without javascripting is prettymuch like going 10 years back in time as for webdevelopment. Just tell him to use firefox instead of IE to increase security or opera even.
  24. I was wondering if the php DOMdocument function would work on that. It works great with javascripting
  25. Currently I'm trying to build a texadventure with php. I'm having trouble with the text commands and I don't think I have the right approach. Every Scenery has its own set of textcommands that can be executed. There for I am placing a textCommandListeren object inside the Scenery object. <?php class Scenery{ var $description; //description of area in text var $textCommandListeren; //object used to accept text commands public function Scenery($description){ $this->textCommandListeren = new textCommandListeren; $this->description=$description; $this->pathDescription=$pathDescription; } } ?> I want to fetch these text commands from an mysql database. Getting text from a database and storing it in an array is not the problem. What the problem is is that I want something to be done with an item when a text was entered. example get sword should perform the sword being removed from the Scenery object and placed into the Inventory object I'm thinking of using some kind event listeners I don't have much experience with events besides flash and javascripting. Is there anyone that can send me in the right direction? And am I doing the right thing to build the textCommandListener object?
×
×
  • 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.