Click here to Skip to main content
15,909,324 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
Questionpassing javascript variable to php file without page refresh Pin
Member 451421815-Jan-09 8:17
Member 451421815-Jan-09 8:17 
AnswerRe: passing javascript variable to php file without page refresh Pin
Mohammad Dayyan19-Jan-09 19:52
Mohammad Dayyan19-Jan-09 19:52 
AnswerRe: passing javascript variable to php file without page refresh Pin
Ranjit Viswakumar29-Jan-09 12:06
Ranjit Viswakumar29-Jan-09 12:06 
QuestionDoing encryption that embedded into mail server Pin
xiaomahe2-Jan-09 7:49
xiaomahe2-Jan-09 7:49 
AnswerRe: Doing encryption that embedded into mail server Pin
JasonPSage27-Feb-09 12:51
JasonPSage27-Feb-09 12:51 
QuestionAccessing ping through c/c++ Pin
tassadaque31-Dec-08 2:18
tassadaque31-Dec-08 2:18 
AnswerRe: Accessing ping through c/c++ Pin
Cosmic Egg10-Jan-09 4:03
Cosmic Egg10-Jan-09 4:03 
QuestionC programming in Linux warning message Pin
Kogee San9-Dec-08 17:24
Kogee San9-Dec-08 17:24 
Hello everyone. Im not quite sure either Im in the right forum since my question is basically on C programming, coding in the linux environment. After I gcc, I got this warning message

"warning: passing argument 1 of 'strcpy' makes pointer from integer without a cast"

When I run the program, I will have a segmentation error fault. This is the code snippet below.

static const char *opt_socket_name[5];

main()
{
  int i = 0;

  strcpy(*opt_socket_name[i], "testing")
  printf("%s", opt_socket_name);
}


Im not quite sure why this happen. Can anyone here help me and explain what is going on behind the scene. Can you guys also give an opinion on how to make it work. A brief on what I am doing is actually, creating multiple socket with different names. I am just about to create different names, but the warning above appeared. Is there any other options to do this? The above code is just a small testing code to make the strcpy() works. Im quite new in programming so currently im learning. Big Grin | :-D Thanks
AnswerRe: C programming in Linux warning message Pin
L. Madhavan17-Dec-08 17:58
L. Madhavan17-Dec-08 17:58 
GeneralRe: C programming in Linux warning message Pin
Kogee San18-Dec-08 0:45
Kogee San18-Dec-08 0:45 
GeneralRe: C programming in Linux warning message Pin
L. Madhavan18-Dec-08 1:15
L. Madhavan18-Dec-08 1:15 
GeneralRe: C programming in Linux warning message Pin
Kogee San18-Dec-08 20:54
Kogee San18-Dec-08 20:54 
QuestionPHP editor? Pin
blackhattrick9-Dec-08 7:48
blackhattrick9-Dec-08 7:48 
AnswerRe: PHP editor? Pin
L. Madhavan16-Dec-08 23:00
L. Madhavan16-Dec-08 23:00 
AnswerRe: PHP editor? Pin
jeffb4228-Jan-09 8:54
jeffb4228-Jan-09 8:54 
AnswerRe: PHP editor? Pin
Jules VDV29-Jan-09 8:36
Jules VDV29-Jan-09 8:36 
AnswerRe: PHP editor? Pin
JimmyRopes31-Jan-09 15:20
professionalJimmyRopes31-Jan-09 15:20 
Questionbookmarks Pin
chiangkinghu8-Dec-08 21:10
chiangkinghu8-Dec-08 21:10 
AnswerRe: bookmarks Pin
Ranjit Viswakumar29-Jan-09 12:12
Ranjit Viswakumar29-Jan-09 12:12 
AnswerRe: bookmarks Pin
EliottA2-Feb-09 2:36
EliottA2-Feb-09 2:36 
Questionto upload video in php Pin
umeshdaiya5-Dec-08 18:03
umeshdaiya5-Dec-08 18:03 
AnswerRe: to upload video in php Pin
Mohammad Dayyan10-Dec-08 23:47
Mohammad Dayyan10-Dec-08 23:47 
Questionajax problem Pin
umeshdaiya28-Nov-08 1:00
umeshdaiya28-Nov-08 1:00 
AnswerRe: ajax problem Pin
Mohammad Dayyan28-Nov-08 10:08
Mohammad Dayyan28-Nov-08 10:08 
AnswerRe: ajax problem Pin
Ranjit Viswakumar29-Jan-09 12:20
Ranjit Viswakumar29-Jan-09 12:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.