Jump to content

syntaxerror

Members
  • Posts

    36
  • Joined

  • Last visited

    Never

Everything posted by syntaxerror

  1. on a page i have to be able to submit 2 different values for input (name = "test") but it should be via post method and should work with the javascript turned off
  2. ok, perhaps, i must have accidentally clicked that... although i don't remember having done so
  3. ??? how come this topic is marked SOLVED, when nobody replied, the link i included provides image skewing, but it results only to a parallelogram, what I wish to produce however is slightly different, and more difficult, which is image skewing with one side shorter than the other that is your perspective has a ' vanishing point '
  4. The image skewing provided here was fine http://us.php.net/manual/en/function.imagecopy.php#61693 but i was thinking, would it be possible to have a trapezoidal skew, sort of how a frame would 'really' look in a 3d perspective, so that the farther end is shorter?
  5. that's exactly what i need, 'skew' was the keyword in my mind, but it didnt' occur to me that's what someone else would use, funny many thanks
  6. Would it be possible to, using GD, create a parallelogram rendering of an image? Any tips would be a plus, thanks
  7. ok, so which of these folders is the one that is in the web server document root, then?
  8. starter on procedural MVC would this be right? on the web folder , i have my controller codes / php files on two different folders with the same level as the web folder, i have the model, and then, the view /project/web /project/model /project/view
  9. i need to load the page in a sequence that i the more essential stuff load up quickly and the longer lists load later... i have this page with tons of info, and there are some areas that are accessed more frequently basically it might allow the user to see the common links rather quickly, and click on it before the entire page loads if it is not necessary for the entire page to load
  10. thanks ok, that was quick... which way should i go then... javascript?
  11. Is there a way for me to handle the sequence by which elements of the page are loaded on the browser via php? thanks
  12. to whom it may concern, just wanted to ask if there's a place where i might find installation instructions for php 5.+ on linux via source (.tar.gz file) i haven't had sufficient time to really get into it, so if anyone might know a straightforward guide for this that i may be able to use... better if included source installation for apache and mysql as well... btw, wouldn't it be helpful if we have sticky's for such, basic installations... options to install php get it going, wamp, xamp, windows-apache-mysql-php, linux-apache-mysql-php(using .tar.gz, using apt, using deb, using rpm...) it might sound like spoonfeeding, but i really just want to focus on php-mysql development more than anything else, thanks
  13. ei there, just in need of enlightenment regarding the behavior of autocommit, would it matter overly if i had to call global functions in between autocommit set to false and autocommit set true?
  14. thanks everyone, it's nice to know that there is no problem with the tarball, i was forced to have a friend download it for me on a non too secure network... sorry for the trouble, i just had to be sure there's nothing wrong with the file itself
  15. ok here's what i get violation of compressed file restriction - does this indicate a restriction from our server? curiously, i can still download the mysql tar.gz which is about 60 Mb as opposed to php being less than 10 mb i've had a friend download it for me, he zipped it into rar format and mailed to me... but still i can't access / download the deformed file...??? it was renamed double2x.rar
  16. i've been having problems trying to download php-5.2.5.tar.gz is there something going on with this release... i've been able to download the recent mysql tar.gz release... so i'm sure it's not a download restriction problem, since it's the same file format and an even larger file at that... aside from the php site, the only other site i've seen hosting the download is sunfreeware.com... the browser kept spitting virus detected, and deleted whenever the download did try to proceed
  17. it's quite unfortunate that i'm using an antique test pc... and eclipse appears to need a lot of resource, i'll just have to remain with Quanta, probably the next best thing for php projects
  18. notepad??? that's nasty... and that's only for win envi anyway... i really, really just need another editor that can help me go to the function declaration in a jiffy... it almost appears like very few editors might have that feature... like eclipse... really it's very useful on monster projects
  19. Hi everyone, I would just like to ask from everyone advice on which PHP editor to use, aside from eclipse( which really drags down my test box ) although the function tracing functionality it has is exactly what I need. I'm using Linux, btw... KDE offered Quanta Plus, but it doesn't seem to have the ability to link the function calls to the actual declarations...
  20. should i presume that, making references to a couple more pages of grouped functions would not drag down my server? ... well that was were i was headed at some point when i decided to re-evaluate my approach... i was starting to get to a point where i might do 5 require_once for every page...
  21. hi everyone, i've had more than a few years of programming... and only now did i get into web-based environment, or rather, web based programming envi. to make a more tangible inquiry let me site an example I've an entry form for a particular product line... it has 5 basic types... and tons of detail and related bill of materials one approach i can give here is to create a function for the layout of the page... with parameters for a number of inputs, and probably a couple of arrays... from there i can decide within the function on which configuration i can display an input page... at one end this does give me the advantage of maintaining the layout in one area( the function ), and apply any change easily to all configurations... but that's obviously the purpose of functions. however it worries me that php has to process this everytime, the page is requested by a client ( i'm not sure if i got that one right... i'm a rookie, admittedly). unlike coding for desktop executables that are compiled once. and the compiled version always available for execution by the users. Php seems to do the compiling of the page everytime the page is requested by a client(additionally, the creation and passing of variables, embedding the function into the calling page.. ) and i'm worried that it adds much load to the server( and i'm administering over a lan server machine that's already hosting another system and still acting as file server ). So it's pretty hard for me to gauge whether a 'common' block of code would be a good candidate for a function. ... hoping to get deeply intuitive responses from you guys, as always ( by the way, i think i tried to post this similar question but the php site seems to have undergone some repairs recently and i could no longer see if the post was registered ) (sorry guys, i did a more thorough search and yup i was successful posting it over a day ago (but surprisingly with no replies which is why could not find it in the link 'new replies to your post'... sorry, i am human, i do err
  22. hey guys, i just need a little bit of insight on this one I'm trying to weigh the pros and cons of using php functions... creating a modular program (though in some cases, only 2 or 3 pages may utilize the functions ) as opposed to just writing all the code in one page, and perhaps just separate the database query functions... let me give you a picture : i have a product line to be maintained in the system... i have 6 configurations/general types... they may have similar areas but also have some differences that may affect layouting on the input form so i'm not sure if perhaps i should just write one function that will take care of all these, and that would probably involve more than 3 parameters, and most certainly one array. on places on the layout i might have to do some case statements to handle for the variations, and in others an if then branching.... while it allows me to centralize all editing in only one spot/ function i believe it also adds load to php, that it would have to do some extra operations and passing some variables, writing the final layout to the calling page... and here i cannot decide firmly which approach to favor. or by which guideline i should adhere at some point i realized that this is not like creating a program that is compiled only once and then the compiled code executed the way it is, in its lifetime...
  23. from what i see, every time you hit your the first block or page, you're initializing the toupeeqty in your session variable to what was once previously posted. , you have to make a separate page/block where you initialize the session variable only once eg like if (isset($_SESSION['toupeeqty']){} else{ $_SESSION['toupeeqty'] = $_POST['toupeeqty']; } perhaps just initialize the $_SESSION['toupeeqty'] to zero from an initial page/mainpage after login, and then on all other pages where add to cart is available you'd just do your add block, and not have to reintialize the value of $_SESSION['toupeeqty']
  24. i'm usually using header() to redirect the page so my authentication form doesn't really show up, you're either redirected to the login page on a login failure, and i'd display 'incorrect id or password' or you get redirected the main page i wonder though if this is a good approach...
  25. i believe php has specific sorting functions for in a 'human' sense natsort() i think it might come in handy
×
×
  • 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.