Does anyone know do there have any way that I can encrypt the array in php??
for example:
$arr_value = array("1","2","3","4");
any way that I can encrypt $arr_value, also decrypt it later ini php?
Hi,
I want my web server to notify me through a php page when an event occurs at a another TCP server, to which the php page has successfully connected via a socket. The event is like the TCP server want to send a message to the web server, etc. Is there any way to accomplish this and/or any references on how to do it???
Thank You!!
Recently I switched hosting from one provider to the other and I have problems displaying Cyrillic characters. The characters which are read from the database are displayed correctly, but characters which are hardcoded in the php file aren't (they are displayed as question marks).
The files which contain the php source code are saved in utf-8 form. Help anybody?
I am trying to write a program in PHP which I had already written in Java.
I had used the following statements to setup proxy in Java
System.setProperty("http.proxyHost",proxyhost);
System.setProperty("http.proxyPort",proxyport);
How do I do the same for PHP?
I'm trying to connect to a RESTful web service, but I'm having some troubles, especially when sending data over PUT and DELETE. With cURL, PUT requires a file to send, and DELETE is just weird. I'm perfectly capable of writing a client using PHP's socket support and writing the HTTP headers myself, but I wanted to know whether you guys have ever used or seen a REST client for PHP?
I'm trying the following command in PHP 5.2.12 :
print (date('Y-m-d', strtotime('2009-12 last day')));
Regarding to the php.net manual :
date('m/d/y', strtotime('2009-03 last day')); # 03/31/09
it should display the last day of march 2009 (2009-03-31) !
Mine returns the last day of the previous month ? why ? :
2009-11-30
Hi all,
Is there any PHP script to convert XML file to DTD.
I tried a lot. I can able to find tools but can't PHP script.
Is there any?
any help will be thankful...
Fero
In .NET
The Process class contains several useful properties/methods that allow developers to access process relative information.
Have you any equivalent method or class in php.
Have any equivalent method in php like c# method "Process.Start()".
I am having trouble making this seemingly simple MySql query work. Can anyone spot the problem?
<?php
include "config.php";
$offerid = $_POST["offerid"];
$ip = $_SERVER["REMOTE_ADDR"];
mysql_query("INSERT INTO voted (offerid,ip) VALUES (".$offerid.",".$ip.")");
?>
In my php application i have a folder in which all the photos are kept.
The images are in different sizes.So i want to select photos from the folder and applying some image functions and upload to a different folder through php code.
This is same as image uploading but the difference is that the source file is in server
That is i want to select photos from server applying some image functions and upload again on the server
Pls help me
Is it possible to disable the use of SSI.php in SMF forums?
Or do you just have to remove the SSI.php file from the server?
(the reason I ask is I want to know how many SMF forums will have it disabled.
What's the easiest way to merge the contents of several MP3 files into one using PHP 5.2 on Linux Debian system? I found some scripts that are supposed to do in PHP only, but they seem to be buggy. Perhaps there is a way to accomplish this task using command line programs, that I could install on my Linux Debian machine?
I have coded a PHP script that takes $text and $font and creates an image, it even caches the image.
Is it possible to create a vertical gradient on the text using GD in PHP, I am trying to create the effect below!
Many thanks,
Hey Guys,
How to decode the url in php where url is encoded with encodeURIComponent()?
I have tried the urldecode() but then also..i don't the url which i have encoded...
I have to do this in php..
hi,
I am running a php based web application and within that application I am using bbclone to count visitors and site activity.
Unfortunately it doesn't work that nice as expected because bbclone counts a lot of robots and therefor my statistic is not that accurate as it should be.
So do you know any good php based web application counter?
It would be nice to have the following overviews in it:
- user agents
- timeline
Thanks a lot.
Scenario: Server is glassfish with jax-ws web services and clients is php based
What type of authentication for web services is more computable with php based clients ?
HTTP Basic Authentication
HTTPS Client Authentication
Mutual Authentication (is it supported ?)
Digest Authentication (is it supported ?)
Description :
Specifying an Authentication Mechanism
Thank you!
I have a PDF document with some external links.
I'd like to parse the document, replace the destination of the links then close (and serve) the PDF document, all using PHP
I know I can do this with PDFLib but I don't want to incur this cost.
I could re-write the document with FPDF or DomPDF, but some of these PDFs are quite complex so this would be a major time investment.
Surely there must be a way to do this directly to PDF docs, using native PHP?
TIA
How do I correct the following error that is listed below. I'm using PHP & MySQL.
I get the following error.
Not Found
The requested URL /fckeditor/editor/fckeditor.html was not found on this server.
I followed the directions on http://docs.cksource.com/FCKeditor_2.x/Developers_Guide/Integration/PHP
This is confusing as hell, here's the php I'm using:
<?php echo date('H:i D j, F',$j->date); ?>
This is what it gives me:
01:33 Thu 1, January
Which seems fine, until you look at the actual time that is being given ($j-date provides):
2010-06-12 21:12:23
Why is it giving me a January and what am I doing wrong?
Hi All mates!
This time ask you this question:
Assuming we have this img ( generated by php ) linked in clients sites
<img src="http://mysite.com/genimg.php?id=2" alt=""/>
Is Possible to get back from the client location some infos!? ( es. client url )
PS:
don't need something that open
the entire client page and search for link!
don't need something that work just if the link image is
clicked!
Is there anyway to find the date difference in php? I have the input of from date 2003-10-17 and todate 2004-03-24. I need the results how many days is there within these two days. Say if 224 days, i need the output in days only.
I find the solution through mysql but i need in php. Anyone help me, Thanks in advance.
Hi,
We were given an assignment to develop a prototype for a customer community. It was suggested PHP as the programming language. (but we're not supposed to actually code it, just a prototype with documentation is required)
I'm wondering what are the best practices/ tools used in Unit testing, Integration Testing and System testing for such a php app
Thanks
I wanted to start using the Amazon Simple Notification Service (http://aws.amazon.com/sns/), but I have not found any PHP libraries that I can use to access the service. I would rather not create my own library, I wanted to see if anybody has used any PHP libraries for the SNS service, and if they would recommend any.
I want PHP to randomly create a multi-dimensional array by picking a vast amount of items out of predefined lists for n times, but never with 2 times the same.
Let me put that to human words in a real-life example: i want to write a list of vegetables and meat and i want php to make a menu for me, with every day something else then yesterday.
I tried and all i got was the scrambling but there were always doubles :s
Warning: sprintf() [function.sprintf]: Too few arguments in /home/inrunitc/public_html/chek/chek.php on line 132
Query was empty
I am new to PHP and mysql and I have like 88 fields in my form - what should I do ?