Search found 22 matches

by Antrikssh
Fri Sep 21, 2012 12:05 am
Forum: PHP coding => General
Topic: Index of array changed during unpack the binary string.
Replies: 1
Views: 303

Index of array changed during unpack the binary string.

Hello, I worked on pack, unpack function of php. I made a simple test by using pack and unpack function. I worte a simple code like <?php $SrcArry = array(10,20,30,40,50); $DestArry = array(); $Str = NULL; for ($i = 0;$i < 5;$i++) { $Str .= pack('I', $ScrArry[$i]); } $DestArry = unpack('I*',$Str); v...
by Antrikssh
Wed Aug 29, 2012 1:51 am
Forum: PHP Scripts
Topic: How to run server script continuously and send the update da
Replies: 1
Views: 854

How to run server script continuously and send the update da

Hello Everyone, I am working on site creation and I am newbie with this work. I have used php for creating my site.I want to create server script that run on my machine continuously and send the updated data to the client who want that data. I have created two sample code one is Server.php and anoth...
by Antrikssh
Fri Aug 24, 2012 8:28 pm
Forum: PHP Scripts
Topic: How to access data from server through client script ?
Replies: 4
Views: 1446

Re: How to access data from server through client script ?

Hello Nullsig, Thanks for giving me your precious time. Yesterday I was found the cause of problem that I sent you in my last post. I found that when I was run both of the script through browser then at that time web server is helping me to mentain my session variable but when I was run from the com...
by Antrikssh
Thu Aug 23, 2012 10:54 pm
Forum: PHP Scripts
Topic: How to access data from server through client script ?
Replies: 4
Views: 1446

Re: How to access data from server through client script ?

Hello, I dont want to use AJAX, Is there is any solution in php for my work. I have worked with session variable. I got one issue can you please tell me the solution of that. I have created two script in which I have used session variable I will send my script to you. /******** Input.php *********/ ...
by Antrikssh
Wed Aug 22, 2012 10:17 pm
Forum: PHP Scripts
Topic: How to access data from server through client script ?
Replies: 4
Views: 1446

How to access data from server through client script ?

Hello, I have created 2 script one for client and another for server. In the server script I have defined some opertaion like (+, -, *, /) and run the server script on my machine. Now server script run on my machine as a service. After that I have created client side page say client.php. In which I ...
by Antrikssh
Mon Aug 06, 2012 5:45 am
Forum: PHP Scripts
Topic: my sql error
Replies: 3
Views: 1432

Re: my sql error

Its a syntax problem that occured in your querry.

Please make change in line 'comment' varchar(255) not null default" in your querry in place of that write 'comment' varchar(255) not null default with out ("). It will may help you.

Regards,
Antrikssh.... :)
by Antrikssh
Thu Jul 19, 2012 8:14 am
Forum: PHP Scripts
Topic: What is the replacement of dl() in php-5.3 onwards?
Replies: 1
Views: 766

What is the replacement of dl() in php-5.3 onwards?

Hello Everyone, I worked with php last one month. When I started, I have installed php-5.3 with apache(http) server. I configured it and start working but, when I used dl() in my script it was not supported by php-5.3. When I was read about that, I found this statement "5.3.0, dl() is now disabled i...
by Antrikssh
Thu Jul 19, 2012 8:12 am
Forum: PHP Installation
Topic: How to install xdebug for php in linux system?
Replies: 1
Views: 1182

How to install xdebug for php in linux system?

Hello Everyone, I have installed php-5.2.0 with Apache-2.2.0. I have installed both by using tarball (manually not by yum command). I configured both perfectly but I am unable to installed xdebug by tarball (manually not by yum command). I have searched for that and also found lot of information. I ...
by Antrikssh
Mon Jun 04, 2012 8:24 pm
Forum: mySQL & php coding
Topic: How to link mysql library with the c++ program?
Replies: 1
Views: 539

How to link mysql library with the c++ program?

Hi, I have used created my database application in c++ by using mysql connector c++. Now make a wrapper file, so that I will use use that in my php web appliction. For wrapping it I have used SWIG, but when I complie it with the command that mention below [root]# c++ -fpic -c Test_wrap.cpp DBConn.cp...
by Antrikssh
Thu May 24, 2012 6:08 am
Forum: PHP Scripts
Topic: Php Extension with C++
Replies: 0
Views: 652

Php Extension with C++

Hello, my.php file <?php $parameter = 0; get_data(&$parameter); print $parameter; ?> Employe.c #ifdef HAVE_CONFIG_H #include "config.h" #endif #include "php.h" #include "php_ini.h" #include "ext/standard/info.h" #include "php_Employe.h" /* True global resources - no need for thread safety here */ st...
by Antrikssh
Thu May 17, 2012 2:13 am
Forum: PHP coding => General
Topic: PHP script working on browser but not on command line.
Replies: 3
Views: 529

Re: PHP script working on browser but not on command line.

Hello, I got the answer, After lot of try finally i got the answer. It just a silly mistake that when I run the script through command line php unable to find out the configuration file because of that required extension is not loaded but when I used the command given below :- [root]php -c /path/of/...
by Antrikssh
Wed May 16, 2012 6:30 am
Forum: PHP Scripts
Topic: how to save db in .bak
Replies: 1
Views: 748

