1,003 Posted Topics
Re: Hi, You mean video and audio streaming? You will need to have an ffmpeg, mp4 box, flvtool2,mencoder and mplayer, ffmpeg-php capable server. You can also look into red5 media server as an option. Additional items you would need is a reliable flash player like the ones offered by jwplayer and … | |
Re: Not the best, but a nice place to [start](http://www.w3schools.com/ajax/default.asp) discovering what ajax could do. There are are books called ajax for dummies and javascript and ajax for dummies that are pretty good for learning the ajax language. I always read these books at my local library. | |
Re: Hi, on your function login, you can try setting the session for that username. for example, if(mysql_num_rows($query)== 1){ ## this user exists ## set session for this user session_start(); $_SESSION['thisUser'] = $username; } else{ ## do what you want to do on failed login } You protection function on top … | |
Re: It is all about port 80, the windows just won't allow it. Check your firewall settings or whatever windows security they have. If you have a flash drive handy, and if interested in discovering other server apps, try [portable nginx](http://tutpages.com/?p=910).. this is one fast server, but there is a limitation … | |
Re: Hi, The dreamweaver PHP test location should be directed to Drive:\xampp\htdocs\Your_dw_test_directory\ | |
Re: is this an apache server on linux ? Aside from running the server settings by default, did you modified any entries? If so, what are those entries..e.g. vhosts.conf, myPHPAdmin...etc.. Do you have .htaccess in or above that directory? can you post the < directory /> part of your httpd.conf example … | |
Re: Hi, Try this.. $password = md5($_POST['oldpass']); $newpassword = md5($_POST['newpass1']); $confirmnewpassword = md5($_POST['newpass2']); plese try if it work, if it does let us know. | |
Re: May I ask the OP, when you envision developing this site, did you write a barebone flowchart as to which file will include which one? The reason I am asking is that, in a project of this size, there should be a file manager. For a much bigger one, there … | |
Re: if you are running xampp on windows, there is no permission requirement (most of the time), but in linux CHMOD is a requirement, even if you are running your application as root. I just notice on your error notification tmp/::name.hsh it has Scope Resolution Operator (::), is it part of … | |
| |
Re: Hi, Can you please shade more lights upon us. Are you trying to parse the contents of the url? Is that it? | |
Re: You mean change this $sql="name, price from table1"; echo "<tr><td>Name</td><td>>Price</td></tr>"; if ($result=mysql_query($sql)) { while ($row=mysql_fetch_assoc($result)) { echo "<td>".$row['name']."</td>"; echo "<td>".$row['price']."</td></tr>";}} to this, right ? $sql="select name, price from table1"; echo "<tr><td>Name</td><td>>Price</td></tr>"; if ($result=mysql_query($sql)) { while ($row=mysql_fetch_assoc($result)) { echo "<tr><td colspan=2>".$row['name'].",".$row['price']."</td></tr>"; } } | |
Re: Hi, Updated: check this proxy [API](http://proxyipchecker.com/api.html). It looks pretty easy to use. | |
Re: Sorry, I have to remove it my response. I think you already got it sorted out.. | |
Re: If the site is requiring you to have cookies, then we can create a directory named tmp, this should be adjacent to your curl script. ## first we define a directory where to temporarilty store it $cookieDump = tempnam("tmp/", "cookies"); Now, add these to your cURL codes curl_setopt($ch, CURLOPT_POST, 0); … | |
Re: Do as suggested by caperjack, and then on another computer boot from CD with a live copy of [gparted](http://gparted.sourceforge.net/livecd.php), and then attempt to follow this [instructions](http://eyeoncomputers.com/articles/8-hardware/7-hard-drive-recovery-using-gparted). Another option that you may have is to use a software called [GetDataBack](http://www.runtime.org/data-recovery-software.htm) . However, this application may only work (NOT guarantee), if you … | |
Re: I guess we are locked out :). There must be a really big party going on in there and we are not invited :). ( I am just kidding of course, it could be something is wrong with the controller file). They will fix it for sure. ![]() | |
Re: Hi, When you run this script, is your computer connected to the Internet? If so, then we need to test your script outside the class. I am not sure if that class is even functional. Lets make a simple function that will load external xml file via cURL. here we … | |
Re: Hi, In html 5, if my memory can still serve me well, there is a function called "web storage" I am not pretty sure of the name, because I can't find a good search result on my desktop. However, this function can save the checked or any inputted data on … ![]() | |
Re: Hi, Copy, paste to notepad, save as info.php, upload to your server. <?php phpinfo(); ?> Direct your browser to this file.. Look for the following setting values max_execution_time max_file_uploads max_input_time post_max_size Let us know what you have..also what do you see on the Server API is it apache module or … ![]() | |
Re: Hi, The answer to your question can be found in [codex](http://codex.wordpress.org/Integrating_WordPress_with_Your_Website)..although the tutorial is about integrating wordpress with your site, you can easily create a new page where the tv shows are embedded, and then create a link on wordpress to your tv show page. I once wrote a tutorial … | |
Re: Try suggestions above and then try obfuscating your html source with [ioncube](http://www.ioncube.com/html_encoder.php).It is free to download. This may not help you 100%, but parsing scripts will probably have to be rewrite before they can grab your page. Most copy cats are from parsed data using a parser. If your html … | |
![]() | Re: @Mitch, It could be just a url stuff and nothing serious. If you could output the other data off from the same file, maybe it is just the directory reference mishaps. Did you try ../images/ On your image's src? Back to the case of smarty's iteration function.. I totally agree … ![]() |
Re: here is a promising [php class](http://code.google.com/p/php-google-map-api/). Another one is the [store locator with php and mysql](https://developers.google.com/maps/articles/phpsqlsearch_v3). By combining all these, I am pretty sure you can achieved something, but not the true gps as what we see in our automobile. more links for you to read [ajax related](https://developers.google.com/maps/articles/phpsqlajax_v3) [From Info … | |
Re: Double check your file extension.. or double check if your server supports short tags..My reasoning behind the short tags may not be allowed in your server is that, the only php codes showing on your screen shots are the part of your codes below the short tags. | |
Re: I am pretty sure this is [what the book is talking about](http://php.net/manual/en/language.control-structures.php).(Basic constructs). Not the same constructor, I thought it would be.. It should be called control structures.. | |
Re: Hi, On your vps account, what do you have? WHM panel ? or something else? What is your setting value for mysql.max_persistent You can read more of the most common settings [here](http://www.w3schools.com/php/php_ref_mysql.asp?output=print). Anything where it says php_ini system under changeable column can be adjusted or changed on your servers loaded … | |
Re: hi, can you echo this in the same directory as your script and one in the image directory. Whatever comes up, that is your working directory and the image directory . basename(__DIR__) | |
Re: Hi, Can you please show us your upload processor script. How does the script filter the extensions? for example list(, , $thisImagetype, ) = getimagesize($_FILES['image']['tmp_name']); if ($thisImatetype == 3){ $type="png"; }elseif ($thisImagetype == 2){ $type="jpeg"; }elseif ($thisImagetype == 1){ $type="gif"; } | |
Re: **WARNING! It is not my intension to promote any unauthorized content parsing. By using the script I have provided below, you are responsible for any copyright violations and damages it may caused.** **Knowledge is Power, but it can also destroy many things, if the probable consequencies are not evaluated, before … | |
Re: Hi, Do you mean from other server to your server?, or from server to your computer? | |
Re: Try [using partition editor](http://gparted.sourceforge.net/), it is really good. I highly recommend the live cd version . Warning! be careful with this tool. On your question about the boot menu , run your pc and then select linux mint. Open your terminal and type sudo gedit /boot/grub/grub.cfg This should brought up … | |
Re: This might be the code responsible for creating the salt. // Create a random salt $random_salt = hash('sha512', uniqid(mt_rand(1, mt_getrandmax()), true)); // Create salted password (Careful not to over season) $password = hash('sha512', $password.$random_salt); | |
Re: Hi, try chaging this <select> to this <select name="package"> So, when you do this $package = $_POST['package']; The value of the selected item from the option is posted. | |
Re: Here is a simple example of joins. I could have written this in shorthand form, but I will do it in long haul to make my points a lot clearer. Say, we have a table called students, and on this table we have id, name, username, password, email, course_num, and … | |
Re: cereal is precisely correct. If you know the package name, you can also type apt-get install [package-name] For example, if I want to install an nginx server on my ubuntu, I would type this on my terminal sudo -s // system will ask for password // I must provide the … | |
Re: Do as suggested above, and then make sure to have a copy of PHP objects, Patterns,and Practice by Matt Zandstra. This book have a really good example of the design pattern concept. If you read the book, you can take a look at his smarty sample of implementation, but it … | |
Re: you need to process the file first and then read... something like this, but you need to check if the form has been submitted.. ## define target directory for you the uploaded file $file_directory = 'someDirectory'; if(isset($_POST['submit']) && ($_FILES["file"]["error"] > 0)){ ## move the uploaded file to your specified location, … | |
Hello Everyone, I got bored reading PHP questions. So, this is probably the best time to add another article here at daniweb.com. If someone ever stumbled upon by boring blog (mini-tutorial), I talked about how light and simple is the tinybutstrong templating engine. However, I began to wonder why not … ![]() | |
Re: What are you trying to do with the loaded file? Edit it like in the wordpress theme editor? ![]() | |
Re: hi, what others meant by echo your query is something like this. <?php $title = 'this title'; $position = 'this position'; $cate = 'this cate'; $qry="Insert into postjob (jobtitle,positions,category) VALUES('".$title."','".$position."','".$cate."')"; //printf mysql_query($qry) or die(mysql_error()); echo $qry; Isolate the codes where you are having problems with. On the codes above... disable … | |
Re: Hi, think of it as localhost/ root account localhost/domainOne/ session is only effective here and nowhere else localhost/domainTwo/ the same thing here, session cannot be validated above this directory and below this directory while sessions stablished, in these directories are valid in directory domainOne localhost/domainOne/directoryone/ localhost/domainOne/directorytwo/ and the list goes … | |
Re: Hi, copy and save whateverFileNameYouWant.php, upload to your server, and then direct your browser to this file.. <?php phpinfo(); ?> Look for the following values, and they should have something more than 2MB at least 100MB or higher depending on your application post_max_size upload_max_filesize If those above php.ini settings still … ![]() | |
Re: Here is the extended response proving both of the responses above :) are true. <?php function check_bool($value){ return ($value == 1 ? 'yes' : 'no'); } $value = true; // this can be from database ## let us test the function above. echo 'This shows a true value : <b>'. … | |
Re: Hi, There is a place called codex, and this is the place where they revealed the ins-and-outs of wordpress from posting your first blog all the way up to migrating wordpress sites. If you are interested, [Click Here](http://codex.wordpress.org/WordPress_Lessons). There is a minor modification allowed inside the admin dashboard, but this … | |
Re: here is another one... :). <?php $string = 'abcd_23$_&'; if(!preg_match('/^[\w-]+$/',$string)){ echo 'oops! not a valid username'; } else{ echo 'Valid Username'. $string; } | |
Re: @davy_yg Why are you saying it is difficult to design it on your own? Have you tried it yet? Did you attempt to at least jot down how would your program will flow? A part of being a coder is to be able to write codes when there is no … | |
![]() | Re: @lastMitch, Here is an extremely simple example of inheritance where both the parent and the child has its own constructor. Looking at the code, the parent does not even know that the child class exist. Only the child knows that the parent class exist.., and yes we don't have to … ![]() |
Re: I love both of them, depending on application requirements. There is a neglectable performance differences between the two. MySQLI is somewhat faster than the PDO... however like what Pritaeas already mentioned, PDO can function and work in different environment. One specific reason out of all other reasons, why I would … | |
Re: on the php side, you can use the php built-in validate filters and sanitize filters.. $sanitized_email = filter_var($email, FILTER_SANITIZE_EMAIL); ## validate email by boolean response if (!filter_var($sanitized_email, FILTER_VALIDATE_EMAIL)){ ## email is a valid one } if you want to explore these amazing filters, you can read more about them [here](http://www.php.net/manual/en/filter.filters.validate.php). |
The End.