1,003 Posted Topics

Member Avatar for firdousahmad

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 …

Member Avatar for veedeoo
0
1K
Member Avatar for daniel36

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.

Member Avatar for daniel36
0
157
Member Avatar for GraficRegret

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 …

Member Avatar for GraficRegret
0
273
Member Avatar for itsmeurdude

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 …

Member Avatar for veedeoo
0
389
Member Avatar for prince.soni.775

Hi, The dreamweaver PHP test location should be directed to Drive:\xampp\htdocs\Your_dw_test_directory\

Member Avatar for prince.soni.775
0
358
Member Avatar for sarithak

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 …

Member Avatar for veedeoo
0
145
Member Avatar for RaeesIqbal

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.

Member Avatar for simplypixie
0
252
Member Avatar for SunnySideUp

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 …

Member Avatar for SunnySideUp
0
433
Member Avatar for LONGWAY

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 …

Member Avatar for LONGWAY
0
242
Member Avatar for piyush.dwivedi.5
Member Avatar for persianprez

Hi, Can you please shade more lights upon us. Are you trying to parse the contents of the url? Is that it?

Member Avatar for AleMonteiro
0
337
Member Avatar for mathieu89

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>"; } }

Member Avatar for mathieu89
0
187
Member Avatar for Resentful

Hi, Updated: check this proxy [API](http://proxyipchecker.com/api.html). It looks pretty easy to use.

Member Avatar for Resentful
0
183
Member Avatar for Suzie999

Sorry, I have to remove it my response. I think you already got it sorted out..

Member Avatar for Suzie999
0
281
Member Avatar for ganesh641

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); …

Member Avatar for veedeoo
0
5K
Member Avatar for kashifbhatti

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 …

Member Avatar for kashifbhatti
0
353
Member Avatar for cereal

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.

Member Avatar for diafol
2
268
Member Avatar for OsaMasw

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 …

Member Avatar for OsaMasw
0
3K
Member Avatar for varma51

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 …

Member Avatar for diafol
0
122
Member Avatar for dancks

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 …

Member Avatar for diafol
0
265
Member Avatar for dalilice

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 …

Member Avatar for blocblue
0
252
Member Avatar for kassadb

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 …

Member Avatar for <M/>
0
171
Member Avatar for LastMitch

@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 …

Member Avatar for LastMitch
9
1K
Member Avatar for amulet_john

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 …

Member Avatar for veedeoo
0
288
Member Avatar for hwoarang69

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.

Member Avatar for hwoarang69
0
190
Member Avatar for Clanstrom

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..

Member Avatar for veedeoo
0
142
Member Avatar for Resentful

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 …

Member Avatar for Larry_Singleton
0
151
Member Avatar for dancks

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__)

Member Avatar for dancks
0
108
Member Avatar for ghersese

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"; }

Member Avatar for veedeoo
0
3K
Member Avatar for axymak

**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 …

Member Avatar for veedeoo
0
1K
Member Avatar for amith_ami
Member Avatar for picassokaka
0
6K
Member Avatar for vinodvinu

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 …

Member Avatar for rubberman
0
551
Member Avatar for Behseini

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);

Member Avatar for veedeoo
0
356
Member Avatar for Ayinainsoph

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.

Member Avatar for Ayinainsoph
0
586
Member Avatar for mpc123

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 …

Member Avatar for veedeoo
0
157
Member Avatar for makeuni

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 …

Member Avatar for CimmerianX
0
178
Member Avatar for ak47carbon

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 …

Member Avatar for veedeoo
0
209
Member Avatar for rubai

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, …

Member Avatar for rubai
0
203
Member Avatar for veedeoo

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 …

Member Avatar for diafol
1
1K
Member Avatar for apanimesh061

What are you trying to do with the loaded file? Edit it like in the wordpress theme editor?

Member Avatar for LastMitch
0
181
Member Avatar for kiLLer.zoh

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 …

Member Avatar for GliderPilot
0
112
Member Avatar for webdev2012

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 …

Member Avatar for veedeoo
0
469
Member Avatar for aldred

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 …

Member Avatar for LastMitch
0
612
Member Avatar for websponge

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>'. …

Member Avatar for websponge
0
763
Member Avatar for suavedesign

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 …

Member Avatar for veedeoo
0
127
Member Avatar for NardCake

here is another one... :). <?php $string = 'abcd_23$_&'; if(!preg_match('/^[\w-]+$/',$string)){ echo 'oops! not a valid username'; } else{ echo 'Valid Username'. $string; }

Member Avatar for phorce
0
169
Member Avatar for davy_yg

@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 …

Member Avatar for davy_yg
0
243
Member Avatar for LastMitch

@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 …

Member Avatar for LastMitch
4
307
Member Avatar for xbat

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 …

Member Avatar for veedeoo
0
223
Member Avatar for ello

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).

Member Avatar for veedeoo
0
2K

The End.