Hi there
I'm quite experienced in programming in PHP4, but I would like to make
a step to PHP5.
I created following class which works perfectly in PHP4 :
If I include this class into a script running in PHP5, I only get a
blank output. In fact, the execution seems to stop when including or
instantiating this class. I don't get any error message, even with
error_reporting (E_ALL).
What am I missing ? 7 1738
Mathieu Maes wrote:
Hi there
I'm quite experienced in programming in PHP4, but I would like to make
a step to PHP5.
I created following class which works perfectly in PHP4 :
If I include this class into a script running in PHP5, I only get a
blank output. In fact, the execution seems to stop when including or
instantiating this class. I don't get any error message, even with
error_reporting (E_ALL).
What am I missing ?
I didn't really looked into your code but usually the biggest difference
between objects in php4 and php5 is that all the object variables are
passed by reference in php5 (and I think I've seen you use some of those :)
--
B.r.K.o.N.j.A = Bionic Robotic Knight Optimized for Nocturnal Judo and
Assasination
Is there something in an errorlog (if that is turned on in php.ini)?
Dikkie Dik wrote:
Is there something in an errorlog (if that is turned on in php.ini)?
all errors are usually logged in a file as well... Nothing in there.
This is the script how I use the class :
=======
<pre>
<?php
require "nessi.class.ph p";
$xml = new Nessi;
$xml = loadfile(invoic e.xml);
print_r($GLOBAL S);
?>
</pre>
=======
The output of the script is :
<pre>
I really haven't got a clue ...
Does the nessi class code start with <?php ? It may start with <? while
short tags are not configured in php.ini
Mathieu Maes wrote:
Dikkie Dik wrote:
>Is there something in an errorlog (if that is turned on in php.ini)?
all errors are usually logged in a file as well... Nothing in there.
This is the script how I use the class :
=======
<pre>
<?php
require "nessi.class.ph p";
$xml = new Nessi;
$xml = loadfile(invoic e.xml);
print_r($GLOBAL S);
?>
</pre>
=======
The output of the script is :
<pre>
I really haven't got a clue ...
Dikkie Dik wrote:
Does the nessi class code start with <?php ? It may start with <? while
short tags are not configured in php.ini
Mathieu Maes wrote:
>Dikkie Dik wrote:
>>Is there something in an errorlog (if that is turned on in php.ini)?
all errors are usually logged in a file as well... Nothing in there.
This is the script how I use the class : ======= <pre> <?php require "nessi.class.ph p"; $xml = new Nessi;
To instantiate the class Nessi I think it should look like this:
$xml = new Nessi();
>$xml = loadfile(invoic e.xml); print_r($GLOBA LS); ?> </pre> =======
The output of the script is : <pre>
I really haven't got a clue ...
--
--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
I think this is a server configuration problem.
I usually use <?php ?>, but now I tried with <? ?>. Now the code is
just shown in the output in stead of parsed...
Thanks for all your efforts !
IchBin wrote:
Dikkie Dik wrote:
Does the nessi class code start with <?php ? It may start with <? while
short tags are not configured in php.ini
Mathieu Maes wrote:
Dikkie Dik wrote: Is there something in an errorlog (if that is turned on in php.ini)?
all errors are usually logged in a file as well... Nothing in there.
This is the script how I use the class :
=======
<pre>
<?php
require "nessi.class.ph p";
$xml = new Nessi;
To instantiate the class Nessi I think it should look like this:
$xml = new Nessi();
$xml = loadfile(invoic e.xml);
print_r($GLOBAL S);
?>
</pre>
=======
The output of the script is :
<pre>
I really haven't got a clue ...
--
--
Thanks in Advance...
IchBin, Pocono Lake, Pa, USA http://weconsultants.phpnet.us
'If there is one, Knowledge is the "Fountain of Youth"'
-William E. Taylor, Regular Guy (1952-)
Mathieu Maes wrote:
Dikkie Dik wrote:
>>Is there something in an errorlog (if that is turned on in php.ini)?
all errors are usually logged in a file as well... Nothing in there.
This is the script how I use the class :
=======
<pre>
<?php
require "nessi.class.ph p";
$xml = new Nessi;
$xml = loadfile(invoic e.xml);
print_r($GLOBAL S);
?>
</pre>
=======
The output of the script is :
<pre>
I really haven't got a clue ...
This generally means you have an error in the required file
(nessi.class.ph p).
Ensure you have all errors enabled and displayed, or check your error
log (often times the server error log) for errors.
I suspect you'll find an error in the class file.
--
=============== ===
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp. js*******@attgl obal.net
=============== === This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Nisha_tm |
last post by:
Hello:
I have a form in which I have checkboxes.
Right now, I wrote the form's html and the php4 script.
I use associative arrays in the form to capture the checkboxes
that are checked.
My html form puts the data in $info if the check box is checked.
Part of my php4 script is as follows:
|
by: Klaus Boehmer |
last post by:
Hello,
I'm trying to install gd2 with gif-support as an extension with php4.
I compiled the patched version of gd2 - fine. I compiled php4 with
gd=shared - fine. I installed it and restarted apache and I get:
undefined symbol: gdImagePngCtx
I recompiled php4 and included gd and everything works fine. But as
soon as I compile gd2 as shared things mess up.
I've searched 2 days for a solution, but didn't find anything.
Please help me!
|
by: Erik |
last post by:
I understand, that PHP4 has a MySQL client built in.
I was warned, that this client does not support the MySQL 4.1.1
system, which I installed on my RH9 box end that I need to install
that version myself in PHP4.
Now how do I install that MySQL client in my PHP4 ?
Or is is easier/smarter to use another MySQL version, one that IS
supported directly by PHP4 ?
|
by: Brad Shinoda |
last post by:
I've been running apache and PHP by using apt-get packages for a long
time now, and it's been working fine for me. But the other day I tried
to get image functions working and hit a brick wall with the
packaging. I get my packages from stable. Basically, when I tried to
install php4-gd2, I get something like this:
php4-gd2 depends on zendapi-20040901
I seem to have that (virtual) package already installed however. The
only way I...
|
by: Terry Richards |
last post by:
i am getting lots of errors such as:"...differs in signedness"
what is it from?
/Users/terryrichards/tmp/php-4.3.11/ext/zlib/zlib.c: In function
'zif_gzcompress':
/Users/terryrichards/tmp/php-4.3.11/ext/zlib/zlib.c:440: warning:
pointer targets in passing argument 1 of 'compress2' differ in signedness
....
/Users/terryrichards/tmp/php-4.3.11/ext/session/session.c: In function
| |
by: Google Mike |
last post by:
I found some strange kind of mild install bug when installing Ubuntu
5.04 php4-pgsql module (the module that connects PHP4 to PostgreSQL).
You may encounter the error:
Call to undefined function: pg_connect()
No amount of using Synaptic Package Manager would fix this for me. The
solution was all at command line under 'root' account:
$ apt-get update
|
by: FrankL |
last post by:
I had to update my server configuration consisting of Apache2 and PHP4. I
now have installed:
apache2/apache2-prefork 2.0.54-2.1
apache-mod_php4/php4-zlib/php4 4.3.11-0.3.1
"Regular" PHP scripts work just fine, but the websvn script is acting up -
after selecting a repository the page just "hangs", i.e. the browser waits
"forever" for a response. If that happens there is no error message in the
server log and it looks like...
|
by: danish |
last post by:
Hi,
Can anyone tell me how to access oracle from php. Im using CentOS 4
with php4 already installed. From what I found after a bit of
googling...php will have to be recompiled with oracle support. This
seems to be a lot tedious.
Anyone with an advic on how to use oracle with php.
Im using CentOS4
php4
oracle10g
|
by: danish |
last post by:
I download the oci-1.2.2.tgz file and generated the oci8.so file. After
adding the
extension=oci8.so
in php.ini
I get the error
unable to load dynamic library /usr/lib/php4/oci8.so
|
by: doctorhardik |
last post by:
hai all
i am try configure php4.3.9 on my FC-3 machine.
and my mysql database version 5.0.1, in phpinfo file it show mysql but
when i run
php -v command it show error like
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |