php-general Digest 25 Aug 2006 23:34:25 -0000 Issue 4313
Topics (messages 241100 through 241123):
Re: ssl.
241100 by: Mourad Boulahboub
241101 by: Alex Turner
241102 by: Mourad Boulahboub
241104 by: Alex Turner
241106 by: Mourad Boulahboub
functions classes
241103 by: Bigmark
241105 by: Peter Lauri
241107 by: Dave Goodchild
241108 by: Mourad Boulahboub
241109 by: Alex Turner
241123 by: Larry Garfield
Re: Why small > big?
241110 by: Ivo F.A.C. Fokkema
241112 by: Ivo F.A.C. Fokkema
Re: How to deal with errors in forms
241111 by: Ivo F.A.C. Fokkema
Re: upload image
241113 by: Sonja
Re: E_ALL | E_STRICT
241114 by: Jochem Maas
241115 by: tedd
241116 by: Andries Seutens
241117 by: Paul Scott
Re: php-general mailing list active?
241118 by: Michelle Konzack
function does not exist
241119 by: Chris Boget
241120 by: Robert Cummings
241122 by: Steve Edberg
The iptcembed() function
241121 by: Dotan Cohen
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[email protected]
----------------------------------------------------------------------
--- Begin Message ---
Hi Alex,
Alex Turner schrieb am 25.08.2006 09:55:
> Mourad,
>
> I think that you might have misread the original post. The snag appears
> not to be the leaving of a secure site. The snag is that root document
> is secure but some of the embedded urls (images, frames, iframes etc)
> are unsecured. Whilst this again is a standard warning, it is one that
> should be avoided at all cost as it scares the stuff out of customers!
this is the part the answer is depending on:
> But, when the sale is finishes and my script run header("Location:
> http://www.?????") to exit from the secure part, the browser gives me a
> notice
this is also the part, that João get confused by ;)
He says that everythign works fine until he leaves the secure site.
Maybe the notice got shown before the change of the key to 256kb, and
get accepted to not show again in the future. Now after the change the
notice come again because it is a 256 key instead of 128kb. I don't know
if IE makes a difference in that
>
> AJ
> www.deployview.com
regards
Mourad
--
--- End Message ---
--- Begin Message ---
My understanding is that the message said that the page had a mix of ssl
and non ssl and that the root remained https. This root did not remain
https before the key change.
Mourad Boulahboub wrote:
Hi Alex,
Alex Turner schrieb am 25.08.2006 09:55:
Mourad,
I think that you might have misread the original post. The snag appears
not to be the leaving of a secure site. The snag is that root document
is secure but some of the embedded urls (images, frames, iframes etc)
are unsecured. Whilst this again is a standard warning, it is one that
should be avoided at all cost as it scares the stuff out of customers!
this is the part the answer is depending on:
But, when the sale is finishes and my script run header("Location:
http://www.?????") to exit from the secure part, the browser gives me a
notice
this is also the part, that João get confused by ;)
He says that everythign works fine until he leaves the secure site.
Maybe the notice got shown before the change of the key to 256kb, and
get accepted to not show again in the future. Now after the change the
notice come again because it is a 256 key instead of 128kb. I don't know
if IE makes a difference in that
AJ
www.deployview.com
regards
Mourad
--
www.deployview.com
www.nerds-central.com
www.project-network.com
--- End Message ---
--- Begin Message ---
Hi alex,
Alex Turner schrieb am 25.08.2006 10:36:
> My understanding is that the message said that the page had a mix of ssl
> and non ssl and that the root remained https. This root did not remain
> https before the key change.
maybe João will throw light on this ;)
we should wait for an answer.
greets
Mourad
--
>
> Mourad Boulahboub wrote:
>> Hi Alex,
>>
>> Alex Turner schrieb am 25.08.2006 09:55:
>>> Mourad,
>>>
>>> I think that you might have misread the original post. The snag appears
>>> not to be the leaving of a secure site. The snag is that root document
>>> is secure but some of the embedded urls (images, frames, iframes etc)
>>> are unsecured. Whilst this again is a standard warning, it is one that
>>> should be avoided at all cost as it scares the stuff out of customers!
>>
>> this is the part the answer is depending on:
>>
>>> But, when the sale is finishes and my script run header("Location:
>>> http://www.?????") to exit from the secure part, the browser gives me a
>>> notice
>> this is also the part, that João get confused by ;)
>> He says that everythign works fine until he leaves the secure site.
>>
>> Maybe the notice got shown before the change of the key to 256kb, and
>> get accepted to not show again in the future. Now after the change the
>> notice come again because it is a 256 key instead of 128kb. I don't know
>> if IE makes a difference in that
>>
>>
>>> AJ
>>> www.deployview.com
>> regards
>> Mourad
>
>
--- End Message ---
--- Begin Message ---
You're right, but I am impatient ;-) :-)
Best wishes - AJ
Mourad Boulahboub wrote:
Hi alex,
Alex Turner schrieb am 25.08.2006 10:36:
My understanding is that the message said that the page had a mix of ssl
and non ssl and that the root remained https. This root did not remain
https before the key change.
maybe João will throw light on this ;)
we should wait for an answer.
greets
Mourad
--
www.deployview.com
www.nerds-central.com
www.project-network.com
--- End Message ---
--- Begin Message ---
Hi alex
Alex Turner schrieb am 25.08.2006 11:19:
> You're right, but I am impatient ;-) :-)
i am too. but it can't be helped. we have to wait *gg*
>
> Best wishes - AJ
regards
Mourad
--
>
> Mourad Boulahboub wrote:
>> Hi alex,
>>
>> Alex Turner schrieb am 25.08.2006 10:36:
>>> My understanding is that the message said that the page had a mix of ssl
>>> and non ssl and that the root remained https. This root did not remain
>>> https before the key change.
>>
>> maybe João will throw light on this ;)
>> we should wait for an answer.
>>
>> greets
>> Mourad
>
>
--- End Message ---
--- Begin Message ---
Can anyone tell me if it is relatively an easy process for an experienced
coder (not me) to convert a php script to mainly functions/classes.
I have my own script that i would like to make more streamlined as it is
becoming very difficult to work with.
--- End Message ---
--- Begin Message ---
It should not be to big of a problem if you can set your mind into thinking
about functions and objects instead of a step by step script. Then just cut
it in pieces and your are done :)
-----Original Message-----
From: Bigmark [mailto:[EMAIL PROTECTED]
Sent: Friday, August 25, 2006 4:40 PM
To: [email protected]
Subject: [PHP] functions classes
Can anyone tell me if it is relatively an easy process for an experienced
coder (not me) to convert a php script to mainly functions/classes.
I have my own script that i would like to make more streamlined as it is
becoming very difficult to work with.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--- End Message ---
--- Begin Message ---
On 25/08/06, Peter Lauri <[EMAIL PROTECTED]> wrote:
It should not be to big of a problem if you can set your mind into
thinking
about functions and objects instead of a step by step script. Then just
cut
it in pieces and your are done :)
Agreed. If it puts you on the good foot, send an extract from your script
and I will give you an indicator of where to start.
--
http://www.web-buddha.co.uk
http://www.projectkarma.co.uk
--- End Message ---
--- Begin Message ---
Hi Bigmark,
Bigmark schrieb am 25.08.2006 11:39:
> Can anyone tell me if it is relatively an easy process for an experienced
> coder (not me) to convert a php script to mainly functions/classes.
> I have my own script that i would like to make more streamlined as it is
> becoming very difficult to work with.
>
it's not impossible, but can take a lot of time to pick the script to
pieces and get it converted to a script (ore more coherent scripts) with
functions and/or classes.
It depends on the script itself.
Greets
Mourad
--
--- End Message ---
--- Begin Message ---
Bigmark,
I have been involved in the evolution of the development process and
architecture called functional normalization. I do intend to post some
detail on this at funkifunctions.blogspot.com very soon.
Anyhow, using this method might help you some what. The trick being to
look through your script and see if the same thing is being done in more
than one place. For example, if you find a piece of code that converts
a string into a URL and that piece of code is REPEATED through thes
script, then place that code in a function and replace the instance of
the code with function calls.
Over a period of time you will see more and more of your code turn into
functions. Once this process has started you will be able to predict to
some extent what new pieces of code could be re-used in this way and
hence write them as functions also.
This approach has proved to be extremely successful in advancing the
careers and coding practices of developers inside and contractors to the
project network (www.project-network.com).
If you would like, I am very happy to take a script from you and convert
it over to functions. I will also let you know when more material on FN
is posted to the blogsphere.
As for classes. I would recommend avoiding thinking about these yet.
Function level re-use is a better start discipline that class level
re-use IMHO. I know this is an contentious issue. Having been an avid
OO programmer for many years I have evolved away from this, other people
have different views (yes really, I did a lot of OO work with
Java/Weblogic/C++/iTCL etc etc etc - please don't flame - not interested!).
For more thoughts on what I don't like about OO:
http://deployview.com/blog/2006/08/object-oriented-poison.html
Best wishes and good luck
AJ
Mourad Boulahboub wrote:
Hi Bigmark,
Bigmark schrieb am 25.08.2006 11:39:
Can anyone tell me if it is relatively an easy process for an experienced
coder (not me) to convert a php script to mainly functions/classes.
I have my own script that i would like to make more streamlined as it is
becoming very difficult to work with.
it's not impossible, but can take a lot of time to pick the script to
pieces and get it converted to a script (ore more coherent scripts) with
functions and/or classes.
It depends on the script itself.
Greets
Mourad
--
www.deployview.com
www.nerds-central.com
www.project-network.com
--- End Message ---
--- Begin Message ---
On Friday 25 August 2006 04:39, Bigmark wrote:
> Can anyone tell me if it is relatively an easy process for an experienced
> coder (not me) to convert a php script to mainly functions/classes.
> I have my own script that i would like to make more streamlined as it is
> becoming very difficult to work with.
That really depends on the nature of the code. I've some code I have to work
with now that is built around dumping all kinds of stuff into the global
namespace, even from functions. If I ever manage convince the author what an
insanely bad idea that is, it will still be hell to fix because of the way
it's built.
Most code probably isn't quite that bad, though. Your code could already
break down into functions quite nicely, or it could be easier to just start
from scratch. No way to tell without seeing the code.
--
Larry Garfield AIM: LOLG42
[EMAIL PROTECTED] ICQ: 6817012
"If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an idea,
which an individual may exclusively possess as long as he keeps it to
himself; but the moment it is divulged, it forces itself into the possession
of every one, and the receiver cannot dispossess himself of it." -- Thomas
Jefferson
--- End Message ---
--- Begin Message ---
> [SNIP]
> As for PNG: As far as I know, the only issue with any realistic browser
> (other than very old ones like IE2 or something) is that the alpha
> channel is not supported. As there is no alpha channel in JPEG, so
> there is no difference. Though I do not profess to be absolutely sure
> that all browsers you might encounter manage PNG ok.
I personally use PNG all the time for smaller images. Only for high color,
larger images, I use JPEG. Besides the unsupported Alpha
transparency that you've already mentioned, I've never had any form of
problem (or heard anyone complain) about unsupported PNG images. And
that's indexed and RGB PNGs.
--- End Message ---
--- Begin Message ---
> [SNIP]
> Considering in this thread where I left the quality at 100% and
> reduced the image to less 40 percent of the original, and the end
> result was that I actually made a larger file. So, I belive that at
> least this example shows that 100% is not a good quality value
> setting for reducing images -- thus we know the high end is less than
> 100.
I know from experience that reducing the quality from 100% to 95%
sometimes reduces the file size to 50%; without showing much noticeable
change in quality...
HTH
--- End Message ---
--- Begin Message ---
On Thu, 24 Aug 2006 11:40:17 +0200, Merlin wrote:
> Hi there,
>
> I do have a form where there is also a field with max 2000 characters
> the user can put in.
>
> Now before processing the data with php, I do a checkin the script for
> certain criterias if something lookes wrong I do redirect him to the
> original form with inserting the data he has entered. I do this via GET
> e.g.: ?title=test&body=blablub
>
> That works fine with one exception. If the user does enter 2000
> characters (or a lot c.) they do get transfered via URL as well and that
> is not possible. Firfox for example then simply displays a blank page!!!
> It would be fine if he would return with just a few less characters, but
> at least display the error message I am providing.
>
> Now, 2 questions:
> 1) Does anybody know why firefox is shoing a blank page? If the URL does
> contain less characters, lets say 100 everything works fine.
> 2) How could I possibly save his entry? Maybe with the help of a cookie?
> But then, I do redirect to the page. So I do send a header. As far as I
> know this only once possible?
> For example:
> setcookie('bla test');
> HEADER("Location:".$data[rurl]."?error=".$error.$parameter);
>
> I would rather not like to use the help of a database.
>
> Any ideas?
>
> Regards,
>
> Merlin
You might also try to process the results from the form first, and then,
if errors are found, display the form again and put the data in there
yourself. No need to send the user back and forth. But you may need to
restructure your code a little. I personally always use this method.
1) Check if form is sent.
1a) True? Check form contents. Put errors in a variable. If there are no
errors, do whatever you need to do.
1b) False? Set all form fields to the default values (probably empty strings).
2) Check if error variable exists.
2a) True? Print error variable on the screen.
3) Print form, and load values in them.
HTH
--- End Message ---
--- Begin Message ---
Hi,
Thanks for help, I find the error, here is the code of functions.php
<?php
/*
Upload an image and create the thumbnail. The thumbnail is stored
under the thumbnail sub-directory of $uploadDir.
Return the uploaded image name and the thumbnail also.
*/
function uploadImage($inputName, $uploadDir)
{
$image = $_FILES[$inputName];
$imagePath = '';
$thumbnailPath = '';
// if a file is given
if (trim($image['tmp_name']) != '') {
$ext = substr(strrchr($image['name'], "."), 1);
// generate a random new file name to avoid name conflict
// then save the image under the new file name
$imagePath = md5(rand() * time()) . ".$ext";
$result = move_uploaded_file($image['tmp_name'], $uploadDir .
$imagePath);
if ($result) {
// create thumbnail
$thumbnailPath = md5(rand() * time()) . ".$ext";
$result = createThumbnail($uploadDir . $imagePath, $uploadDir .
'thumbnail/' . $thumbnailPath, THUMBNAIL_WIDTH);
// create thumbnail failed, delete the image
if (!$result) {
unlink($uploadDir . $imagePath);
$imagePath = $thumbnailPath = '';
} else {
$thumbnailPath = $result;
}
} else {
// the image cannot be uploaded
$imagePath = $thumbnailPath = '';
}
}
return array('image' => $imagePath, 'thumbnail' => $thumbnailPath);
}
/*
Create a thumbnail of $srcFile and save it to $destFile.
The thumbnail will be $width pixels.
*/
function createThumbnail($srcFile, $destFile, $width, $quality = 75)
{
$thumbnail = '';
if (file_exists($srcFile) && isset($destFile))
{
$size = getimagesize($srcFile);
$w = number_format($width, 0, ',', '');
$h = number_format(($size[1] / $size[0]) * $width, 0, ',',
'');
$thumbnail = copyImage($srcFile, $destFile, $w, $h, $quality);
}
// return the thumbnail file name on sucess or blank on fail
return basename($thumbnail);
}
/*
Copy an image to a destination file. The destination
image size will be $w X $h pixels
*/
function copyImage($srcFile, $destFile, $tmpSrc, $w, $h, $quality = 75)
{
$tmpSrc = pathinfo(strtolower($srcFile));
$tmpDest = pathinfo(strtolower($destFile));
$size = getimagesize($srcFile);
if ($tmpDest['extension'] == "gif" || $tmpDest['extension'] == "jpg")
{
$destFile = substr_replace($destFile, 'jpg', -3);
$dest = imagecreatetruecolor($w, $h);
//imageantialias($dest, TRUE);
} elseif ($tmpDest['extension'] == "png") {
$dest = imagecreatetruecolor($w, $h);
//imageantialias($dest, TRUE);
} else {
return false;
}
switch($size[2])
{
case 1: //GIF
$src = imagecreatefromgif($srcFile);
break;
case 2: //JPEG
$src = imagecreatefromjpeg($srcFile);
break;
case 3: //PNG
$src = imagecreatefrompng($srcFile);
break;
default:
return false;
break;
}
// This is were not allow me to write thumbnail in uploadDirectory,
problems with switch, case2:
// how to resolve this
imagecopyresampled($dest, $src, 0, 0, 0, 0, $w, $h, $size[0], $size[1]);
switch($size[2])
{
case 1:
case 2:
imagejpeg($dest,$destFile, $quality);
break;
case 3:
imagepng($dest,$destFile);
}
return $destFile;
}
/*
Check if the user is logged in or not
*/
function checkLogin()
{
if (!isset($_SESSION['isLogin']) || $_SESSION['isLogin'] == false) {
header('Location: login.php');
exit;
}
}
/*
Create the link for moving from one page to another
*/
function getPagingLink($totalResults, $pageNumber, $itemPerPage = 10,
$strGet = '')
{
$pagingLink = '';
$totalPages = ceil($totalResults / $itemPerPage);
// how many link pages to show
$numLinks = 10;
// create the paging links only if we have more than one page of results
if ($totalPages > 1) {
$self = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'] ;
// print 'previous' link only if we're not
// on page one
if ($pageNumber > 1) {
$page = $pageNumber - 1;
if ($page > 1) {
$prev = " \"$self?pageNum=$page&$strGet\" [Prev] ";
} else {
$prev = " \"$self?$strGet\" [Prev] ";
}
$first = " \"$self?$strGet\" [First] ";
} else {
$prev = ''; // we're on page one, don't show 'previous' link
$first = ''; // nor 'first page' link
}
// print 'next' link only if we're not
// on the last page
if ($pageNumber < $totalPages) {
$page = $pageNumber + 1;
$next = " \"$self?pageNum=$page&$strGet\" [Next] ";
$last = " \"$self?pageNum=$totalPages&$strGet\" [Last] ";
} else {
$next = ''; // we're on the last page, don't show 'next' link
$last = ''; // nor 'last page' link
}
$start = $pageNumber - ($pageNumber % $numLinks) + 1;
$end = $start + $numLinks - 1;
$end = min($totalPages, $end);
$pagingLink = array();
for($page = $start; $page <= $end; $page++) {
if ($page == $pageNumber) {
$pagingLink[] = " $page "; // no need to create a link to current
page
} else {
if ($page == 1) {
$pagingLink[] = " \"$self?$strGet\" $page ";
} else {
$pagingLink[] = " \"$self?pageNum=$page&$strGet\" $page ";
}
}
}
$pagingLink = implode(' | ', $pagingLink);
// return the page navigation link
$pagingLink = $first . $prev . $pagingLink . $next . $last;
}
return $pagingLink;
}
/*
Display the breadcrumb navigation on top of the gallery page
*/
function showBreadcrumb()
{
if (isset($_GET['album'])) {
$album = $_GET['album'];
$sql = "SELECT al_name
FROM tbl_album
WHERE al_id = $album";
$result = mysql_query($sql) or die('Error, get album name failed. ' .
mysql_error());
$row = mysql_fetch_assoc($result);
echo ' > index.php?page=list-image&album=' . $album . ' ' .
$row['al_name'] . ' ';
if (isset($_GET['image'])) {
$image = $_GET['image'];
$sql = "SELECT im_title
FROM tbl_image
WHERE im_id = $image";
$result = mysql_query($sql) or die('Error, get image name failed. ' .
mysql_error());
$row = mysql_fetch_assoc($result);
echo ' > index.php?page=image-detail&album=' . $album . '&image='
. $image . ' ' . $row['im_title'] . ' ';
}
}
}
?>
Thank you again
--
View this message in context:
http://www.nabble.com/upload-image-tf2157181.html#a5983598
Sent from the PHP - General forum at Nabble.com.
--- End Message ---
--- Begin Message ---
Ligaya Turmelle wrote:
> tedd wrote:
>>>>
>>>> - tul
>>>>
>>>> P.S. isn't error_reporting( FATAL | ERROR | WARNING ); supposed to
>>>> be error_reporting( E_FATAL | E_ERROR | E_WARNING ); ??
>>
>>
>>
>> Good catch.
>>
>> I'm not sure where I got that -- probably a message from some flounder
>> (Bullwinkle circa 1964).
>>
>> In my newer scripts I use:
>>
>> ini_set('error_reporting', E_ALL | E_STRICT);
>>
>> However, I'm not sure if that's redundant.
>>
>> tedd
> It isn't redundant :) - E_STRICT isn't covered under E_ALL in PHP5 IIRC.
correct.
E_STRICT is supposed to be used *only* to flag not recommended code (i.e. a
pedantic mode)
unfortunately use of E_STRICT has been 'abused' in cases where E_DEPRECIATED
should have
been used (i.e. for code that will stop working in the future rather than for
code which
the developers think is not proper)
of course it doesn't help that there is no such thing as 'E_DEPRECIATED' (yet?)
>
--- End Message ---
--- Begin Message ---
At 4:20 PM +0200 8/25/06, Jochem Maas wrote:
> It isn't redundant :) - E_STRICT isn't covered under E_ALL in PHP5 IIRC.
correct.
E_STRICT is supposed to be used *only* to flag not recommended code
(i.e. a pedantic mode)
unfortunately use of E_STRICT has been 'abused' in cases where
E_DEPRECIATED should have
been used (i.e. for code that will stop working in the future rather
than for code which
the developers think is not proper)
of course it doesn't help that there is no such thing as
'E_DEPRECIATED' (yet?)
Jochem:
So, what's the verdict, is this Okay:
ini_set('error_reporting', E_ALL | E_STRICT);
or should I lose the E_STRICT, or should it be something else?
I want to turn as much error checking as I can. I'm not using php 5, just yet.
Thanks.
tedd
--
-------
http://sperling.com http://ancientstones.com http://earthstones.com
--- End Message ---
--- Begin Message ---
tedd schreef:
Jochem:
So, what's the verdict, is this Okay:
ini_set('error_reporting', E_ALL | E_STRICT);
or should I lose the E_STRICT, or should it be something else?
I want to turn as much error checking as I can. I'm not using php 5,
just yet.
Thanks.
tedd
Hi Tedd,
E_STRICT isn't available prior to PHP 5.
Best regards,
Andries Seutens
Belgium
http://andries.systray.be
--- End Message ---
--- Begin Message ---
------=neXtPaRt_1156518520
Content-Type: text/plain
Content-Transfer-Encoding: 7bit
On Fri, 2006-08-25 at 10:43 -0400, tedd wrote:
> or should I lose the E_STRICT, or should it be something else?
>
E_ALL in php4 will pick up everything, notices, warnings, the lot.
> I want to turn as much error checking as I can. I'm not using php 5, just yet.
>
E_STRICT in php5 will do the same, but as soon as you start using, say,
a PEAR object, you will get notices about using deprecated "var"
keywords, so E_ALL normally suffices there too. In both our php4 and 5
projects we use E_ALL for that reason.
--Paul
------=neXtPaRt_1156518520
Content-Type: text/plain;
All Email originating from UWC is covered by disclaimer
http://www.uwc.ac.za/portal/uwc2006/content/mail_disclaimer/index.htm
------=neXtPaRt_1156518520--
--- End Message ---
--- Begin Message ---
Am 2006-08-22 23:05:27, schrieb Colin Guthrie:
> [EMAIL PROTECTED] wrote:
> >I don't have a clue why my gmail account hasn't started to get traffic. But
> >it's funny how we get accustomed to the exchange of ideas and cyber-contact
> >with others. I guess I 'm having some withdrawal. ;-)
>
> Why not use gmane?
>
> I "subscribe" to the vast majority of my mailing lists via this service
> - it's awesome :)
And how can you read E-Mails then offline?
Downloading my IMAP mailfolder is VERY fast, using GMANE takes
around 5 times more. I am using GSM/EDGE/UMTS to get my stuff
since I am working mobil.
Greetings
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
50, rue de Soultz MSM LinuxMichi
0033/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
--- End Message ---
--- Begin Message ---
I'm getting the following error all throughout my PHP log:
[warning] [Unknown][0]: Unknown(): Unable to call () - function does not
exist
I'm not sure it's going to survive the mailing but it appears to be a tab
character after the 'call' and before the '()'. I've spent days (not
consecutively) trying to track down this eror but have had absolutely no
luck. Has anyone else experienced a problem like this? If so, what was
causing it for you and what was your solution?
thnx,
Chris
--- End Message ---
--- Begin Message ---
On Fri, 2006-08-25 at 11:43 -0400, Chris Boget wrote:
> I'm getting the following error all throughout my PHP log:
>
> [warning] [Unknown][0]: Unknown(): Unable to call () - function does not
> exist
>
> I'm not sure it's going to survive the mailing but it appears to be a tab
> character after the 'call' and before the '()'. I've spent days (not
> consecutively) trying to track down this eror but have had absolutely no
> luck. Has anyone else experienced a problem like this? If so, what was
> causing it for you and what was your solution?
Try creating a custom error handler and when it triggers on this error
create a debug_backtrace() to view the call stack.
Cheers,
Rob.
--
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--- End Message ---
--- Begin Message ---
At 11:43 AM -0400 8/25/06, Chris Boget wrote:
I'm getting the following error all throughout my PHP log:
[warning] [Unknown][0]: Unknown(): Unable to call () - function
does not exist
I'm not sure it's going to survive the mailing but it appears to be
a tab character after the 'call' and before the '()'. I've spent
days (not consecutively) trying to track down this eror but have had
absolutely no luck. Has anyone else experienced a problem like
this? If so, what was causing it for you and what was your solution?
Since function names can be variables, you might unintentionally have
a reference that looks like
$foo = $function($bar);
instead of
$foo = function($bar);
You can get a similar error with object methods ($foo =
$Obj->$method($bar) versus $foo = $Obj->method($bar)), but I believe
in that case you would get a different error ('nonexistent method
call' or something like that).
steve
--
+--------------- my people are the people of the dessert, ---------------+
| Steve Edberg http://pgfsun.ucdavis.edu/ |
| UC Davis Genome Center [EMAIL PROTECTED] |
| Bioinformatics programming/database/sysadmin (530)754-9127 |
+---------------- said t e lawrence, picking up his fork ----------------+
--- End Message ---
--- Begin Message ---
Has anybody a working example of iptcembed()? I can't get it to work,
and it's not documented. Thanks in advance.
Dotan Cohen
http://ie-only.com
--- End Message ---