User Profile

Collapse

Profile Sidebar

Collapse
Akkad
Akkad
Last Activity: Aug 1 '07, 12:15 PM
Joined: Jun 21 '07
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Akkad
    replied to shell_exec() function
    in PHP
    Actually i have full access to the shell but running this code in a php file on xampp server that i have on the linux, i am not getting the output even when i am trying to pipe the output to an html file .
    <code>

    shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho | ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -F html>akadi_icho .html");

    </code>
    but when...
    See more | Go to post

    Leave a comment:


  • Akkad
    started a topic shell_exec() function
    in PHP

    shell_exec() function

    hi, i am having problem using shell_exec() function:
    <code>
    echo shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho | ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -w");
    </code>
    i am not getting the ouput file, though the command string passed in the function is working perfectly when used on the shell.

    but when i am trying to execute it using this function...
    See more | Go to post
    Last edited by Akkad; Jul 30 '07, 09:32 AM. Reason: error in code

  • Akkad
    started a topic shell_exec() function
    in PHP

    shell_exec() function

    hi, i am having problem using shell_exec() function:
    <code>
    shell_exec("cat `find ./logs -name access.log*` | grep akadi_icho | ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O -w > akadi_icho.html ");
    </code>
    i am not getting the ouput file, though the command string passed in the function is working perfectly when used on the shell.

    but when i am trying to execute it using...
    See more | Go to post

  • Akkad
    started a topic clamaris HTML ouptut format
    in PHP

    clamaris HTML ouptut format

    hi everybody,

    i am calling calamaris :

    <code>
    #!/bin/bash

    cat `find ./logs -name access.log*` \
    | grep $1 \
    | ./calamaris/calamaris -a -P 60 -T 0 -r 400 -d 500 -u -O >_$1.html

    the output look like text file without any lables and links, and when i am calling the above script, i am getting the output :

    Unknown option:w

    but...
    See more | Go to post

  • Akkad
    replied to Calling Calamaris from PHP file
    in PHP
    Hi again, here is what i have got by executing which uuencode:

    which uuencode
    /usr/bin/which: no uuencode in (/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin)
    See more | Go to post

    Leave a comment:


  • Akkad
    replied to Calling Calamaris from PHP file
    in PHP
    but execuse me what is the path of uuencode i have wrote this command :
    whereis uuencode and gave me the following answer bu i am not sure it is the right path:

    usr/share/man/manhlp/uuencode.lp.gz

    i don't know if it is the right one
    See more | Go to post

    Leave a comment:


  • Akkad
    started a topic Calling Calamaris from PHP file
    in PHP

    Calling Calamaris from PHP file

    i am trying to call calamaris through this code:

    [code=php]<?php
    echo shell_exec("./cal akkad -9");
    ?>[/code]

    but i am getting the following message:

    uuencode: command not found
    -----cal ------
    Code:
    #!/bin/bash
    cat `find /var/log/squid -name access.log* -mtime $2` | grep $1 \
    | /root/calamaris/calamaris/calamaris -a -P 60  -T 0 -r 400 -d 500
    ...
    See more | Go to post

  • Akkad
    replied to Uninstalling PHP from linux
    in PHP
    if u are getting annoyed soon so don't enter forums ok, and if u are entering a forum and getting annoyed becoz of somthing u have read so plz don't write what u r feeling , there is no need to tell u the details , everything is clear, if u don't know so don't worry i don't want ur help
    See more | Go to post

    Leave a comment:


  • Akkad
    started a topic Uninstalling PHP from linux
    in PHP

    Uninstalling PHP from linux

    hi everybody
    i have problem with uninstalling PHP4.3 from fedora (linux) 3 , or overwritting the old version of PHP by new one PHP5.2
    plz if anyone can explain me the way in detail i will be thankful
    See more | Go to post

  • Akkad
    replied to Compiling PHP with GD support.
    in PHP
    Hi, thanx for the advice

    what u meant by when configuring PHP i should add '--with-gd' , i think u meant when i will install the PHP on my server, but as u know that fedora come with php and apache installed in it as another versions of linux so related to this i had these problems:

    1. how to uninstall installed version of php and download PHP 5.0 which i think will solve the problem.
    2. when i tried to install...
    See more | Go to post

    Leave a comment:


  • Akkad
    replied to GD Library Problem
    in PHP
    Hi everyboy , thanx for the replies:

    1. the quesiton mark is there when i am calling the CaptchaSecurity Images.php:
    < img src="CaptchaSec urityImages.php ?width=100&heig ht=40&character s=5" />
    2.i have made the changes related to the $_SESSION['security_code'] ;
    3. also i added the lines:
    error_reporting (E_ALL);
    ini_set('displa y_errors', True);
    but there is no error in...
    See more | Go to post

    Leave a comment:


  • Akkad
    started a topic LDAP authentication
    in PHP

    LDAP authentication

    hi every body.

    my question is : how to authenticate with LDAP server from the localhost (WAMP) ?

    coz when i am trying to authenticate using the same code that i have on the linux server (working perfectly) it is giving me the following error message:

    Fatal error: Call to undefined function ldap_connect() in C:\wamp\www\the sis\auth.php on line 21
    [code=php]
    <?php
    session_start() ;...
    See more | Go to post

  • Akkad
    started a topic GD Library Problem
    in PHP

    GD Library Problem

    ok let met tell u what is the problem , i have downloaded the GD library code from interent and when i am using it the picture is not appearing on the page. i don't know why ?

    i am using PHP 4.3.9 on Appache server under linux operating system ( fedora 3).
    though the same code it is working on the localhost (WAMP) with php 5.2 and apche 2.2
    so plz if someone have an idea about the problem plz answer me.

    ...
    See more | Go to post

  • Akkad
    started a topic Compiling PHP with GD support.
    in PHP

    Compiling PHP with GD support.

    ok, the problem is :

    i have php 4.3 on fedora 3 (linux) and i have downloaded a code for GD library and it is working on on local server of PHP 5.2 , and apache 2.2 , the problem is that i don't know how to activate the GD library on linux coz i think it need some additional libraries so plz if someone have any idea about this help me plz coz i am running out of time.
    See more | Go to post

  • Akkad
    started a topic GD Library Problem
    in PHP

    GD Library Problem

    ok let met tell u what is the problem , i have downloaded the code GD library code from interent and when i am using it the picture is not appearing on the page. i don't know why ?

    i am using PHP 4.0.6 on Appache server under linux operating system.
    so plz if someone have an idea about the problem plz answer me.





    <?php
    session_start() ;

    if( isset($_POST['submit']))...
    See more | Go to post
    Last edited by Akkad; Jul 19 '07, 11:12 AM. Reason: error in code

  • Akkad
    started a topic PHP under linux
    in PHP

    PHP under linux

    [code=php]
    <?php
    echo $_SERVER[HTTP_USER_AGENT];
    $t=split(" ",$_SERVER[HTTP_USER_AGENT]);
    echo "<pre>";
    print_r($t);
    echo "</pre>";

    $yy=$t[2]." ".$t[3];
    $jj=split(";",$ yy);
    echo "<pre>";
    print_r($jj);
    echo "</pre>";

    $uu=$jj[0];


    $a=$t[4]."...
    See more | Go to post
    Last edited by ak1dnar; Jul 13 '07, 11:11 AM. Reason: Added [CODE] Tags

  • Akkad
    started a topic Login Security Code
    in PHP

    Login Security Code

    Hi everyone ..... i am designing a web site and on the login page i want to embeed a security code but i don't know from where to install the library or even the function who create the picture of the security code , so plz help coz it is so urgent and i will be thankful

    akkad
    See more | Go to post

  • Akkad
    started a topic PHP Script works great on Windows, but not on Linux.
    in PHP

    PHP Script works great on Windows, but not on Linux.

    hi everybody plz i need a help!
    on linux (redhat 7.1),i am creating a form by HTML and send it to php file but the username and password which i am sending its not interpreted (recieved ) by the php file , i am trying to print them but nothing is there.
    though the same code i am using on Windows using apache server it is working perfectly.
    on linux server only the form is not working i don't know why?
    See more | Go to post
No activity results to display
Show More
Working...