Re: how to save db in .bak

Hello, If you are using mysql db then you can use the following command by which you can easily make a back-up file for your database. The command are mention bellow :- [root]# mysqldump -u [username] -p [password] [db_name] > [backfile.sql] now you can easily replace the variable with in the bracke...
by Antrikssh
Wed May 16, 2012 5:58 am
Forum: PHP coding => General
Topic: PHP script working on browser but not on command line.
Replies: 3
Views: 529

Re: PHP script working on browser but not on command line.

Hello, Will you please tell me what should I do to solve the problem. I didn't find the location that you mention in the last line in my fedora 15 system. I want to tell you one thing more for loading my created module I used php -d "extension=myfunction.so" -m after that myfunction are present in t...
by Antrikssh
Tue May 15, 2012 11:01 pm
Forum: PHP coding => General
Topic: PHP script working on browser but not on command line.
Replies: 3
Views: 529

PHP script working on browser but not on command line.

Hello, I have been working on "Extension in php". I have created a script for it. I have executed that script successfully by using browser, but not from the command line. I am unable to find out what is the problem?. Script that I have created :- <?php if (!extension_loaded('myfunctions')) { echo "...
by Antrikssh
Mon May 14, 2012 6:35 am
Forum: mySQL & php coding
Topic: Help with mysql query..
Replies: 0
Views: 377

Re: Help with mysql query..

Hello, I think this may help you CREATE PROCEDURE inserttoscrapbookSD (owner1 VARCHAR(50), poster1 VARCHAR(50), Scrap1 VARCHAR(50), Date_time1 DECIMAL, InsertedOrNot DECIMAL ) BEGIN INSERT INTO scrapbook (Owner) VALUES('owner1') END when we insert the string data into the table, it will always in ' ...
by Antrikssh
Mon May 14, 2012 6:20 am
Forum: PHP Scripts
Topic: Problem with multi tables in mysql
Replies: 1
Views: 947

Re: Problem with multi tables in mysql

Hello, If you don't mind then can you please tell me about the primary key of all this three tables. And which table is the master table. If you are using same attributes name in all this three table along with different data then it has no use in my point of view, only one table is sufficient for t...
by Antrikssh
Thu May 10, 2012 8:57 pm
Forum: Your Scripts
Topic: Extension and Embeding in PHP
Replies: 5
Views: 2652

Re: Extension and Embeding in PHP

Hello, I know that its not pure php thats why I use the name of the thread "Extension and Embedding in PHP". I used php with c++ code. In which I have ceated .so file of c++ code file then I called that .so file in php script. I have created the file but unbale to access by php script or by command ...
by Antrikssh
Tue May 08, 2012 5:35 am
Forum: Your Scripts
Topic: Extension and Embeding in PHP
Replies: 5
Views: 2652

Re: Extension and Embeding in PHP

Hi, Thanks for your time that you gave me, the required code given below.... PHP_METHOD(accelerate) { Car *car; car_object *obj = (car_object *)zend_object_store_get_object( getThis() TSRMLS_CC); car = obj->car; if (car != NULL) { car->accelerate(); } } PHP_METHOD(getCurrentSpeed) { Car *car; car_ob...
by Antrikssh
Sun May 06, 2012 10:57 pm
Forum: Your Scripts
Topic: Extension and Embeding in PHP
Replies: 5
Views: 2652

Extension and Embeding in PHP

Hi, I have installed php-5.3.10 in my fedora 15 system. I want to learn and work with php for my applications. I want wrapping c++ with php for that I have preffered link (http://devzone.zend.com/1435/wrapping-c ... extension/) that I founded by googling. I have read the document from the starting a...
by Antrikssh
Thu May 03, 2012 10:49 pm
Forum: PHP Installation
Topic: "phpinfo();" is working on command line but not on browser
Replies: 4
Views: 2604

Re: "phpinfo();" is working on command line but not on brows

Hi, I have installed it, Now phpinfo(); is working as worked before. Now I want to use userdefine c/c++ function in php for that I user the link of Extension and Embeding in php which are (http://devzone.zend.com/303/extension-writing-part-i-introduction-to-php-and-zend/#Heading5) or(http://devzone....
by Antrikssh
Wed May 02, 2012 8:31 pm
Forum: PHP Installation
Topic: "phpinfo();" is working on command line but not on browser
Replies: 4
Views: 2604

Re: "phpinfo();" is working on command line but not on brows

Hello, Thank you for time that you gave to solve my problem. I have installed php before that entire procedure that I have wrote in my thread, At that time my phpinfo(); is working fine. But I want complete hold on php setting for each task.For that, I have installed it by using tarball so that I kn...
by Antrikssh
Wed May 02, 2012 6:02 am
Forum: PHP Installation
Topic: "phpinfo();" is working on command line but not on browser
Replies: 4
Views: 2604

"phpinfo();" is working on command line but not on browser

Hello Everyone, I am newbabie for PHP. I have installed php in my fedora 15 system by using tarball, it was installed successfully. When I created a sample page for testing, it executed on the command prompt but not on the browser. I will tell you what I have done. 1) Download the tarball php-5.3.9....