- Strength to Increase Rep
- +4
- Strength to Decrease Rep
- -1
- Upvotes Received
- 6
- Posts with Upvotes
- 5
- Upvoting Members
- 6
- Downvotes Received
- 9
- Posts with Downvotes
- 8
- Downvoting Members
- 8
Re: Go ahead and try this : /** * @static * @param $filename * @param bool $comma * @return bool|string */ public static function getFileExtension($filename, $comma = false) { if (strrpos($filename, '.')){ $extension = substr($filename, strrpos($filename, '.')); return $comma ? $extension : substr($extension, 1); } else return false; } Also, make … | |
Re: Do this ... <?php $path= "http://localhost/tiffany/" ?> <script type="text/javascript" > var templateUrl = '<?php echo $path; ?>'; </script> <script type="text/javascript" src="<?php echo $path; ?>js/manuals.js"></script> | |
Re: Please Design you table in MySQL Workbench, I bet most of the people here will really appreciate this and will actually be able to help you. I will personally come back in one hour, if you provide more information I'll help you out with an explication how to do it … | |
Re: Your explanation skills are horrible, but, you can try this, we will consider that $information, if the array you've specified <?php // We consider by default the current page as 1 $current_page = (isset($_GET['page']) ? (int)$_GET['page'] : 1); // As we are using an unsorted array, and we want to … | |
Re: You're not a developer right ? It would normally be a copy - paste job, depends on the code and how messed it is. | |
Re: Try sending files trough SMTP, here's a tip http://rusuandreirobert.com/blog/2012/05/swift-mailer-quick-usage/ . For basic emails without attachements that should do, but Swift Mailer supports sending emails with files, so just edit my class for your needs | |
Re: name="upload" remove that from form params. Not sure if this is the problem, but worth a try | |
Hello everyone. I want to do this. I have a website for example www.rusuandreirobert.com . I want to create via PHP an email address 3rrgtbf@rusuandreirobert.com . I don't want to use this : http://$cpuser:$cppass@$cpdomain:2082/frontend/$cpskin/mail/doaddpop.html?email=$euser&domain=$edomain&password=$epass"a=$equota Cheers, Robert | |
Re: The best solution to check if everything is filled out is via javascript, but I suggest using jQuery I have uploaded similar code here : http://codepad.org/nqc9vtOK Should be enough to figure out how to make your one work | |
Re: Or create an extra table user_roles the user role table will be "extended" with another table role_permissions Think this is a clean concept. And role_pemissions will have something like ... module, controller or action if your application is MVC And another field permission_level, for example view/edit .Hope you get the … | |
Re: Just get this one {URL SNIPPED} and problem solved, you seem like a bad coder so you should probably take a look how others done it before. Maybe i'll get rep- but who cares.. | |
Re: creativity these days... Not sure if it will do the trick, didn't test [CODE] $hack = $match[0]; $cut = "<img"; $image_part = substr($hack,strlen($cut)); $your_image = $cut.'width="100px" height="150px" align="left"'.$image_part; [/CODE] | |
Re: Let's make it the easy way.. Non case-sensitive [CODE] $text = "This is a kickass day.Damn...What a Day !"; $needle = "Day"; strtolower($text); strtolower($needle); $tokens = explode($needle, $text); $found = count($tokens); [/CODE] So $found is what you want to know, if i understood your problem correctly. Laters :) | |
Hello, I have a problem :), like everybody else here :P. Ok so I need to update a wordpress plugin from 2.5 to 3.3.Did anybody else had to do something similar ? Any tips are welcome. Also books about wordpress plugin development would help a lot :).Worth to mention that … | |
Re: [URL="http://www.w3schools.com/sql/sql_where.asp"]http://www.w3schools.com/sql/sql_where.asp[/URL] [CODE]$sql = 'SELECT * FROM Products WHERE City = '.$city;[/CODE] $city is the dropdown thing . If you want a search by product name or description . [URL="http://www.w3schools.com/sql/sql_like.asp"]http://www.w3schools.com/sql/sql_like.asp[/URL] | |
Re: Well i honestly think that Code Blocks is the most kickass program honestly . | |
Re: Well , you can either copy it or learn it , because i did this for you. [B]What does this do?[/B] I am going to vector all the answers possible , after that will read a number as a char . [I]Why ? Because i will use the [URL="http://www.cplusplus.com/doc/tutorial/ntcs/"]char[/URL] elements … | |
Re: I don't get it , make something like : Data.in | data.out dsdsd | iamcoded roflmao22 | iamnotcoded | |
Heya , I was thinking of making a site opener application :). But I had a lots of problems . The next problem is facing this , it just crashes.:( [B]What do I want my program to do ?[/B] I want to assign a nickname for each of my favorite … | |
Re: update the code -,-? i tried it 5 minutes ago and it still has those compile errors | |
Hello , I'm just amazed how strong php is , but i don't have an idea where to start , I mastered c++ at a command promp level + kinda average at visual c++ . If some1 could give me some sites or tutorials ? And is code igniter a … | |
Re: Let's think it another way :) you do something like this : Go into a while loop till end of file { Read the name do another loop(till new line) { array[++i]; } } think this should work | |
Re: A square number is , a number that can be wrote x^2.For Ex 4^2=16; How to check this? [B]1.[/B]Read the number , then do n=sqrt(number); What does "sqrt" do?It simply returns Square root of x.[URL="http://www.cplusplus.com/reference/clibrary/cmath/sqrt/"]Click me for more information[/URL] ! Do not forget to use [U]#include <math.h>[/U] [B]2.[/B]Show the Answer … | |
Re: This should work [CODE]#include <iostream> using namespace std; int main() { char answ; cout << "Yes or No(y/n)" << endl; cin >> answ; switch(answ) { case 'y': cout << "Test" << endl;break; case 'Y':cout << "Test" << endl;break; case 'N':cout << "Ok" << endl;break; case 'n':cout << "Ok" << endl;break; … | |
Re: Well , don't think a lot of people would be pleased for me telling you this but , I've done a similar card game , Black Jack How to make the pack; [CODE] #include <iostream> using namespace std; // Show the cards void display(long cards[53]){ int i; for(i=1;i<=cards[0];i++){ cout<<cards[i]<<" "; … | |
Re: [URL="http://www.play-hookey.com/digital/adder.html"]Click This For Explanation on Binary Add[/URL] [URL="http://www.daniweb.com/code/snippet216351.html"]Dany Web Snippet about Binary Add[/URL] | |
Re: First of all put this [CODE]fclose(pfile); fclose(pfile2);[/CODE] at the end ; I think that your program may work but only once , then [QUOTE]Does is crash? Does it melt the monitor?[/QUOTE] You've used a good idea , searching the word in the [B]espanol.txt[/B] then you showed the same line from … | |
Re: [QUOTE=Pynolathgeen;1182261]Hello, I created a fully working progress bar for my 2D Game patcher. I have a question, Is it possible to have an Image painted on the progress bar? I know its possible in VB but I wanna try it in C++. I could find any results using Google. Thanks![/QUOTE] … |