Jump to content

Search the Community

Showing results for tags 'programming'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • Welcome to PHP Freaks
    • Announcements
    • Introductions
  • PHP Coding
    • PHP Coding Help
    • Regex Help
    • Third Party Scripts
    • FAQ/Code Snippet Repository
  • SQL / Database
    • MySQL Help
    • PostgreSQL
    • Microsoft SQL - MSSQL
    • Other RDBMS and SQL dialects
  • Client Side
    • HTML Help
    • CSS Help
    • Javascript Help
    • Other
  • Applications and Frameworks
    • Applications
    • Frameworks
    • Other Libraries
  • Web Server Administration
    • PHP Installation and Configuration
    • Linux
    • Apache HTTP Server
    • Microsoft IIS
    • Other Web Server Software
  • Other
    • Application Design
    • Other Programming Languages
    • Editor Help (PhpStorm, VS Code, etc)
    • Website Critique
    • Beta Test Your Stuff!
  • Freelance, Contracts, Employment, etc.
    • Services Offered
    • Job Offerings
  • General Discussion
    • PHPFreaks.com Website Feedback
    • Miscellaneous

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL








Donation Link

Found 9 results

  1. Good Afternoon Ladies & Gentlemen, I am interested in learning php programming. I do not have any programming background in any other programming languages be it computer programming (C, C++, C#, Perl, Java, etc.) or web programming ( Server Side: Php, Perl Cgi, Python, Ruby on Rails; Clientside: Javascript, Xml, Xhtml, CSS, etc.). I only know basic Html and currently use a bot programmign tool "Ubotstudio" but that's all. Can you be kind enough to recommend me a paper book where I can learn php without getting confused ? It must teach the latest stable version. Q1. Which php version is stable and which version is installed on webhosts the most ? 5.5.8 ? If so, where can I get a paper book to learn it or where can I learn it online from some free tutorial ? I actually prefer to learn it from a paper book as I am not always connected to the internet. I am using internet cafe to send this message/post. I was just checking Amazon now but a lot of books meant for the beginners have got bad reviews/ratings from customers and that has left me confused and worried. The book must be for total beginners and not for intermediate or advanced programmers. It must not leave out any basics but teach it. Must teach the full default library (all the "Commands", "Functions", "Sub functions", "Syntaxes" or whatever that exists in the language from top to bottom and not miss out anything. Must teach the full grammer of the language and not leave-out anything). You may recommend any free tutorial websites too but like I said I actually prefer to learn it from a paper book as I am not always connected to the internet. I am using internet cafe to send this message/post. Q2. What is Php frame work ? Reusable code blocks meant for a specific task such as deal with database, etc. ? If so, I'm not interested in getting into heaviuly learning one framework and not learn the full language. No good being just an eye specialist or a bone specialist (one field only). Might aswell be a general doctor (GP) that knows a little bit of all fields. I think you know what I mean. Let's learn the basics of the general stuffs first (the core of the language), I can them later-on move-on to other fields such as database, etc. And so, the book must not concentrate on one field only such as to build CMS or Social Network Account Logins or Forums or Database (MySql) because then I'd only learn one aspect of php and not the basics. In short, I want to learn the basics of the language and get a strong background in it. I prefer to build php scripts for Unix/Linux, Apache Webserver using MySql database. Book must teach step by step. Must teach A, B, C then 1, 2, 3 and 1+1=2, 2*2=4, 5-2=3, 25/5=5 and so on before jumping into the algebra and geometry (if you understand what I mean when we speak in terms of learning basic English and Maths). I don't want to program in one version and then see my webhost uses another version. Currently, my webhost is Hostgator. If I have come to the wrong department/category then kindly forward this message/post to whoever can help. I await every php lover's reply. Q3. Where did you learn php ? WHich website you used and which paper book ? Were they good or not so good or bad ? PS - What do you think about this book: http://www.amazon.co.uk/PHP-Programming-Ultimate-Course-Beginners-ebook/dp/B00PSNRK16/ref=sr_1_12?s=books&ie=UTF8&qid=1429028734&sr=1-12&keywords=php+5 It seems it's not a paper version. Do you reckon it will do the job or not ? PPS - if you can't recommend any paper books then do you recommend any website where I can go and printout the tutorials ? The website must qualify all that I said earlier about the book. Anyway, I was expecting the Php Board to provide basic teachings of the language on their website but I'm disappointed to see they don't! Thank You Mr. Ali
  2. Hello guys, I have a question about how to insert a multiple query into database i have the following html form <div class="input_fields_wrap"> <button id="remove_field">x</button> <?php $query = mysql_query("SELECT * FROM producten"); ?> <select name="Producten[]" id="Producten"> <div><?php while($row = mysql_fetch_array($query)){ echo "<option>" . $row['Producten'] . "</option>"; }?> </div><input type="text" name="ProdOms[]"> <input type="text" size="3" name="Aantal[]"> <input type="text" size="3" name="Prijs[]"> <a href="javascript:void(0)" onclick="toggle_visibility('popup-box1');"><img src="../img/icons/info.png" height="16" width="16"></a> </select> </div> So this is the html form what I'm using i have 15 of these. It deppents how much the user would like too use for example he/she want to use 2 form like this fill it in and insert into the database.
  3. Hi Everyone. I need help. I need to find or make a software/page with the table which would allow multiple users to edit and put in values simultaneously. So, how i see it is that there is a table in front of several people, with certain data, e.g. different car names, and when one person puts a tick, as in to say, yes i want tht car (others will know the meaning), all the other users using the software or being on the page would instantaneously see that there is a tick next to this car for example, and beside the tick there would be an initial or a full name of the person who put the tick which would be filled in the cell automatically and all the users would be able to see it in realtime. Also an undo feature is good to have, in case a tick is put next to the wrong cell (e.g. car). I have tried using the Microsoft Excel to be shared by several users, however it proved itself to be inefficient as it cannot update realtime, the user has to save the document... Several of these tables might be needed, however, it would be handy if one person would create some similar table, they would be able to share it with other people for them all to use it simultaneously. Also if different people could have different colors assigned to them Something along the lines of: Please Help. I have very little knowledge in programming and php, have had some experience with html - if this helps at all...
  4. Hello, I am working on creating an XML document. I am trying to accomplish following format, but the code I wrote is giving me different result. I need some help on which type of loop I can use, so I can store all the Env in one element as a attribute. Output I am trying to accomplish this: <Applications> <App AppName="NotePad++"> <Env Prod="server1,server2" DEV="devserver1,devserver2" /> </App> <App AppName="7Zip"> <Env Prod="server3,server4" DEV="devserver3,devserver4" /> </App> </Applications> But, I am getting this: <?xml version="1.0" ?> <Applications> <App AppName="NotePad++"> <Env Prod="server1" /> </App> <App AppName="NotePad++"> <Env Prod="server2" /> </App> <App AppName="NotePad++"> <Env DEV="devserver1" /> </App> <App AppName="NotePad++"> <Env DEV="devserver2" /> </App> <App AppName="7Zip"> <Env Prod="server3" /> </App> <App AppName="7Zip"> <Env Prod="server4" /> </App> <App AppName="7Zip"> <Env DEV="devserver3" /> </App> <App AppName="7Zip"> <Env DEV="devserver4" /> </App> </Applications> Here is the code I wrote: Foreach ($application as $app) { Foreach ($serverlist as $serverenv) { if ($serverenv['appid'] == $app['id']) { $appchild = $doc->createElement( "App" ); $appattr = $main->appendChild($appchild); $appattr->setAttribute("AppName", $app['appname']); $envchild = $doc->createElement("Env"); $envattr = $appchild->appendChild($envchild); $envattr->setAttribute($serverenv['Environment'], $serverenv['servername']); } } } echo $doc->saveXML();
  5. Okay, here's a question for the collective conscience that is PHP Freaks. How do you overcome a serious (or even moderate) case of Developers Block... I mean I'm hang'en round forums, answering posts, playing my guitar, talking to the walls, you name it. Just can't seem to get past a particular juncture in an development process. It's not a syntactical issue and I have a road map and all that best practice stuff... Its a motivation issue. You get about 5K + lines of code in to a project and POW... You hit a wall... Any and all suggestions are appreciated and will likely be at least considered as viable options.
  6. Hello phpfreaks I found a basic php upload script which i find really useful but I have a problem, I'm new to php programming and need help in this code: <? $upload = $_GET["upload"]; if ($upload == "now") { $path1 = "uploads/"; $path="$path1".$_FILES['ufile']['name']; if($ufile !=none) { if(copy($_FILES['ufile']['tmp_name'], $path)) { echo "Success!<BR/>"; echo "<META HTTP-EQUIV=\"Refresh\" CONTENT=\"2; URL=uploads/\">"; } else { echo "<font color=red><b>Error!</b></font>"; } } } else { ?> <table width="250" border="0" align="left" cellpadding="0" cellspacing="1"> <tr> <form action="?upload=now" method="post" enctype="multipart/form-data"> <td> <table border="0" cellpadding="3" cellspacing="1"> <tr> <td>Select file <input name="ufile" type="file" id="ufile" /></td> </tr> <tr> <td align="left"><input type="submit" name="Submit" value="Upload" /></td> </tr> </table> </td> </form> </tr> </table> <a href="uploads">View Uploads</a> <? } ?> I want the script to change the name of a file to random numbers after being uploaded for example: If a person uploaded a file called: "catherine.jpg" The script will automatically rename it to: "1231421421421.jpg" while providing a link to the uploaded file. How can I do that? any help would be appreciated Thanks in advance, and sorry for my bad english.
  7. I want to know How to implement following tech stuff. And I want to know any existing api / plugin/ ready to use logic is available for this. I want to design custom search engine which can search to specific websites. and we can add/edit/delete websites from search results. Like In a google if we want to search a keyword from 5 diff sites "best ecommerce" site:www.A.com OR site:www.B.com OR site:www.C.com OR site:www.D.com OR site:www.E.com So we get result from this sites only. So Please letme know is there any plugin available in wordpress, .net, etc
  8. The code below works great. It pulls data from a MySQL database & displays it in a form. The DB consist of a table named clerk_names & the fields are clerk_id, names, and active. There will always be only 10 entries in this DB. The code below pulls the name & marks the active field from a 1 to a 0 for the particular random name it pulls. Like I said this code works great except I need to add an IF or ELSE or ELSEIF statement so if all the active fields are set to 0, it will mark all 10 of them back to a 1. Basically, once the 10 active field is marked to a 0 with the code below I just need something to mark all of them back to a 1 in the active field.........is this possible? <?php $mysqli = new mysqli('localhost', 'uname', 'password', 'flow'); $sql = "SELECT names, active, clerk_id FROM clerk_names WHERE active = '1' ORDER BY RAND() LIMIT 1"; $res = $mysqli->query($sql); $row = $res->fetch_row(); $randomName = $row[0]; $res->free(); $sql = "UPDATE clerk_names SET active = 0 WHERE clerk_id = " . $row[2] . " " ; $res = $mysqli->query($sql); } mysql_close(); // Close the database connection. ?>
  9. Hello, I am trying to send some hex bytes to a remote socket to switch off a display. I have a java applet which is able to switch off the display by opening a socket. I have tried creating a socket in php and writing the bytes but its doesn't work. I have captured with wireshark with each program does and the php program sends multiple frames where as the java one just sends one. I have attached both wireshark capture files (remove the .txt suffix) and my php code. I am using a wxbinder with my php code which explains some of the functions. The java applet & source code can be found here http://networktools.sourceforge.net/ Is there any way I can use php to send exactly the same frames / packets as the java applet? If you need any more info please ask Thanks, Dan from networktools.txt from php app.txt php-socket.txt
  • 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.