User Profile

Collapse

Profile Sidebar

Collapse
ogo796
ogo796
Last Activity: Nov 17 '09, 10:36 AM
Joined: Jan 7 '08
Location: SA
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • ogo796
    started a topic how do i make apache user run C programm
    in PHP

    how do i make apache user run C programm

    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.
    See more | Go to post

  • ogo796
    started a topic split()
    in PHP

    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
    ...
    See more | Go to post
    Last edited by Markus; Oct 30 '08, 02:13 PM. Reason: added # tags

  • ogo796
    started a topic regular exp
    in PHP

    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...
    See more | Go to post

  • ogo796
    started a topic Regular expressions patterns
    in PHP

    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.
    See more | Go to post

  • ogo796
    started a topic search text file
    in PHP

    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....
    See more | Go to post
    Last edited by pbmods; Aug 8 '08, 09:54 PM. Reason: Added CODE tags.

  • ogo796
    started a topic deleting line from an array
    in PHP

    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;...
    See more | Go to post
    Last edited by Markus; Oct 30 '08, 02:14 PM. Reason: added # tags

  • ogo796
    replied to updating the registry
    in PHP
    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;
    See more | Go to post

    Leave a comment:


  • ogo796
    started a topic updating the registry
    in PHP

    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"]."...
    See more | Go to post
    Last edited by Atli; Aug 1 '08, 08:09 PM. Reason: Added [code] tags

  • ogo796
    started a topic convet rtf file to html help

    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
    See more | Go to post

  • ogo796
    started a topic php convert rtf to html and pdf
    in PHP

    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
    See more | Go to post

  • ogo796
    started a topic running perl in php
    in PHP

    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...
    See more | Go to post

  • ogo796
    replied to invoking perl on php
    in PHP
    hi
    basically i must see the results of on the html page.

    thanks
    See more | Go to post

    Leave a comment:


  • ogo796
    started a topic invoking perl on php
    in PHP

    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...
    See more | Go to post

  • ogo796
    started a topic uploading multiple files
    in PHP

    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];...
    See more | Go to post
    Last edited by ronverdonk; Feb 29 '08, 11:28 AM. Reason: code within tags

  • ogo796
    started a topic converting rtf to pdf
    in PHP

    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
    See more | Go to post

  • ogo796
    started a topic converting rtf to pdf
    in PHP

    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
    See more | Go to post

  • ogo796
    replied to exporting rtf to php
    in PHP
    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."");...
    See more | Go to post

    Leave a comment:


  • ogo796
    started a topic exporting rtf to php
    in PHP

    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.
    See more | Go to post

  • ogo796
    started a topic appache for linux

    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
    See more | Go to post

  • ogo796
    started a topic upload and copy/rename files at server
    in PHP

    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...
    See more | Go to post
No activity results to display
Show More
Working...