I'm starting to get sick of PHP and search for a web-development language with future.
What to learn next?
Can I rely on the availability of Ruby (on Rails) on my client's hosters?
Could Django be a better choice?
Hi, can someone please tell me where to find the example codes used in this book:
Sitepoint The Php Anthology 2nd
edition
? Ive been looking for this since yesterday. Thanks for answering.
Hi.
I need HTML SAX (not DOM!) parser for PHP able to process even invalid HTML code.
The reason i need it is to filter user entered HTML (remove all attributes and tags
except allowed ones) and truncate HTML content to specified length.
Any ideas?
I have a MD5 hash: 10f86782177490f2ac970b8dc4c51014
http://www.fileformat.info/tool/hash.htm?text=10f86782177490f2ac970b8dc4c51014
Result: c74e16d9
but PHP: crc32('10f86782177490f2ac970b8dc4c51014');
Result: -951183655
I don't understand!
Hi,
Anyone knows about some free open source php library or framework to implement following service independently.
Email Marketing ,
Which include following service in that ,
send email ,
choose email template ,
Choose email template from local drive ,
text template ,
Account management like History email list , and more ,
Payment Integration ,
Thanks
bharanikumar
Hi,
I want to use the youtube api to get the users new subscription videos with this api call:
http://gdata.youtube.com/feeds/api/users/default/newsubscriptionvideos
Without logging in I get this response:
User authentication required.
Error 401
How can I login to youtube from php?
When debugging in PHP I frequently find it useful to simply stick a var_dump($foo, $bar, ...) in my code to show me the the what a variable is, what is value is, and the same for anything that it contains.
What is a good python equivalent for this?
I have seen several things in my Google searching that are somewhat equivalent, but nothing that is the same or better.
I have a simpleXml object and want to read the data from the object.I am new to php.The object details are as follows.I want to read name like general and name which is inside company array i.e Korey Kay & Partners.What is the syntax for it?
SimpleXMLElement Object ( [@attributes] = Array ( [type] = array ) [project] = Array ( [0] = SimpleXMLElement Object ( [created-on] = 2008-07-18 [id] = 2257372 [last-changed-on] = 2010-05-27T22:28:29Z [name] = *GENERAL [status] = active [company] = SimpleXMLElement Object ( [id] = 406952 [name] = Korey Kay & Partners ) )
Is there anyone who has a good (basic) UML class diagram to get me started on an object oriented CMS?
I want to start using OOP in PHP but can't seem to find a good starting point.
In Javascript, after executing a function I can immediately get the an element of the array returned by the function, like so:
myFunc("birds")[0] //gets element zero returned from "myFunc()"
This is much easier and faster than doing this:
$myArray = myFunc("birds");
echo $myArray[0];
Does PHP have a similar shorthand to javascript? I'm just curious. Thanks in advance!
hi....
I wud like to use file upload(ajax/javascript with php) in my form that has other controls also.
when i uploaded an img it displays on the same form with delete option.
if i click on submit it goes into folder as well as database &
if i click on delete it deletes an img....
anybody can help me?pls
u knw gmail file upload exact like that
Does anyone know if Node.js can access the session variables you set in PHP. I want to deliver diverent content to logged in users and non logged in users.
If not, does anyone know a way to achieve this.
I use FPDF to creat PDF from PHP and i have a problem with the Write() function
i use the following code and i want to indent the text block not just the first row:
$pdf->SetX(60);
$pdf->Write(5,'' . str_repeat( ' This is a test of setX.', 30 ));
but as you can understand it's just indents the first row, any idea on how to move the whole text mas?
I've looked around but have been unable to find any classes or sample code (in php) for the google safe browsing api.
Would you happen to know where I might find it?
G-Man
Needed Finfo but deleted msi package, so uninstalled php 5.3.0, downloaded 5.3.2 and installed. Now all my sites have max execution time error's when they hit my custom error handlers. No problems until I updated - has anyone ran into this before?
Is it possible to use PHP magic methods (specifically __get()) outside a defined class?
I'm wanting to use it in a configuration file for quick loading. The configuration file has a single array, $config, with many keys. Therefore, I'd like to override __get() to return the key in the array.
Hi all,
I have been doing PHP stuff for almost one year and I have never used the function eval() though I know the usage of it.
But I found many questions about it in SO.So can someone show me a simple example in which it's necessary to use eval()?And is it a good or bad practice?
Is there currently - or has there ever been - any serious or significant problem with PHP's built-in session handling?
I mean, it's always worked for me and my projects.
But I see some codebases and frameworks out there seem to use a custom handler. Is this reinventing the wheel? Or improving on some flaws? What flaws?
I have seen blog entries like ASP.Net MVC Portable Areas - Part 2 that indicate that the build action for views must be set to Embedded Resource.
What about other content such as images and CSS? Should they be set to Embedded Resource as well? Will the PortableArea ViewEngine pull that content out as well?
Good day!
I know that C# allows multiple iterators using yield, like described here:
http://stackoverflow.com/questions/1754041/is-multiple-iterators-is-possible-in-c
In PHP there is and Iterator interface. Is it possible to implement more than one iteration scenario for a class?
I want users on my website to be able to pick a hex colour, and I just want to display white text for dark colours and black text for light colours. Can you work out the brightness from a hex code (preferably PHP)?
A URL redirects to another link. How do I know which link it gets redirected to with PHP and JS?
And is finding the filesize of the new link possible too, without complete transfer of the file?
Thanks in advance.
I am looking for a copy php_apc.dll that was built with VC8. I found one built with VC9, but my PHP distro I got with the ZendServer CE says it needs to be built with VC8.
Any help would be greatly appreciated. Thanks,
Dave