Is there a web site or tool that will convert a piece PHP code to C#?
something similar to
http://converter.telerik.com/
or
http://www.developerfusion.com/tools/convert/csharp-to-vb/
Are there any robust and mature HTML parsers available for PHP? A quick skimming of PEAR didn't turn anything up (lots of classes for generating HTML, not so much for consuming), and Google taught me a lot of people have started and then abandoned a variety of parser projects.
Not interested in XML parsers (unless then can consume non-well formed HTML) or hacking it on my own with regular expressions.
Clarification of Intent: I'm not interested in filtering of HTML content, I'm interesting in extracting information from HTML documents.
Hi,
I have a php login which sets 2 cookies once some one login. the problem is that if you login from : http://www.mydomain.com and you go to http://mydomain.com you will find your self not logged in, I think that's because the browser only send the cookies to the first syntax.
It's only one domain, the difference is the www. before the domain name, so how to set cookies to the whole domain whatever there is www. or not ?
Thanks
I wrote a PHP shell script which include queuing jobs in centOS with 'at' command.
The queue jobs may vary in time and contents which means the system need to keep quite a large number of jobs.
The application logic will also be a bit difficult to setup with cronjob.
Is there a limit in number of queue jobs in centOS or is there any alternative way of queuing jobs?
I was think of learning Perl cause I hear around town its good for system admin things. Would it be possible to use it to automatically install a php script? I need to install a custom script on a few different server and wanted to know how I could make something in Perl to do it (like move scripts over to directory and stuff)?
I'm interested in knowing if there is a pure object oriented database for PHP. Something similar to zodb for Python.
I'm not really looking for an object-relational mapper. So no active record clones...
I have PHP configured so that magic quotes are on and register globals are off.
I do my best to always call htmlentities() for anything I am outputing that is derived from user input.
I also occasionally seach my database for common things used in xss attached such as...
<script
What else should I be doing and how can I make sure that the things I am trying to do are always done.
How convert PHP value from windows-1257 to UTF-8? I tried many ways, but they was not successful. I have lttu?s and I wanna convert this to littus.
utf8_encode();
iconv_set_encoding("windows-1257", "UTF-8");
mb_convert_encoding()
Doesn't work. :(
Can anybody help me?
I am using config file which contains:
config.php
define('SYS_TITLE','My Application Title');
I load language local for gettext based on SESSION variable in another file included after the config file is loaded.
something like:
echo _(SYS_TITLE);
What is the best way to translate the SYS_TITLE without changing much of the code.
is it possible, that in php something, which was written as comment( like //comment...), makes some influence on the script? i remember, that once i use open source script, but when i delete all comments from it, it became non working. sorry for an abstract question. i haven't the code now, so i dont show it.
Hi,
Not sure if this is a available as I am new to the MVC model. But does any one have a link or link's to a article or blogs about building a MVC based PHP web application without using a Framework ?
Thanks in advance.
I am trying to install a copy of PHP 5 to my home directory on the school computer. The problem is that whenever I try, it complains that my copy of libxml2 is too outdated to work.
Is there any way I can install this without upgrading libxml2, since I don't have permission to upgrade.
Any suggestions?
Hi,
Rasmus Lerdorf (creator of php) advocates procedural style where as most successful way has turned out to be non-procedural. What is the benefit of procedural over non-procedural approach at last? Why does he advocate that?
I'm very surprised I couldn't find this question here, which makes me very sure it is here and I just didn't see it. Regardless, I'll ask again.
How do I echo a forwardslash "/"?
echo <?php echo $_SERVER['HTTP_HOST'] ?> . '/directory/';
Thanks
-J
I've wrote a PHP script to export a Foxpro database to other formats by using ADODB (http://phplens.com/lens/adodb) library to access Foxpro OLE DB provider.
Everything worked fine except the date fields are mangled and become like these:
11/17-/2-00
3/4/-20-08
By comparing to actual data I can guess that it is probably in the format of MM/DD/YYYY or m/d/YYYY.
How can I properly export the date field?
Hi,
Does anyone know of a PHP open source which can generate forms to be deployed across your website. These forms will collect and aggregate the data with in on database. There should also be the functionality to search across the forms (to generate reports and newsletter mailing lists)
All the services I have found so far have been hosted solutions.
Thanks
Tom
How do I use the sha512 function for PHP?
Can I replace all my md5 funtions with the sha512 function?
Do I have to download something if so what?
Can any one provide examples? Thanks!
I'm trying to access yahoo mail IMAP server with a php script. I read that yahoo requires a specific IMAP command “ID ("GUID" "1")”. How do I send this command ?
Hi, i need to convert a Utf-16BE in ISO-8859-1 in PHP (i'm not an expert in encoding so i don't know if Utf-16 and Utf-16BE are the same thing). I've read somewhere to use the mb_convert_encoding function but i haven't that function because i don't have the multibyte extension installed. So do you know an alternative method to do this?
I want to be able to detect (using regular expressions) if a string contains hebrew characters both utf8 and iso8859-8 in the php programming language. thanks!
I'm looking for a comprehensive and well maintained wiki syntax Parser for PHP, does anybody know of one? I can find some really good parsers for markdown and bbcode but am having trouble with finding a decent wiki parser.
I prefer markdown myself, but I'm writing post functions for a CMS and I'd like to give end-users a choice.
I thought about downloading a copy of MediaWiki and seeing how they do it, thoughts on this as an option?
I am hacking together a theme for wordpress and I am using the following code to pull out data from a custom field with several values:
<?php $mykey_values = get_post_custom_values('services');
foreach ( $mykey_values as $key => $value ) {
echo "<span>$value, </span>";
} ?>
I use a comma to seperate the results, but I don't want a comma after the last result. How do I get around this?
Hi,
I am new to OpenID, and want to implement Google OpenID authentication on my website. I could not found any example.
Can anyone suggest me some good tutorials (step by step) or any working example with code to implement Googl OpenID authentication using PHP.
All helps are appreciated.
Thanks,
Navin