I would like to create an upload script that doesn't fall under the php upload limit.
There might be an occasion where I need to upload a 2GB, or larger file and I don't want to have to change the whole server execution to above 32MB.
Is there a way to write direct to disk from php?
What method might you propose someone would use to accomplish this? I have read around stack overflow but haven't quite found what I am looking to do.
Hi guys, I have been doing some research on mobile websites, and thus far it seems to me that PHP is not supported by most handsets.
I am trying to create multiple form's that lead up to a auto email response, which would be fairly simple if I could use PHP.
Is there any other way of achieving this?
In codeigniter Im trying to use this plugin which requires I implement a toString method in my models. My toString method simply does
return $this->name
On my local machine with php 5.3 everything works just fine but on the production server with php 5.1.6 it shows "Object id#48" where the value of the name property of that object should appear..... I found something about the problem here but I still dont understand... How can I fix this?
Here in the following block of program it prints 2 instead of 1.
<?php
f(0, $$var);
$x = 1;
$y = 2;
echo $x;
function f($a, $b) {}
?>
Any suggestions?
UPDATED
This information has been get from http://habrahabr.ru/blogs/php/95595
I trying to find the best way to upgrade from PHP 5.1 to 5.3. The CRM software I am running on this server requires this upgrade or else I probably wouldn't even perform it, because it seems like it's going to be perhaps trickier than I hoped it would be. Being still new to the programming world, these routine upgrades are still worrisome to me.
I am running apache 2.2.6 (Fedora), PHP 5.1.6 and MySQL 5.0.27 on this server.
I know PHP 5 has some object oriented similarities but it's not a true OOP environment still right? Also does it have a true compiler? I see compiling of scripts which still means procedural. I assume it's not a real compiler in that any PHP compilers out there do not create assemblies?
I'm setting sessions. And then checking the session by another PHP page. When I login using the browser and then checking using the browser then everything is ok.
When I check the is Logged or not by calling the PHP file from a flash file then it can't find any session data.
Why is that? and how to solve it?
Hello,
I am a developer in PHP. Nowadays i come across the word cURL in many PHP source codes. Saw wikipedia, but i didn't get the information i want
I tried cURL in my localserver XAMPP but it is not working.
Is it a function or what and whats the use
please mention some usage ideas. When it is necessary to use cURL ?
I am building a website. I have created the database in MySQL. I need to build the web pages really fast! Is there a PHP CMS with which I can easily create the webpages with forms that can modify my database tables? The point is that I don't want to code it using plain PHP or MVC frameworks either. I looked at other CMSs' like Drupal and Joomla but it looks like its difficult to make them use custom tables.
There's a status indicator code for AIM which returns two different images depending on your status (on/offline) which was done in PHP and with the AIM API.
<img src="http://big.oscar.aol.com/USERNAME?on_url=ON_IMAGE&off_url=OFF_IMAGE">
I was looking for a Last.fm widget that shows JUST the album cover I'm listening to or the last album I listened to, but couldn't find it.
How do I go along making it using PHP and the Last.fm API.
I need to calculate modulus with large number like :
<?php
$largenum = 95635000009453274121700;
echo $largenum % 97;
?>
It's not working... beacause $largenum is too big for an int in PHP.
Any idea how to do this ?
Hi,
I'm making a blog in PHP and I'd really like to have syntax highlighting on Haskell code.
Are there any tools for that out there?
I've found hscolour but I don't know if it's possible to integrate it in PHP.
I'm using CakePHP if that makes a difference.
Thanks.
How do I go about getting the isapi_rewrite working on IIS 6.0?
My shared hosting account supports ISAPI_Rewrite - I've run the provided tests to confirm.
I'm only able to access the index page of my Zend PHP project, but get the 404 error for other actions in my index controller class definition.
I've basically placed the code:
[ISAPI_Rewrite]
RepeatLimit 20
RewriteRule (?!\.(js|ico|gif|jpg|png|css|swf))$ index.php
in an httpd.ini access file in my wwwroot directory. Is there anything I'm missing?
I need to generate reports in my PHP website (in zend framework)
Formats required:
PDF (with tables & images) // presently using Zend_Pdf
XLS (with tables & images)
DOC (with tables & images)
CSV (only tables)
Please recommend robust and fast solution for generating reports in PHP.
Platform: Zend Framework on LAMP
I know there are some tricky solutions for creating such reports, i wonder is there any open source report generation utility that can be used with LAMP environment
For some reason This php script won't echo anything:
<?php
setcookie("pop",'hi',time()+604800);
echo $HTTP_COOKIE_VARS["pop"];
?>
What am I doing wrong?
I have a 16x16 sprite in PNG or GIF image format, and would like to display it on a website at 64 x 64 in all its pixelated glory. In Firefox 3.6+ and IE I can do this easily with CSS using image-rendering and -ms-interpolation-mode, but as this doesn't work in all browsers I'd like to resize the image on the fly using PHP instead. What's the best way to resize images using nearest-neighbor interpolation in PHP?
Hi,
I'm having trouble sending mail using PHP mail() on IIS 7 using Windows 2008 Server.
The server is dedicated, thus I have full control over my machine.
php.ini looks fine - ([mail function] is configured)
I don't get any error from mail() (with the right parameters of course)
btw - I got ASP and ASP.NET sending mails without any problems.
Would be very gratefully for help
Regards,
Roman
I have been asked to program in .NET
I am used to java, javascript, PHP, jQuery
What is the implication to work in .NET, any reading, any migration white paper?
I kno that .NET is a microsoft windows ONLY thing as opposed to PHP, free and universal.
I am using Tomcat 6. I am running a php script using the JavaBridge. I get the following error when I run my code.
Fatal error: Call to undefined function mysqli_connect() in C:\Program Files\apache-tomcat-6.0.26\webapps\JavaBridge\xxxx\xxxxx.php on line 534
Please help.
Whether anyway to find first date and last date in a month. Suppose have the date today as 21-04-2010, i want to find the first and last date of this month in php. I did this in mysql, but i need in php. Any one can help, Thanks in advance.
I have a bunch of webservices that I need to write PHP clients for. Now I can manually write wrappers for each of the WSDL files but i wanted to see if there is a tool that can help me by generating the wrappers in PHP.
Any idea if there are any tools that do this?
Thanks
Has anyone used Php frameworks just like we have in Python(Django) and Java(Spring).
I want to use something which has end to end solutions. ORM tools, transaction mangement, logging etc.
I am not sure how Cake is?
But, I am looking something very similar to Django in Php.
hi everyone,,,plz helpl me out ..
i want my css to recognise as mystyle.php but inside code would be of css ,
and i want to access it in my index.php page with header method ,i dont want to use
Link method.