PHP - Moved: In Need Of Coding Help - Offering Reward - (hope It Is Allowed)
This topic has been moved to PHP Freelancing.
http://www.phpfreaks.com/forums/index.php?topic=331336.0 Similar TutorialsHello, I'm Paul Ryan.
I am 23 years old and have around 8 years experience in programming with the following languages:
- PHP
- MySQLi
- HTML
- CSS
- JavasScript (jQuery, AJAX)
I have worked on many project over the years, including the following:
- BoxSelect.com
- Taccd.com
- FTA.ie
- BelfastCookerySchool.com
- Dittnyebad.no
- MassasjeShop.no
- Project: Universe (Personal Project)
I have worked on many other smaller jobs, updating outdated code, database and code optimizations etc.
You can contact me via the following methods:
- PHP Freaks Personal Message
- Skype: paulryanmc91
- E-mail: paul.ryan.mclaughlin@gmail.com
I am available to start work immediately whether the job be big or small, don't hesitate to contact me.
Thanks for your time, look forward to hearing from you.
Kind Regards,
Paul Ryan
Edited by PaulRyan, 17 October 2014 - 08:24 AM. I have a referal system. I want to have a reward for referring someone. I allocate a certain amount for the referal system (lets say $50). At level 1, nothing is given until you start referring people and the person(s) starts using the program. On level 2 you earn 9%($4.5 of $50) on level 3 you earn 27% On level 4 you earn 64% How do i go about this bearing in mind that a level 2 or 3, eventually becomes level 1 if he starts inviting people and those he invited starts using the program. Thanks I'm making a game in php and I'm wanting users to scan a QR code to get a URL, which takes them to a page on my website. I need the URL to have a parameter to identify the QR code and then be able to give the user a reward according to what QR code took them to the website. Anybody have any idea how I would go about this? Thanks. This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=350418.0 This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=354819.0 This topic has been moved to Application Design. http://www.phpfreaks.com/forums/index.php?topic=353714.0 This topic has been realloc()d to PHP Freelancing. http://www.phpfreaks.com/forums/index.php?topic=345803.0 This topic has been moved to Third Party PHP Scripts. http://www.phpfreaks.com/forums/index.php?topic=345250.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=326314.0 This topic has been moved to PHP Applications. http://www.phpfreaks.com/forums/index.php?topic=345920.0 Dear Forum, I have a problem that is getting the best of me due to the fact that it is hard to replicate and therefor hard to 'capture' in it's act. As I am not sure what the root cause is I apologize if this thread is posted in the wrong section. My possible guilty components are (PHP, Apache, MySQL, Mozilla Portable). Anyone that might have experienced what I experience and can help me to crack this one will be rewarded. Problem/Symptom: I have a application that stores data from a form in a GUI. This data is stored in the MySQL dB in individual columns and 95% of the data as serialized form. During the records life time it is uploaded from a Laptop to a central dB. This is where the problem starts. Sometimes (happens ones in around every 1000 records) the data when it is viewed on the central server have been contaminated with data from other records. On the only event I have examined the data was correct on the Laptop before upload even after upload which indicates that the contamination happened on the central level. Another finding was that part of the contaminated data came from a record that was uploaded two records later (in accordance with record ID numbering) then the contaminated record itself indicating that it has not happened during the transaction itself but at a later stage. Suspected Root Cause: In the beginning of the applications history the system had a record toggle functionality. When using this functionality and using the application with Mozilla Portable what was displayed in cash lost synchronization with MySQL and contamination occurred (this happened if toggling back and forward to fast). This was at the point in time a know bug/weakness in Mozilla Portable and was later corrected. After upgrading this part of the application the problem disappeared. (before it could be easily replicated). I cannot replicate this contamination and wonder if it still might be related to Mozilla Portable or if anyone else have experienced something similar? Happy to financially reward anyone that can help crack this one. Thank you for your time! This topic has been moved to Miscellaneous. http://www.phpfreaks.com/forums/index.php?topic=333654.0 This topic has been moved to MySQL Help. http://www.phpfreaks.com/forums/index.php?topic=343748.0 Hey guys,
I have a PHP wrapper which I need a html form made for. It's a very small bit of work
In exchange I will give you a 15€ Gift Voucher for my online website, we are a sweets and drinks store online!
You can email me at dubplates@safe-mail.net
Many thanks,
- D
This topic has been moved to Editor Help (Dreamweaver, Zend, etc). http://www.phpfreaks.com/forums/index.php?topic=355418.0 Ok, so i have searched everywhere for tips on how to include variables inside of a Redirecting url. I am lost. My code is he <?php ob_start(); #************ #Get all the form data #************ $name = $_POST['customersname']; $number = $_POST['number']; $amount1 = $_POST['amount']; $amount2 = $_POST['amount2']; $agentnum = $_POST['agentidnumber']; $returnlink = $_POST['returnlink']; $link = 'http://sapitalk.com/resellers/web_agent/agent_webservice.php?agent_key=$agentnum&customername=$name&phonenumber=$number&cardamt=$amount1&cardamt2=$amount2&returnlink=$returnlink'; #************ #Check Data #************ if ( $name == "" ) { #header( 'Location: http://www.cimiworldradio.com/sipitalk.php?name=no' ) ; echo '<META HTTP-EQUIV="Refresh" Content="0; URL=http://www.cimiworldradio.com/sipitalk.php?name=no">'; } if ( $number == "" ) { #header( 'Location: http://www.cimiworldradio.com/sipitalk.php?number=no' ); echo '<META HTTP-EQUIV="Refresh" Content="0; URL=http://www.cimiworldradio.com/sipitalk.php?number=no">'; } if ( $amount1 == "" ) { #header( 'Location: http://www.cimiworldradio.com/sipitalk.php?amount=no' ) ; echo '<META HTTP-EQUIV="Refresh" Content="0; URL=http://www.cimiworldradio.com/sipitalk.php?amount=no">'; } #************ #Contunue #************ #printf("<script>location.href='http://sapitalk.com/resellers/web_agent/agent_webservice.php?agent_key= . $agentnum . '&customername=' . $name . '&phonenumber=' . $number . '&cardamt=' . $amount1 . '&cardamt2=' . $amount2 . '&returnlink=' . $returnlink'</script>"); echo "<META HTTP-EQUIV="Refresh" Content="0; URL=http://sapitalk.com/resellers/web_agent/agent_webservice.php?agent_key=" . $agentnum . "&customername=" . $name . "&phonenumber=" . $number . "&cardamt=" . $amount1 . "&cardamt2=" . $amount2 . "&returnlink=" . $returnlink . ">"; #header( "Location: http://sapitalk.com/resellers/web_agent/agent_webservice.php?agent_key= . $agentnum . '&customername=' . $name . '&phonenumber=' . $number . '&cardamt=' . $amount1 . '&cardamt2=' . $amount2 . '&returnlink=' . $returnlink' ") ; #echo "http://sapitalk.com/resellers/web_agent/agent_webservice.php?agent_key=$agentnum&customername=$name&phonenumber=$number&cardamt=$amount1&cardamt2=$amount2&returnlink=$returnlink"; ?> The error i am getting is he echo "<META HTTP-EQUIV="Refresh" Content="0; URL=http://sapitalk.com/resellers/web_agent/agent_webservice.php?agent_key=" . $agentnum . "&customername=" . $name . "&phonenumber=" . $number . "&cardamt=" . $amount1 . "&cardamt2=" . $amount2 . "&returnlink=" . $returnlink . ">"; I can't find a way to set this up so the variables are inputed and the link redirects. I get this error: Quote Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home1/cimiworl/public_html/sipiitalk.php on line 37 Hopefully someone could give me some tips. Thanks! Hey guys/Gals ok, so if you want code let me know but in essence just a quick question to an unforseen issue. Were creating a virutal hacking simulation (for those who have been following me) and we just finised with the crack.php that compares the passwordcracker to the target users Systemkey (the piece that protects the target's pc from lower level attacks) if the passwordcracker is larger than the systemkey or equal to it, it will start the crack procress (that is simply a progress bar, then forward to userhome.php) issue were having right now is when the user attempts to crack but isn't high enough to do so it gives a message saying your software isn't high enough... ISSUE: if at this point I just go and type in userhome.php it connects me without having to crack it.. there is a session set in place that makes sure users are logged in the whole time but can't figure out how I can stop this from allowing access without a successful crack first.... any ideas would be greatly appreciated Thanks; desjardins, jeff Hi there I adapted the pagination tutorial from here on PHP Freaks so that it can deal with a db query. The pagination itself works just fine but I have a small issue, hopefully someone can help me please. I have set up the query so that it won't allow blank searches. The script works perfectly well without the pagination. With the pagination, the script now returns a few results as well as the 'you didn't enter a search-term' message - can someone help me tidy it up please? I'm guessing that I've put the search=$search term in too many places in the pagination script. This is the query Code: [Select] if (isset($_GET['search'])) { $searchTerms = trim($_GET['search']); $searchTerms = strip_tags($searchTerms); // remove any html/javascript. if (strlen($searchTerms) < 1) { $error[] = '<div class="messagebox">You didn\'t specify a search term</div></div>'; $error[] = '<div class="small"><a href="search2.php"><p>Search Again?</p></a></div>'; } else { $searchTermDB = mysql_real_escape_string($searchTerms); // prevent sql injection. } $sql = "SELECT * FROM pro_words WHERE word LIKE '%{$searchTermDB}%' ORDER BY word LIMIT $offset, $rowsperpage"; $result = mysql_query($sql, $conn) or trigger_error("SQL", E_USER_ERROR); $num_rows = mysql_num_rows($result); //display results if (mysql_num_rows($result) < 1) { $error[] = '<div class="messagebox">Sorry, your search term yielded no results.</div>'; $error[] = '<div class="small"><a href="search.php"><p>Search Again?</p></a></div>'; } else { echo '<div class="messagebox">Here are your search results.</div>'; while ($list = mysql_fetch_array($result)) { // echo data echo '<div class="small"><a href="word.php?w=' . $list['word'] . '">' . $list['word'] . '</a></div>'; } //end while } } This is the pagination Code: [Select] // range of num links to show $range = 3; // if not on page 1, don't show back links if ($currentpage > 1) { // show << link to go back to page 1 echo " <a href='{$_SERVER['PHP_SELF']}?search=$search¤tpage=1'><<</a> "; // get previous page num $prevpage = $currentpage - 1; // show < link to go back to 1 page echo " <a href='{$_SERVER['PHP_SELF']}?search=$search¤tpage=$prevpage'><</a> "; } // end if // loop to show links to range of pages around current page for ($x = ($currentpage - $range); $x < (($currentpage + $range) + 1); $x++) { // if it's a valid page number... if (($x > 0) && ($x <= $totalpages)) { // if we're on current page... if ($x == $currentpage) { // 'highlight' it but don't make a link echo " [<b>$x</b>] "; // if not current page... } else { // make it a link echo " <a href='{$_SERVER['PHP_SELF']}?search=$search¤tpage=$x'>$x</a> "; } // end else } // end if } // end for // if not on last page, show forward and last page links if ($currentpage != $totalpages) { // get next page $nextpage = $currentpage + 1; // echo forward link for next page echo " <a href='{$_SERVER['PHP_SELF']}?search=$search¤tpage=$nextpage'>></a> "; // echo forward link for lastpage echo " <a href='{$_SERVER['PHP_SELF']}?search=$search¤tpage=$totalpages'>>></a> "; } Thanks in advance for any help. How can I use an include file that has a list of links in any directory at my website without breaking those links? You can see it in action here... The links in this directory work... https://www.billelgin.com/primary-directory/ The links in this directory (being created from the same include file) do not work... https://www.billelgin.com/primary-directory/subsection-one/ Obviously the problem is the include file is being called from different directories, so it's breaking the relative path links in the include file, but what can I do to fix it? You can download the example directory structure here... https://www.billelgin.com/EXAMPLE.zip I'm having real difficulty with something that should simply work... I've got a script that reads files within a specific folder defined elsewhere. Then it returns the filenames (image files) to an array. Relatively simple, you'd think... Here's the process loop : Code: [Select] // Read directory for images @$dh = opendir($img_dir); while (false !== (@$filename = readdir($dh))) { if (($filename == '.') || ($filename == '..') || ($filename == 'Thumbs.db')) { } else { $files[] = $filename; } } There is a maximum of 4 images in each folder. This process will run once per page load. I have checked my php settings: memory_limit 256M post_max_size 64M upload_max_filesize 62M (just for good measure). IMHO 256m works for another site I developed which processes up to three images using imagemagick, and I've tested this with a 4mb png file too.... Yet I get this error : Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 35 bytes) in F:\html\bishopstrings\components\com_content\views\article\tmpl\default.php on line 43 This is telling me it's trying to allocate 35bytes when there is 268435456 bytes available... Yet this fails - any help |