- Strength to Increase Rep
- +5
- 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
40 Posted Topics
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] … | |
Hello , I have tried several ideas , times and ways to do this but all fail on the site's test , could any1 give me an idea or something [URL="http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=98&page=show_problem&problem=1415"]Problem[/URL] [CODE] #include <iostream> using namespace std; long int q,n,i,point,casenr; long int marbles[10000]; int main (){ while(1==1){ cin>>n>>q;casenr++; if(n==0 && … | |
Re: Erm what you want your program to do ? | |
Re: [URL="http://www.cplusplus.com/reference/clibrary/cctype/isdigit/"]Read this[/URL] I think you've forgot that isdigit checks 1 char at a time . Not several chars | |
Re: To be able to do this you have to study 2 simple things : 1.Read this site [url]http://www.cplusplus.com/doc/tutorial/classes/[/url] Okay after you done that try understand what this program does ( it's not your homework , just random program to show classes) [CODE]/* Assigment : using classes make a program to … | |
Re: if you're planning to do it with switch it will be a pain [CODE]#include <iostream> using namespace std; int main () { int i; cout<<"Sigh ";cin>>i;cout<<endl<<"Answer : "; if(i>=70 && i<=100)cout<<"A"; if(i>=60 && i<=69)cout<<"B"; if(i>=50 && i<=59)cout<<"C"; if(i>=40 && i<=49)cout<<"D"; if(i>=0 && i<=39)cout<<"F"; if(i<0 || i>100)cout<<"Not Good"; }[/CODE] | |
Re: This should work . But if you enter the word "Alfa" it says that your grade is "4.00" . Good Luck Debugging it , i ain't doing your whole homework [CODE]#include <iostream.h> char grade; int i=1; int main(){ do{ cout<< "Enter Grade : ";cin>>grade; if (grade == 'A'){cout<< "4.00";i=0;} if … | |
Re: Use a library called <string.h> very nice for searching... - Search a char in string[URL="http://www.cplusplus.com/reference/clibrary/cstring/strpbrk/"]http://www.cplusplus.com/reference/clibrary/cstring/strpbrk/[/URL] - String Length [URL="http://www.cplusplus.com/reference/clibrary/cstring/strlen/"]http://www.cplusplus.com/reference/clibrary/cstring/strlen/[/URL] P.S This program can be done just by doing some google.com search | |
Re: Wait .. So you're asking if this program is working correctly ? Tip Check Your Total Interest | |
Re: Tips : Download Visual C++ From Microsoft it's extremely easy . I managed to make this kind of calculator in 5 minutes with 6 operations . Tips : -Use <math.h> for sqrt & pow ; -use radio buttons ; -use 2 boxes for input numbers ; Hope this helped | |
Hello , i am looking just for algorithmic or ideas .Please help me I spent more than 3 days on this problem. 1) An overview of what your program does. My program works only for strictly pair k. 2) The result of your current code. My current code works for … |
The End.