Hi everyone, i am trying to use php file to run C program but nothing actually is happening when i use exec() ,system(). i thought about the permission problem
but i don't know how do i go about making apache user to run C program.
please anyone help.
User Profile
Collapse
-
how do i make apache user run C programm
-
split()
Hi guys am having a problem with a split(),i retrieve line from the text file
and i wanna split that line.i manage to split two words but splitting the string
enclosed on brackets it seems to be a problem to me. can someone look at my code and please help me maybe i am missing something.
...Code:<?php $q=$_POST['path']; $jaar=$_POST['years']; $day=$_POST['day']; //echo $day."<br -
regular exp
hi everyone can someone help me with regular expression that match the following
patterns.
i want to get anything within the " " and brakets ( ) and between the brakets.
see the following string
"1980_1.rtf (5 December 1980) peter and john (Criminal Appeal No 5 of 1980)
firstly i want reg expression that match = " 1980_1.rtf "
secndly i am loking for exp that match = (5 December... -
Regular expressions patterns
hi everyone
can anyone help me with the php pattern that search the following string and get the below patterns.
"2004_8.rtf " (November) S v Mimi(000/00) [2004] NAME 8;
"2005_9.rtf " (November) S v Mimi(000/01) [2005] NAME 9;
i want the regular expression patterns that match this : [2005] NAME 9 ; or [2004] NAME 8; on the above strings. -
search text file
Hi everyone i want to search the text file,using pregmatch() but it seems like
it dose't serch.maybe my serching pattern is not right.look at the following code.
Myfile look like this
--------------------------------
file : (49/06/01) [2007] simon 13;
file : (68/05/01) [2007] John 17 ;
i want to serch [2007] simon 13 on the text file.
can anyone help me with pregmatch patterns.... -
deleting line from an array
hi guys
i have a problem here it seems like i dont get a solution.i manage to write to the text file but i want to update the existing line without writting a new line.
my problem is when i want to append at the end of a line my programm write at the beginning of a next line.
example
1 (2008_22)-simon; thuli ; tumi
2 (2008_23)-dude ; dan ;
3 dan;tumu(2008_2 4) -danken ;bobo;... -
hi there thanks for your answer it works,but i want to add the names at the end of a line separated by semicolon see the example below.
example
2004 (12 November 2004) names Simon; Tiro ; John ;Rebecca; -
updating the registry
hi everyone i have a problem with updating the text file
i want to add name at the end of a line and separate with semi colon,
can someone look at my code and help me out.
2004 (12 November 2004) name tumi; yale;
2004 (12 November 2004) name simon; tiro;
2004 (12 November 2004) name lebo; dud ;
[code=php]
<?php
$data =$_POST["name1"]."... -
convet rtf file to html help
hi everyone
i use software called unrtf to convet rtf file to html ,the problem is the software produce a blank html with no body tag
can someone help me with that.
thanks -
php convert rtf to html and pdf
hi everyone
i want use php to convert rtf to html and pdf can someone help me to get open source software that can do that except unrtf.
thanks -
running perl in php
hi everyone
i am running ubuntu and all my scripts are in php,i have a program
written in C and Perl that do a specic job in my site.so my problem is i can't run that specific program while i am out site the directory.
can someone help me with a php code that can run the program that is out site the current working directory.i use the following code but nothing happend.
$output=exec(/home/data/test... -
hi
basically i must see the results of on the html page.
thanksLeave a comment:
-
invoking perl on php
hi guys
hi guys i am using the php script to upload files to the server and run perl
script to update some of the html page content manually. so my problem is invoke perl script within php but it does not give me the results.
$message1=exec( "/home/Data/raw"." "."make"." ".$ZAM);
/home/data/raw : it is a path to the script
make : it is a perl script that... -
uploading multiple files
hi everyone
i have a problem with uploading two files at the at the same time.
cause the code below tells me that invalid supply argument forach.
[php]
destfile = /pathe/to/directory;
foreach ($_FILES["uploaded"]["error"] as $key => $error)
{
if ($error == UPLOAD_ERR_OK)
{
$tmp_name = $_FILES["uploaded"]["tmp_name"][$key];... -
converting rtf to pdf
hi everyone
hi everyone i am wondering if there is a way of converting rtf to pdf using php code.if it is possible just give me a glue so that i can make the follow up on that.
thanks -
converting rtf to pdf
hi everyone
hi everyone i am wondering if there is a way of converting rtf to pdf using php code.if it is possible just give me a glue so that i can make the follow up on that.
thanks -
thanks
but this is not what i am looking for,what i do is i upload files to the rtf files to the server and when files gets into the server must be converted to pdf.
i did that with converting rtf to html but firstly i execute system command using unrtf.
code below
-------------
$target2 //is a path
$message=exec(" unrtf-0.20.2/unrtf --html ".$target2.$old name." > ".$target2.$new name."");...Leave a comment:
-
exporting rtf to php
hi friends
i have a little problem,i want to convert rtf to pdf so my question is there any way in php code i can do that. -
appache for linux
hi friend
i have a bid of a problem i code my project using php and i am running appache for linux on my web server so when i am trying to uploade files to the server using windows it cant rename files.
if someone have idea of how can i do please give me that advise.
thanks -
upload and copy/rename files at server
hi everyone
i upload files everyday to the server using a php coded program , it works from other computers but not on the others. Could this be a problem with http headers of specific computers or what?
Basically what happens is, the use upload a file using a form then the program uploads the file to a folder within the server, then it makes a copy of the file to another folder and rename it within the server. The kind of...
No activity results to display
Show More
Leave a comment: