BBC wrote:
What types of images are these? JPG, PNG, GIF?
Its jpg. Look... I don't know exactly what your point,
I'm just asking you about the function to resolve the
size of image like the
codes below:
if (file_exists($img_path)){
list($width,$height) = getimagesizes($img_path);
}else{
$width
Hi guys,
I am reviewing an affiliate system that I created a while ago. I am using a
very simple method to do this, but I am curious if there is any better
system (better I mean less missed affiliate purchases).
1. User click on affiliate link http://thedomain.com/?a=1234
2. The if $_GET['a'] is
On Tue, 12 Sep 2006 15:02:08 -0700
Kevin Murphy <[EMAIL PROTECTED]> wrote:
> I have a web form where trusted people will be inputing information
> that they usually copy/paste out of MS Word. While the people are
> trusted... MS Word isn't. I keep getting garbage characters in there,
> usual
On Tue, 2006-09-12 at 15:02 -0700, Kevin Murphy wrote:
> Is there some way I can filter/convert this information before it
> gets to the mysql database?
Best way to do this is to send it through catdoc. Not sure if the Word
upload is HTML(ish) or a Word doc, but if the latter, then catdoc is
yo
Rahul S. Johari wrote:
That was a good idea. I tried that... It was showing nothing for
/Volumes/foresight ... But it did show the contents of /Volumes... And
interestingly, 'foresight' was also listed there, but it's filetype was
blank... Others had like "dir" or "link" or "file" But foresig
i'm just going to guess. check your settings if it allows to open external
files, especifically allowed to fopen url.
http://www.php.net/manual/en/ref.filesystem.php#ini.allow-url-fopen
hth,
john
On 9/13/06, R B <[EMAIL PROTECTED]> wrote:
I think it's a security https problem.
I was reading
Brian Dunning wrote:
I'm considering upping my production server from 4 to 5. There are too
many sites to test everything in 5 first. Is there a good source I can
go to to find out what kinds of problems to expect?
Do a search on google - there are tons of blog posts about problems /
issues p
Zbigniew Szalbot wrote:
Hello,
I am trying to setup vexim (admin panel for handling domains in exim) and
I am getting an error that I thought I would ask you to help me
troubleshoot if possible.
Namely, when I start apache and try to open vexim panel, apache shows no
errors (just a blank page)
That was a good idea. I tried that... It was showing nothing for
/Volumes/foresight ... But it did show the contents of /Volumes... And
interestingly, 'foresight' was also listed there, but it's filetype was
blank... Others had like "dir" or "link" or "file" But foresight's
filetype had nothin
My doc_root is empty and I don't have a open_basedir specified in my php.ini
What should their values be set to for me to do what I'm trying to do?
Thanks!
On 9/12/06 6:19 PM, "Stephen Edberg" <[EMAIL PROTECTED]> wrote:
> Is PHP configured to allow access to /Volumes directory? Check doc_root,
Is PHP configured to allow access to /Volumes directory? Check doc_root,
open_basedir in your php.ini:
http://us3.php.net/manual/en/ini.php
steve
On Tue, 12 Sep 2006, Rahul S. Johari wrote:
>
> I did exactly that... Used Terminal to find the correct path. Did "pwd" in
> terminal
You could try getting a directory listing with PHP to see if you can see what
files are in there, or if you can access that directory through PHP.
http://us2.php.net/manual/en/function.opendir.php
--
Ray Hauge
Programmer/Systems Administrator
American Student Loan Services
www.americanstudentlo
I think it's a security https problem.
I was reading that with IIS, you can't use fopen in a https server... I
think i have this problem also with copy...
Some ideas?
On 9/12/06, R B <[EMAIL PROTECTED]> wrote:
It's not a syntaxis problem.
On 9/12/06, Robert Cummings <[EMAIL PROTECTED]> w
I did exactly that... Used Terminal to find the correct path. Did "pwd" in
terminal window where my file is located. And this is what I got:
/Volumes/foresight
Which is what I have used in php to specify the path. But it still says file
doesn't exist.
On 9/12/06 6:05 PM, "Ray Hauge" <[EMAIL PRO
Hello all,
I have found a way...
$doc = new DomDocument();
$doc->loadHTMLFile($source["url"]);
$elements = $doc->getElementsByTagName("tr");
$i = 0;
while( $elements->item($i) ){
if( $elements->item($i)->hasAttributes() &&
preg_match("/td[0|1]/",$elements->item($i)->getAttribute("id")) > 0 ){
I have a web form where trusted people will be inputing information
that they usually copy/paste out of MS Word. While the people are
trusted... MS Word isn't. I keep getting garbage characters in there,
usually associated with Smart Quotes. If I take the content out of
the DB, throw it int
Hmmm... That's odd.
I would use your terminal program, then change directory to the location of
the file, and do "pwd". That should give you your working directory. If you
can get to it on OSX, and PHP is on OSX, then PHP should be able to see the
file in the same path.
--
Ray Hauge
Progra
You're talking about the DBF Exists function... It echo's out that the file
does not exist. Which is the whole problem. I've tried specifying different
kinds of files that are in that folder... Any file I specify... It gives out
that the file does not exist. That's because I can't get my path to w
As a matter of fact... I'm trying to do file_exists...and it says the file
does not exist in the given location... And that's because my path isn't
correct. I just don't know what path I need to specify for a shared server
folder on a mac os x.
On 9/12/06 5:53 PM, "Ray Hauge" <[EMAIL PROTECTED]>
On Tuesday 12 September 2006 16:45, Rahul S. Johari wrote:
> If I hit 'Get Info' on the share folder, a file within that folder, or even
> the DBF I'm trying to open... Mac OS X tells me that I have 'Read & Write'
> access to it. Basically All permissions have been provided to the Mac OS X
> user f
Rahul S. Johari wrote:
Permissions have been set on the Windows Server for the Mac user... And all
permissions have been given to him.
This is my code..
$filename exists";
} else {
echo "The file $filename does not exist";
}
?>
And what does this echo out?
--
John C. Nichel IV
Pr
If I hit 'Get Info' on the share folder, a file within that folder, or even
the DBF I'm trying to open... Mac OS X tells me that I have 'Read & Write'
access to it. Basically All permissions have been provided to the Mac OS X
user for that share.
This is the error I get:
Warning: dbase_open() [fu
Permissions have been set on the Windows Server for the Mac user... And all
permissions have been given to him.
This is my code..
$filename exists";
} else {
echo "The file $filename does not exist";
}
?>
On 9/12/06 5:37 PM, "Ray Hauge" <[EMAIL PROTECTED]> wrote:
> On Tuesday 12 Septem
On Tuesday 12 September 2006 16:33, Rahul S. Johari wrote:
> In my Windows 2003 Server I've given the Mac OS X user all the permissions
> possible for that Share.
>
> Is there something I have to do in php as far as permissions are concerned?
>
> On 9/12/06 5:31 PM, "John Nichel" <[EMAIL PROTECTED]
In my Windows 2003 Server I've given the Mac OS X user all the permissions
possible for that Share.
Is there something I have to do in php as far as permissions are concerned?
On 9/12/06 5:31 PM, "John Nichel" <[EMAIL PROTECTED]> wrote:
> Rahul S. Johari wrote:
>> Ave,
>>
>> I¹m getting reall
It's not a syntaxis problem.
On 9/12/06, Robert Cummings <[EMAIL PROTECTED]> wrote:
On Tue, 2006-09-12 at 12:27 -0600, R B wrote:
> Hello,
>
> I need to copy, open or manipulate a gif images that is hosted in a
https
> server.
>
> But when i try to do this, i recive a warning like this:
>
> *Wa
Rahul S. Johari wrote:
Ave,
I¹m getting really frustrated with this. How do I get PHP to open/read a
file which is on a Share, mounted on Mac OS X.
My Mac OS X is connected to a Windows 2003 Server... A Shared Folder remains
mounted on my Mac OS X and I need PHP to read a file off that share. B
On Tuesday 12 September 2006 16:27, Rahul S. Johari wrote:
> Ave,
>
> I¹m getting really frustrated with this. How do I get PHP to open/read a
> file which is on a Share, mounted on Mac OS X.
>
> My Mac OS X is connected to a Windows 2003 Server... A Shared Folder
> remains mounted on my Mac OS X a
Ave,
I¹m getting really frustrated with this. How do I get PHP to open/read a
file which is on a Share, mounted on Mac OS X.
My Mac OS X is connected to a Windows 2003 Server... A Shared Folder remains
mounted on my Mac OS X and I need PHP to read a file off that share. But it
won¹t! I just can¹
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
suresh kumar wrote:
> Hi,
> I am using php mail function to send mails to our customers.but when i
> send mail to them.it is getting received in customers bulk folder .i want
> mail to get received in customers inbox.i dont know the reason why
Hello Satyam,
> That is correct but it is not complete. Everything that relies
> on a unique id would fail, CSS amongst others(which is what this
> article covers), but not the only one.
> Basically there are two functions to get elements by id or name:
> getElementById and getElementsByName.
On Tue, 2006-09-12 at 12:27 -0600, R B wrote:
> Hello,
>
> I need to copy, open or manipulate a gif images that is hosted in a https
> server.
>
> But when i try to do this, i recive a warning like this:
>
> *Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream:
> Invalid ar
Hello,
I need to copy, open or manipulate a gif images that is hosted in a https
server.
But when i try to do this, i recive a warning like this:
*Warning*: imagecreatefromgif(https:///aaa.gif): failed to open stream:
Invalid argument in .
I recive a similar message if i use:
copy(htt
Hi everyone,
For those of you that are interested, I wrote a Neural Networks Application
Programming Interface (API), for now versions in C# and PHP. The API
contains classes for creating and manipulating NNs, for backpropagation and
for data normalization.
For details, documentation and free d
On Tue, 2006-09-12 at 08:29 -0700, Brian Dunning wrote:
> I'm considering upping my production server from 4 to 5. There are
> too many sites to test everything in 5 first. Is there a good source
> I can go to to find out what kinds of problems to expect?
>
Don't really know of sites that wi
I'm considering upping my production server from 4 to 5. There are
too many sites to test everything in 5 first. Is there a good source
I can go to to find out what kinds of problems to expect?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.p
Chris schrieb:
Merlin wrote:
Hi there,
I can not find a way to get this working on one server of mine. The
error_log() funciton does not result in an entry to this log. The log
exists and php.ini is configured to write error warnings out (so it
does on system warnings). The same thing workes
At 12:55 PM +0100 9/12/06, Ford, Mike wrote:
Correction:
$_GET - any parameters passed in the GET string.
$_POST - any parameters passed in the body of a POST query.
$_COOKIE - Any values sent by the browser as a cookie.
$_REQUEST - The *three* above merged.
I'm not sure whether $_REQUE
What are you doing on this line:
$headers .= 'From: MyADTV @yahoo.co.in>' . "\r\n";
Should it not be:
$headers .= 'From: MyADTV <[EMAIL PROTECTED]>' . "\r\n";
?
/Peter
www.lauri.se - personal web site
www.dwsasia.com - company web site
-Original Message-
From: suresh kumar [mailto:
Your email is going to the bulk mail folder because the email provider
believes that it's spam. It's nothing specifically wrong with your
email, there is no "this isn't spam" flag, otherwise everyone would set it.
To figure out why the email is being marked as spam, check the program
that is doin
Hi,
I am using php mail function to send mails to our customers.but when i
send mail to them.it is getting received in customers bulk folder .i want mail
to get received in customers inbox.i dont know the reason why its getting
stored in bulk folder.
i attached the code.below,a
On 12 September 2006 08:18, Larry Garfield wrote:
[...]
>
> In any vaguely recent version of PHP, you get five super-global array
> variables:
>
> $_GET - any parameters passed in the GET string.
> $_POST - any parameters passed in the body of a POST query.
> $_REQUEST - The two above merged.
Hello,
I am trying to setup vexim (admin panel for handling domains in exim) and
I am getting an error that I thought I would ask you to help me
troubleshoot if possible.
Namely, when I start apache and try to open vexim panel, apache shows no
errors (just a blank page) but in the error log I rea
- Original Message -
From: "Leonidas Safran" <[EMAIL PROTECTED]>
By the way, because I found it strange to have more than one field with
the same id, I looked on the famous selfhtml tutorial website
http://de.selfhtml.org which says that unique id is only mandatory for
css, but not fo
Hi,
I think I once knew a PHP5 interface, which forces a class to implement
a function empty(). If an object $myObject implements this interface, it
should be possible to call empty($myObject) as it seems to work with the
interface "Countable", which does the same for count().
The problem is
-Original Message-
From: Stut [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 3:11 PM
To: Peter Lauri
Cc: php-general@lists.php.net
Subject: Re: [PHP] Mirror url
Peter Lauri wrote:
> My client wants an affiliate system developed. I already have an affiliate
> system that work
Peter Lauri wrote:
My client wants an affiliate system developed. I already have an affiliate
system that works, but I need to extend it a little.
My client want that the affiliate like should be something like:
www.domain.com/rosegarden where rosegarden is the affiliates choosen
affiliate tra
Hi,
My client wants an affiliate system developed. I already have an affiliate
system that works, but I need to extend it a little.
My client want that the affiliate like should be something like:
www.domain.com/rosegarden where rosegarden is the affiliates choosen
affiliate tracking.
correction: $GLOBALS not $_GLOBAL
:)
cheers
On 9/12/06, J R <[EMAIL PROTECTED]> wrote:
there are many ways you can keep information.
now if you must really use global. you can still use global even if the
server is set to global off by using $_GLOBAL or using globals decleration.
example:
$
there are many ways you can keep information.
now if you must really use global. you can still use global even if the
server is set to global off by using $_GLOBAL or using globals decleration.
example:
$test = 'i'm global';
function f1()
{
echo $_GLOBAL['test']; // should display i'm global
Zbigniew Szalbot wrote:
Hello again,
On Tue, 12 Sep 2006, Chris wrote:
I thought I would ask your opinion before we make any decision. Is it
really so that without register globals, such things as displaying
information from databases based on the initial choice of languages is not
an option?
On Tuesday 12 September 2006 01:16, Zbigniew Szalbot wrote:
> Hello again,
>
> Can I ask a general question? One of the website that we have built was
> constructed using register globals. Thanks to that we set the language for
> browsing the website by determining user's browser language and then
52 matches
Mail list logo