I have a local network in the company with a mail server, how can i make php application built locally on the server to send and email to a local email address?
thanks in advance
I coudn't find the solution for Php deployment to remote server using FTP from SVN after each commit.
How can I upload to server by FTP the only added or edited files and delete the deleted files from SVN
I think about write post-commit script...
in server ,
i have some.php , when i try to read the content using file_get_content and fread both these not reading my content..
if i try some other url like yahoo.com , these function reading content , any idea, WHY this prob
Hi!
Is there a straightforward way of determining the number of decimal places in a(n) integer/double value in PHP? (that is, without using explode)
Thanks,
Erwin
Say i have an xml file of this nature
some data
I wan to replace attributes of each later using one function in php:
example say:
replaceAttribute("collections","somecollection,"newcollection");
Hi, I'm looking for an alternave to the parse_ini_file() function in php. I want a simple way to store config settings, but want the flexibility to store unlimited levels of multiple arrays, special characters, etc. Any ideas?
Here are the objects:
courses
{ "name" : "Biology", "_id" : ObjectId("4b0552b0f0da7d1eb6f126a1") }
students
{
"name" : "Joe",
"classes" : [
{
"$ref" : "courses",
"$id" : ObjectId("4b0552b0f0da7d1eb6f126a1")
}
],
"_id" : ObjectId("4b0552e4f0da7d1eb6f126a2")
}
Using the PHP Mongo Class, how do I get all the students that has a biology course?
Thanks
I have a build a web portal based on the Cricket concept,
I have build a Custom based CMS where I can upload the News for the site
Once I upload the news, the URL Will be like this
http://cricandcric.com/news/news.php?id=841&An-emotional-moment:-Dhoni.html
But I am trying to have the above Url as follows (some thing like this)
http://cricandcric.com/news/An-emotional-moment:-Dhoni.html
Or similar to Stackoverflow.com,
Can any one please help me how can i build that?
Do I need to rewrite the URL ?
The FILTER_VALIDATE_URL filter seems to have some trouble validating non-ASCII URLs:
var_dump(filter_var('http://pt.wikipedia.org/wiki/', FILTER_VALIDATE_URL)); // http://pt.wikipedia.org/wiki/
var_dump(filter_var('http://pt.wikipedia.org/wiki/Guimarães', FILTER_VALIDATE_URL)); // false
Why isn't the last URL correctly validated? And what are the possible workarounds? Running PHP 5.3.0.
I'd also like to know where I can find the source code of the FILTER_VALIDATE_URL validation filter.
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?
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, 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?
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 ) )
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
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!
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.
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
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?
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.
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?