Php payment solutions?
I am creating a php/mysql application for a university project and I am looking for any possible solution to allow users to buy from my site . ...
I am creating a php/mysql application for a university project and I am looking for any possible solution to allow users to buy from my site . ...
im using php if i have an uknown length of a string being outputted how can i limit it to only 16 characters to be outputted? ...
I'm trying to write someting into the DB using PHP but if I try to use mysql_real_escape_string() I don't get any errors but nothing gets saved into the DB and I don't know why =/ specially because I did the same on another PHP file and it worked perfectly... <?php if(isset($_POST['reporte'])) $falla = $_POST['reporte']; else ...
Hello, I need to generate a list of activity from multiple tables in order of the date they were entered into the tables, but when i spit them out (with php), i want each result to look specific to a design that i have for each table. ie...i have the tables: listings, photos, comments -the results from listings should be designed...
Assume color = "orange"; Ruby: puts("My favorite color is #{color.downcase() + 'ish'} -- at least for now."); PHP: print("My favorite color is {strtolower( $color ) + 'ish'} -- at least for now."); The PHP version does not work like I would like it to. I'm not looking for any language wars, I just want to know if anyone knows of a...
Hi I make an AJAX request like so using JQuery: $.ajax({ type: "GET", url: "getvideo.php", data: 'videoid=' + vid, I use firebug to tell me whats going on and it tells me a 500 internal server error has occurred? wtf Here is part of the script concerned: $videoid = $_GET['videoid']; $get = new youtubeAPI(); $get...
Does anyone have any idea as to when the Google App engine will support PHP? ...
Lets say I'm building a base class which will be extended upon by the children class. So a base class is called Base and children can be Child1, Child2, etc. In the base class's constructor, how can i get the value of Child1/Child2? This is all using PHP ...
Hi, I'm using CakePHP with $modelName->find(...) calls to select quite a number of rows (could be hundreds) Normally, in PHP/MySQL of course this wouldn't be a problem, as you fetch them in a while loop. But, CakePHP loads all rows in to an array which exhausts the memory limit. Is there a way to use the $modelName->find(...) construc...
I have a certain PHP script that calls exec() to execute a command to convert a PDF to JPG. This command works fine in bash. To preempt your initial troubleshooting guesses, note the following: safe_mode = Off Permission on the directory containing the PDF and the script is set to 777, and this directory is also where the JPG is bein...
Hi. I would like to know some good resources (book or website) on learning PHP for those who are already familiar with programming. Many of the tutorials I've been finding are for people who never programmed before and take way to long to go through to even learn basic language constructs. The optimal resource would not assume previous ...
I have this code: if(!mysql_connect($host,$user,$passwd)){ die("Hoops, error! ".mysql_error()); } ...no error from here. if(!mysql_select_db($db,$connect)){ $create_db = "CREATE DATABASE {$db}"; mysql_query($create_db,$connect...
Hello all, I am downloading a file from another server. I wish to push this file to my users rather than saving it to my server. In other words, pass them the file handle so it just passes through my server and saves to their machine. How can I do this? I have this so far: $handle = fopen($_GET['fileURL'], 'r'); $filename = stream_ge...
I was wondering if there is a way to use php to return the values from a search without having to reload the whole webpage or using iframes or anything like that. I've tried searching for it but I always end up with AJAX and I was wondering if there is a PHP way for it... ...
Hi, I am new to programming language and I am using PHP and mysql. I got an assignment to do a hashtables in php. What I need to do is, store items that a user collected and then display it. After do some research over the internet, I will do the following steps when implement the hashtable, please correct me if I am wrong: Set up the ...
Hello, I have a object built through a factory containing my parameters read from the url. From this object, I can get the language parameter $language = $my_parameters->getLanguage(); $language is NULL if it isn't been set. $language may also be invalid ( $language->isValid() returns false ). So, to build my page, I need som...
I'm looking to create a URL string like the one SO uses for the links to the questions. I am not looking at rewriting the url (mod_rewrite). I am looking at generating the link on the page. Example: The question name is: Is it better to use ob_get_contents() or $text .= ‘test’; The URL ends up being: http://stackoverflow.com/questio...
I am a new php and mysql programmer. I am handling quite large amount of data, and in future it will grow slowly, thus I am using hash table. I have couple of questions: Does mysql have hash table built in function? If yes, how to use that? After couple of days doing research about hash table. I briefly know what hash table is but I ju...
Hi I'm using php and sql through odbc to write a program and i hav got abit stuck in a part where i want to display the current date/time in the format date('Y-m-d H:i:s) but it only displays the gmt time. I want to add 8hours to it.Can any of you b able to help me.Thank you so much ...
I know in php you are able to make a call like: $function_name = 'hello'; $function_name(); function hello() { echo 'hello'; } Is this possible in .Net? ...