1,003 Posted Topics
Re: hi, here is a [demo I made](http://tutpages.com/youtube2.php), you can copy the source code if your want. Make sure the video ids are added as shown in the source code. You cannot play all of them at the same time, but one at a time on click event. The most important … | |
Re: I totally agree with jmaat7.. I also have xampp and eclipse on a flashdrive.. I even have the static ffmpeg to work with the ffmpeg-php in my thumb drive. My portable eclipse is a portable eclipse php version can be downloaded by [Clicking Here](http://sourceforge.net/projects/eclipseportable/files/Eclipse%20Portable%20%28PHP%29/). I saved about 50MB of space.. … | |
Re: try $these_items = NewPos($mk_pos,$pos_member,$prev_num,$prev_loc,$type,$under_mem,$sent_id); ## loop through the output foreach($these_items as $pos_id){ $position = $pos_id[0]; $follow_id = $pos_id[1]; } | |
Re: Hi, Try adding... if(isset($_GET['q'])){ ## codes for the script response when GET is triggered $q=$_GET["q"]; } else{ $q = ''; } Alternatively, I keep on seeing this type of approach by other developers of which I have not tested or ever tried, but I think it is worth teting for … | |
Re: just to add some very important info. on your php function usage, session_register has already been deprecated and removed in php 5.4. So, if you will be writing an application based on this function, it might not work in production server of which the majority now are using php 5.4.x. … | |
Re: Hi, You need to run this simple script on your server <?php phpinfo(); ?> First, look for the value of **Server API ** is it Apache module or apache handler? Yes? You need to add this on your .htaccess file or create one if you don't have it. php_value upload_max_filesize … | |
Re: @MB.ShadowFox, LastMitch is correct. Since Im already typing something in response to your question, why not do it something like this. but this does not happen very often..only when my mood is good (caffeinated). ## protect your script from getting undefined index in php 5 just in case itemnumb.png does … | |
Re: Hi, Try searching from my older posts in daniweb. I wrote at least two functional upload scripts like this, even with the image to BLOB fucntionality. Just a friendly advice, please make sure to describe the problems first, before posting your PHP code.. | |
Re: Will the data from $login will be encrypted? As long as the data are sent and processed by script ( php to php ), I don't see any possibilities for human to hack whatever is sent by the php script to another server. Paypal API works the same way as … | |
Re: Just to add some simple ensight, the $s don't even matter it is merely a place holder, because it is there waiting for whenever the class is called upon. So, we can replace the $s = new static with return new static(); this class will still continue to return the … | |
Re: Hi, This should not be too hard to do. You can start by writing a simple function to do the db insert, and then call this function or method whenever there is something to be inserted. for example, we can create something like this..* WARNING! Script below is not tested. … | |
Re: I aplogize for the interruption. Is this what you're trying to achieved? [Click Here](http://tutpages.com/ytube/index.php). That's random video from youtube with at least 99.00% accuracy.. of course, the remaining 01.00% can be given to the script load error. | |
Re: Just my thoughts about your school. I think programming should be systematic, most importantly if it is being teach in academic environment. Internet is an excellent resources, however the basic foundation of programming should be propagated within the classrooms first, and then external resource can build upon this foundation learned. … | |
Re: Hi, This is what I am currently using, but my script records the IP of the visitors and the members as well, so that I can show who is online with their respective country flags based on the remote address. Since I don't know your database instructures, I will use … | |
Re: have you seen [This](http://www.maxmind.com/app/javascript_city) ? Hold on, free is with limited features though.... This code should be able to do it <script language="JavaScript" src="http://j.maxmind.com/app/geoip.js"></script> <br/>Country Code: <script language="JavaScript">document.write(geoip_country_code());</script> <br/>Country Name: <script language="JavaScript">document.write(geoip_country_name());</script> <br/>City: <script language="JavaScript">document.write(geoip_city());</script> <br/>Region: <script language="JavaScript">document.write(geoip_region());</script> <br/>Region Name: <script language="JavaScript">document.write(geoip_region_name());</script> <br/>Latitude: <script language="JavaScript">document.write(geoip_latitude());</script> <br/>Longitude: <script language="JavaScript">document.write(geoip_longitude());</script> <br/>Postal Code: … | |
Re: Do you mind if I ask you this.. who originally wrote the php.php was it Valums? or was it part of axiom ? Without retracing the original working codes, it will be pretty difficult for us to analyze and find the actual part of the script that is not working … | |
![]() | Re: Hi LastMitch, Long time no see :). I have a few school days off. Anyways, the form input type attributes are the following.. let see if I can them out of my head. I have not seen forms for quite sometime now. text, hidden, submit, button, image, reset, checkbox, file, … ![]() |
![]() | Re: Hi, Do you own the site? Yes -> use cache and save it as html file. No-> use HTML parser like simple DOM parser. WARNING! Be careful when using DOM parsers. You can either ask permission from the site owner to harvest and save the data from their site.. Example … ![]() |
Re: Hi, Which document did you edit? Is it the apache\conf\httpd.conf? How was the modified entries added ? formatting wise ..e.g DocumentRoot "/xampp/theOneYouAdd" Default value for XAMPP DocumentRoot "/xampp/htdocs" | |
Re: Hi, The problem with the codes are your variable names they are all the same. The script will only show the very last one, because it will override the first two. If you want it to work, then use *.= (concatenating assignment operator)* . something like this.. $str_bodystyle = ""; … | |
Re: @gacoekchip.pokher If you just want to add the text string in column "message" of table "b_table", then you can prepare your query like this... not the most efficient, but I want to leave some space for you to experiment in these very important aspects of PHP and MySql. To Select … | |
Re: Change this else { // Confirm the successful log-in echo $login_name || $user_id; || "<a href=\"logout.php\">Logout</a>"; } to this else { // Confirm the successful log-in echo $login_name."|| ".$user_id." || <a href=\"logout.php\">Logout</a>"; } | |
Re: Hi, **!WARNING! EXAMPLE script below, does not have any security protection of any kind. Please read or search more about security measures in PHP. Most importantly, if mysql is involved. DO NOT USE example below in production server.** I consider myself as a newbie in coding java . The last … | |
![]() | Re: @lastMitch, Here is a sample script I posted months back. This one is a multi-file uploader, but you can easily remove the form elements that you don't need.. **!DISCLAIMER! HTML is not my strongest area in any of the coding languages.** filename: upload.php <html> <head> </head> <body> <table width="500" border="0" … ![]() |
Re: Hi, yOu can probably get by this using md5 ,uniqid, and rand combination like shown in the codes below. YOu can arrange your codes in such a way as $filename = md5(uniqid(rand())).".".$ext; $target_path = "YourDirectory/".$filename; if(move_uploaded_file($file_tmp, $target_path)) { ## rest of your codes here } Where? ext = to the … | |
Re: Hi, I can't write a mysql tutorial here due to the limited space, and besides Internet has already got bunches of them that it is almost redundant to post it here. Please follow this tutorial [Here](http://www.freewebmasterhelp.com/tutorials/phpmysql) , and then come back to this thread if you bump into troubles. When … | |
Re: HI, You need to ask the 000webhost what is the limit file size for upload. By default, the limit is somethere below 32MB. If your file size is more than the default value, the upload will just eventually terminate without warning or notification. try saving this as filesize.php <?php $thisMax … | |
Re: try rewriting VALUES ('$from','$custname', to something like this.. VALUES ('".$from."','".$custname."', Do the same for the rest of it.. It is so easy to fall into this coding style {$from}, {$custname}, but that would be slower than just using concatenation operator . Using concatenation operator is a good practice, in eliminating … | |
Re: Hi, You can also try this code.. if it does not work in your server settings, you need to use cURL to fetch the xml file off google. For now, let's try this first. This is just one of the three methods we can parse xml DATA... Pretty much the … | |
Re: Hi, This code if($_POST['formSubmit'] == "Submit") will eventually give you an error like .... error Undefined index: formSubmit, because it is not supported in newer version of php. The most common and acceptable is if(isset($_POST['formSubmit'])) { ## rest of your code here if the form has been set } | |
Re: how is your error_reporting set in your xampp php.ini file?? sample error reporting on php.ini file . NOtE! error_reporting = E_ALL ^ E_STRIC has been deprecated some time ago and the E_ALL is the one takes the helm from php 5.4 error_reporting = E_ALL for the php page, you can … | |
Re: Can you please give us some codes or the actual data posted in your database table.. e.g. embed codes, and the php responsible for posting and playing the video on your page.?? Because 403 error can be as simple as url directed to directory. | |
Re: The problem maybe in ".$row["website"]." it should be something like this ".$row['website']." However, I just realize that my argument above, may not be feasible. Until, we are sure that the $row['website'] really exist in your database. What is the value of the column website on your database? | |
Re: I really don't see any problem with the database migration to your own cms script, as long as you maintain the same database query used by the tomato.. AND as long as you know the database structure, you should not have any problem in doing any CRUD on it.. | |
Re: Hi, I must have posted answers to this type or related question in the past. Here we go again take Four.. I want to do this my way, or we can just take the highway.. First, we create our new books.xml file <?xml version="1.0" standalone="yes"?> <books> <book> <author>Poor Boy or … | |
Re: Hi, There is an online service called carbonite, that is the closest thing I could think of right now. | |
Re: Hi, This is not a direct response to your questions. I can rewrite your entire codes to make it functional if I want to. However, I don't want to deprive people from the wonders and benefits of learning. Below is the simplest SAMPLE codes I could come up with inheritance. … | |
Re: This method getDataInArray() is it a method from the same class? If so, it should be coded like this $personal->personal= self::getDataInArray(); Try using the parent and self thing so that it does not give you any confusion during future edits.. | |
Re: try echo '<link rel="stylesheet" type="text/css" href="style.css" />'; | |
Re: In practice, holes and vulnerabilities of php script becomes probable the moment you type something between the tags below. Before you ventured in writing codes, keep this in mind at all times.. php has a bad twin brother and is equally powerful as php, and this brother's job is to … | |
Re: Hi, As far as I know, maybe I am wrong on this, but we cannot invoke the parent's parent's constructor in the grandchild's class... ( we could but it is really tricky,,, and that is not commonly used). here is a simple enheritance with the invoked constructor in the child. … | |
Re: Hi, for the editor notepad++ will do. It maybe not the best out there, but that's what I use all the time and it support programming languages from ADA to YML.. Learning C , before learning C++ would not hurt. In fact, it will give you a really good foundation … | |
Re: Hi, Do you mean first frame as image? or first frame up to some set time frame as video? if you only need the thumbnail, then thats pretty easy I think.. here is a [demo ](http://veedeoo.com/formtest/ytlatest.php?q=ac+dc&start-index=1&i=50&orderby=viewCount&submit=Search)of my not-so-alpha-buggy-trash-bin NON-Zend dependent Youtube API .First public preview :). Script is not available … | |
Re: Hi, I wish I could read at least something on your linked website, then I can probably help you. Anyways, I think curl will do it for you,.. you just have to look at the source of the form. Look for the name value of the submit button and then … | |
Re: Hi, take this for your consideration... on your form method it show post. I am assuming here that the above script is called cart.php as shown in your form codes below. <form action="cart.php" method="post"> <input type="hidden" name="action" value="update" /> while you are processing it as $_GET as shown on your … | |
Re: Hi, First, can you please let us know the format of these videos? Depending on the format, requires different player.. e.g. flash for flv and mp4/h264, divx player for divx and avi, and the list goes on... | |
Re: Hi, I wrote something like this, but I am always hesitant to share it to general public, because there are some great security risks and vulnerabilties ,if not protected well enough against unauthorized entries. ![]() | |
Re: there is a php function called reflection class as shown [here](http://www.php.net/manual/en/reflectionclass.newinstancewithoutconstructor.php), but never tried it. | |
Re: Hi, for your form question, you can rewrite your codes like this.. <?php if(isset($_POST['submit']) && (!empty($_POST['user']))){ echo $_POST["user"]; } else{ ## we show the form below ?> <html> <body> <form action="" method="post"> <input type="text" name="user" placeholder="enter a text" /> <br/> <input type="submit" name="submit" value="submit"/> </form> </body> </html> <?php } ?> … | |
Re: Hi, I think it should be md5_file($file), as shown in the function description [here](http://php.net/manual/en/function.md5-file.php). |
The End.