Posts
 
Reputation
Joined
Last Seen
Ranked #1K
Strength to Increase Rep
+5
Strength to Decrease Rep
-1
41% Quality Score
Upvotes Received
6
Posts with Upvotes
5
Upvoting Members
6
Downvotes Received
9
Posts with Downvotes
8
Downvoting Members
8
9 Commented Posts
0 Endorsements
Ranked #1K
~13.6K People Reached
Favorite Tags

40 Posted Topics

Member Avatar for shahai.ali

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 …

Member Avatar for Robert1995
0
289
Member Avatar for doha786

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>

Member Avatar for doha786
0
268
Member Avatar for mhaselip

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 …

Member Avatar for mhaselip
0
230
Member Avatar for cussel

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 …

Member Avatar for Robert1995
0
174
Member Avatar for shiva.thapa

You're not a developer right ? It would normally be a copy - paste job, depends on the code and how messed it is.

Member Avatar for diafol
0
125
Member Avatar for ismael ahm@d

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

Member Avatar for urtrivedi
0
176
Member Avatar for shanboy

name="upload" remove that from form params. Not sure if this is the problem, but worth a try

Member Avatar for shanboy
0
271
Member Avatar for Robert1995

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&quota=$equota Cheers, Robert

Member Avatar for pritaeas
0
62
Member Avatar for Transcendent

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

Member Avatar for almostbob
0
191
Member Avatar for hamedx

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 …

Member Avatar for Robert1995
0
99
Member Avatar for vizz

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

Member Avatar for vizz
0
298
Member Avatar for me!

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]

Member Avatar for me!
0
504
Member Avatar for cr7489

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

Member Avatar for diafol
0
234
Member Avatar for Robert1995

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 …

Member Avatar for iamthwee
0
67
Member Avatar for mehrantahir

[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]

Member Avatar for rayidi
0
168
Member Avatar for Cup of Squirrel
Member Avatar for mslade
1
2K
Member Avatar for apple621

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 …

Member Avatar for programing
0
133
Member Avatar for mmgoicochea
Member Avatar for mmgoicochea
0
447
Member Avatar for Robert1995

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 …

Member Avatar for Robert1995
0
205
Member Avatar for VERMUNDr

update the code -,-? i tried it 5 minutes ago and it still has those compile errors

Member Avatar for Robert1995
0
181
Member Avatar for Robert1995

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 …

Member Avatar for colweb
0
82
Member Avatar for tallygal

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

Member Avatar for WaltP
0
206
Member Avatar for Fenlevi

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 …

Member Avatar for Robert1995
0
101
Member Avatar for smitysmit
Member Avatar for angel19
Member Avatar for myz068u

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

Member Avatar for mrnutty
0
104
Member Avatar for sjgman420

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]<<" "; …

Member Avatar for Freaky_Chris
0
885
Member Avatar for muzamal

[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]

Member Avatar for Robert1995
0
156
Member Avatar for Darkwarrior_331

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 …

Member Avatar for mattjbond
0
151
Member Avatar for Pynolathgeen

[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] …

Member Avatar for Pynolathgeen
0
212
Member Avatar for Robert1995

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

Member Avatar for Robert1995
0
129
Member Avatar for des6043
Member Avatar for gregarion

[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

Member Avatar for Robert1995
0
182
Member Avatar for virgin199

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 …

Member Avatar for jephthah
-2
670
Member Avatar for roin14

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]

Member Avatar for Robert1995
0
117
Member Avatar for kut KK

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 …

Member Avatar for MyrtleTurtle
0
231
Member Avatar for acemaster3

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

Member Avatar for WaltP
-2
179
Member Avatar for missmedude

Wait .. So you're asking if this program is working correctly ? Tip Check Your Total Interest

Member Avatar for Robert1995
0
114
Member Avatar for alhafes

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

Member Avatar for Robert1995
0
124
Member Avatar for Robert1995

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 …

Member Avatar for Fbody
-1
85

The End.