How can I write a program in php to get the domain information of an existing domain or if a domain name is already taken...? I would like to get the information using php.
I have a message class that I use like so:
RedirectMsg::go('somepage.php', MessageType::ERROR, 'Your message here.');
Would it be better to use a regular function? Or is this a personal preference issue?
redirectMsg('somepage.php', MessageType::ERROR, 'Your message here.');
I work with Zend Framework a lot and I just took a peek at Kohana, and it strikes me as odd that this is a typical scenario in these frameworks:
throw Some_Componenents_Exception( 'invalid argument' );
Where I believe this wouldn't be mouch more useful:
throw Some_Components_InvalidArgumentException( 'whatever discription' );
Because it is easier to catch.
I suspect, but immediately admit it's prejudiced, that the former practice is common in the PHP community. Should we, the PHP community, start using these descriptive types of expections more?
Hi,
does someone know a good cross reference engine like LXR, but written in PHP? My provider has PHP and MySQL as well as Postgres DBs, but neither I have access to Perl nor via SSH. I'd like to put up a online cross ref for my Software which is written in C.
Thanks for helping!
Dan
I need to upgrade my server to PHP 5.3 but have a Magento install and I know that Magento doesn't play nicely with PHP 5.3.
I think that the changes won't be too extensive (from what I've read). But, I figured I would open it up to the SO crowd.
Has anyone done this successfully? If so, did you take good notes?
I've seen some questions where people have trouble with accessing .NET SOAP web services from PHP and there appears to be an issue with namespaces when using a distributed WSDL.
Are there any other problems with the inbuilt SOAP support in PHP 5.3?
I work with Zend Framework a lot and I just took a peek at Kohana, and it strikes me as odd that this is a typical scenario in these frameworks:
throw Some_Componenents_Exception( 'invalid argument' );
Where I believe this wouldn't be mouch more useful:
throw Some_Components_InvalidArgumentException( 'whatever discription' );
Because it is easier to catch.
I suspect, but immediately admit it's prejudiced, that the former practice is common in the PHP community. Should we, the PHP community, start using these descriptive types of expections more?
Many Windows MySQL tools like Navicat or EMS have this thing - I jut put a php file on a shared hosting and can connect mo local running prhoram to the MySQL server.
Are there any good popular free solutions to expose full MySQL as a web service using PHP?
What I must to learn to write php web-site grabber (parser)?
It must collect information from other websites, such as as weather forecast, wiki "on this day", some news and other useful and interesting "every day" information!
what i must to read for writing m3u player on php?
sorry for my bad english
I am destroying all session var in logout.php and calling it when user click on logout, what is user does not click on logout.php but directly close the browser. how can i delete session then???
Instead of asking 'how to use PHP/MySQL to let users affect webpages' I'll ask this, because I learn better from projects and examples.
So how would I incorporate a VERY basic comment feature using PHP and MySQL?
What is the best way to implement a big (1GB or more) file uploader website in PHP or Java? Using the default way of uploading in PHP or Java results in running out of RAM space and slowing the website very dramatically.
I mean I want to understrand how to generate WSDL from my code
So I've rote
<?php
$soap = new SoapServer(null, array('uri' =>
'http://php.hoshmand.org/'));
$soap->addFunction('add');
$soap->handle();
function add($a, $b) {
return $a + $b;
}
?>
How to call it like a WSDL now?
Say i have this PHP code:
$FooBar = "a string";
i then need a function like this:
print_var_name($FooBar);
which prints:
FooBar
Any Ideas how to achieve this? Is this even possible in PHP?
I have a Rails app on a subdomain - xyz.domain.com, and a PHP app on another subdomain - abc.domain.com
When a user is logged into the Rails app, I would like to give them a session so that I can log certain events about that user in the PHP app but in the same database of the Rails app. I would essentially just expose an API that requires authentication.
What is the best way to go about this? I am not storing the session in a database
Can a PHP application have too many functions? Does the execution of a large number of PHP functions hog memory and resources? My WordPress theme in-development has a lot of functions (probably more than 100 by the time I'm done) and I'm concerned that I might have too many.
I have been using php for quite few years and now i want to learn ASP.net for web development cause I have found it pretty faster than PHP?
Despite Speed, I want to know which has more flexibility, user friendly, easy learning and powerful capability.
Hi, I was wondering if some of you know about a library in php so that I can pass a date and a cron expression and it tells me wether the date satisfies the cron expression or not. The java Quartz library is able to do that (and more like getting the next valid date for a given cron expression) but I was wondering if this is possible using php.
Thank you!
Hello,
What will work faster - using PEAR package or require Some_Library.php files in code?
For example, what is faster - using Smarty as PEAR module or using require_once("Smarty.php")? Have anyone tested this?
Thank you
I currently echo certain variables in hidden input fields and read them out with Javascript whenever I need them.
Me and a colleague are now thinking of generating an extra Javascript file with PHP which only contains all variables for Javascript. This way the variables already exist and there is no extra code in the HTML.
What are good ways to pass variables from PHP to Javascript? And how does our solution sound?
hello!
I'm trying to output multiline text with GD+PHP but can't get it working. my php knowledge is really basic.
here's the code, any idea on how to output 2 or 3 lines of text?
$theText = (isset($_GET['caption']))? stripslashes($_GET['caption']) :'';
imagettftext($baseImage, $textSize, $textAngle, $textXposition, $textYposition, $textColor, $fontName, $theText);
How to determine the browser of the user using PHP?
So that if the users browser is IE then the variable $alert="onbeforeunload" and if it is not IE, for example Firefox (else) then $alert="onload.
Help is much appreciated.
Thanks
Also please note that I can not install browscap.ini on my PHP server.
I am trying to create PHP script to get app version from Android APK file.
Extracting xml file from APK (zip) file and then parsing XML is one way, but i guess it should be simpler. Something like PHP Manual, example #3.
Any ideas how to create script?
Are there any coders out there that have real experience/exposure to both PHP and ASP.net? I'm a C# developer, wondering if any PHP frameworks compare to the robustness of the Visual Studio Development environment.
I've a PHP function which fetches a Curl request. This request sometimes take longer time than expected and hence my php function takes longer to return.
In my particular case, output of curl request is not important. So is it possible with curl just to place a request and proceed without waiting for curl_exec() to finish?