Hi,
We have some scripts here where we use some AJAX to populate some of
the page.
Basically the AJAX routine calls a PHP script. That PHP script uses a
bunch of ECHO statements to create the page. Then, we use the
innerHTML to populate the section on the page.
The problem is, we have a small javascript routine in the middile of
the page which MUST be located there. It cannot be in the head.
If this is straight HTML, it works fine. But, if we use the PHP to
echo everything and then set the innerHTML, it does not work.
Is there any way to perform this? Basically use PHP to output a small
inline <SCRIPTroutin e, and have it execute?
Thank you! 9 1781 ar*@unsu.com wrote:
Hi,
We have some scripts here where we use some AJAX to populate some of
the page.
Basically the AJAX routine calls a PHP script. That PHP script uses a
bunch of ECHO statements to create the page. Then, we use the
innerHTML to populate the section on the page.
The problem is, we have a small javascript routine in the middile of
the page which MUST be located there. It cannot be in the head.
If this is straight HTML, it works fine. But, if we use the PHP to
echo everything and then set the innerHTML, it does not work.
Is there any way to perform this? Basically use PHP to output a small
inline <SCRIPTroutin e, and have it execute?
Thank you!
Yes. Put a <div id="blah"surrou nding that block. Mow make the target
of the Javascript innerHTML be for that div, "blah". You can position
the "blah" wherever you want.
Now, when you say in the middle of the page, do you mean that it is some
fixed position relative to what is above? Or, do you mean that it is in
the middle of the screen regardless of how you scroll the stuff behind.
The latter is handles (except IE6) with position: fixed. There are
workarounds for IE6 having to do with overflow. If you mean the latter,
that is handled with position: relative and position: fixed.
By the way, I would use print rather than echo and use an ob_start to
gather it all before closing in and writing it.
On May 21, 11:30 am, sheldonlg <sheldonlgwrote :
a...@unsu.com wrote:
Hi,
We have some scripts here where we use some AJAX to populate some of
the page.
Basically the AJAX routine calls a PHP script. That PHP script uses a
bunch of ECHO statements to create the page. Then, we use the
innerHTML to populate the section on the page.
The problem is, we have a small javascript routine in the middile of
the page which MUST be located there. It cannot be in the head.
If this is straight HTML, it works fine. But, if we use the PHP to
echo everything and then set the innerHTML, it does not work.
Is there any way to perform this? Basically use PHP to output a small
inline <SCRIPTroutin e, and have it execute?
Thank you!
Yes. Put a <div id="blah"surrou nding that block. Mow make the target
of the Javascript innerHTML be for that div, "blah". You can position
the "blah" wherever you want.
Now, when you say in the middle of the page, do you mean that it is some
fixed position relative to what is above? Or, do you mean that it is in
the middle of the screen regardless of how you scroll the stuff behind.
The latter is handles (except IE6) with position: fixed. There are
workarounds for IE6 having to do with overflow. If you mean the latter,
that is handled with position: relative and position: fixed.
By the way, I would use print rather than echo and use an ob_start to
gather it all before closing in and writing it.
Thanks for the reply. My explanation may be a bit convoluted, so,
I'll try my best to explain it.
We are trying to use AJAX and XML to populate the page. Our PHP
script selects data from the database, returns the data to the calling
Javascript routine and sets innerHTML by concatenating a long string
like this:
str = '<table>';
str = str + '<TR>';
str = str + '<TD>';
str = str + '<INPUT TYPE=text NAME=CustName ID=CustName SIZE=25
MAXLENGTH=25 VALUE="' + getElementTextN S("", "Name", r[i], 0)
So, we create each <DIVlike that and then set innerHTML. Probably
not the best way, but it works fine. There is also a javascript
calendar on the page. We populate the text box associated with the
calendar with data from the AJAX routine using the following line
though it is a bit more involved:
document.Detail _Screen.EnterDa te.value=getEle mentTextNS("",
"entered_da te", r[i], 0);
The javascript is in a <DIVwhich is in the normal HTML document and
works fine. No problems.
The real issue is that our page has 3 combo boxes on it. We need to
populate the combo boxes with values and the selected value should
match what the value is in the database record that is being
displayed. We do not want to hard code all the combo box values.
So, how do we select all the values from the database that belong in
the combo box and return them using AJAX? One of the boxes has 40
options in it. We do not want to hard code 40 items.
Because we did not know how to do that, we made our second attempt,
which was to let the PHP script create the page via echo statements.
The problem there is that the inline javascript routine is not
executing. And, since we need to put the date value in the text box,
how can we access that value? The text box is on the HTML side, and
the PHP is on the server side.
So in summary, we would like to use AJAX & XML. But, we do not know
how to populate the combo boxes with values and be able to choose the
selected value without returning 40 fields from the database. That is
not a good plan.
If we use the PHP method, then how do we access the date value so we
can put it into the calendar text box? The page would be drawn on the
PHP side. Since the calendar is on the HTML side, we cannot access it
from the server....
Does it all make sense? Do you see our problem? If not let me know
and I can try to explain more.
Thank you! ar*@unsu.com wrote:
On May 21, 11:30 am, sheldonlg <sheldonlgwrote :
>a...@unsu.co m wrote:
>>Hi, We have some scripts here where we use some AJAX to populate some of the page. Basically the AJAX routine calls a PHP script. That PHP script uses a bunch of ECHO statements to create the page. Then, we use the innerHTML to populate the section on the page. The problem is, we have a small javascript routine in the middile of the page which MUST be located there. It cannot be in the head. If this is straight HTML, it works fine. But, if we use the PHP to echo everything and then set the innerHTML, it does not work. Is there any way to perform this? Basically use PHP to output a small inline <SCRIPTroutin e, and have it execute? Thank you!
Yes. Put a <div id="blah"surrou nding that block. Mow make the target of the Javascript innerHTML be for that div, "blah". You can position the "blah" wherever you want.
Now, when you say in the middle of the page, do you mean that it is some fixed position relative to what is above? Or, do you mean that it is in the middle of the screen regardless of how you scroll the stuff behind. The latter is handles (except IE6) with position: fixed. There are workarounds for IE6 having to do with overflow. If you mean the latter, that is handled with position: relative and position: fixed.
By the way, I would use print rather than echo and use an ob_start to gather it all before closing in and writing it.
You lost me at "hello". (to paraphrase and twist Jerry McGuire). I'll
try, though.
Thanks for the reply. My explanation may be a bit convoluted, so,
I'll try my best to explain it.
We are trying to use AJAX and XML to populate the page. Our PHP
script selects data from the database, returns the data to the calling
Javascript routine and sets innerHTML by concatenating a long string
like this:
str = '<table>';
str = str + '<TR>';
str = str + '<TD>';
str = str + '<INPUT TYPE=text NAME=CustName ID=CustName SIZE=25
MAXLENGTH=25 VALUE="' + getElementTextN S("", "Name", r[i], 0)
OK so far. (assuming you also close tags properly)
>
So, we create each <DIVlike that and then set innerHTML. Probably
not the best way, but it works fine. There is also a javascript
Why not?
calendar on the page. We populate the text box associated with the
calendar with data from the AJAX routine using the following line
though it is a bit more involved:
document.Detail _Screen.EnterDa te.value=getEle mentTextNS("",
"entered_da te", r[i], 0);
The javascript is in a <DIVwhich is in the normal HTML document and
works fine. No problems.
Fine.
>
The real issue is that our page has 3 combo boxes on it. We need to
populate the combo boxes with values and the selected value should
match what the value is in the database record that is being
displayed. We do not want to hard code all the combo box values.
Watcha mean by "combo box". I have seen controls for dropdown lists
with multiple lines and I have seen text entries, but I have not seen a
combo box control that combines the two. (It would be nice, though, as
it enables the user to enter a value not on the list).
>
So, how do we select all the values from the database that belong in
the combo box and return them using AJAX? One of the boxes has 40
options in it. We do not want to hard code 40 items.
By a mysql query? There has to be something constraining in the where
clause. You haven't said what. Once you do the proper query, you can
build the select list string and use that for the innerHTML.
>
Because we did not know how to do that, we made our second attempt,
which was to let the PHP script create the page via echo statements.
Oh, I see. You didn't want to put all those values in raw HTML. OK.
The problem there is that the inline javascript routine is not
executing. And, since we need to put the date value in the text box,
Why is it not executing. I have an AJAX application that builds an area
via AJAX with innerHTML and it calls javascripts when clicked. The only
prerequisite is that the javascript be in place at load time. I
accomplish this by loading the library when I call that page.
how can we access that value? The text box is on the HTML side, and
the PHP is on the server side.
What is the problem here? In the javascript that invokes the AJAX you have
var dateVal = getElementByID( 'id of the date text box').value;
You can create an object with
var obj = new Object();
and have obj.dateVal = dateVal;
You then pass that with the call to your AJAX and decipher it at the php
side.
>
So in summary, we would like to use AJAX & XML. But, we do not know
how to populate the combo boxes with values and be able to choose the
selected value without returning 40 fields from the database. That is
not a good plan.
I don't understand this.
>
If we use the PHP method, then how do we access the date value so we
can put it into the calendar text box? The page would be drawn on the
PHP side. Since the calendar is on the HTML side, we cannot access it
The page is NEVER **drawn** on the php (server) side. It is ALWAYS
**drawn** on the HTML (client) side. You can compose a string on the
php side, but it is not drawn there.
from the server....
You access it on the client, add the parameter into an object's field
and pass that to the server where it is deciphered. Clients side does
client things and server side does server things. They communicate, in
this case, with the AJAX calls and objects that are passed.
>
Does it all make sense? Do you see our problem? If not let me know
and I can try to explain more.
I think I understand you now. You, apparantly, don't know how to pass
parameters from the client to server via AJAX. Learn that and your
problems should be 99% solved.
>
Thank you!
You're welcome. (Been in your shoes many times myself.) Hope this
helped you.
On May 21, 1:43 pm, sheldonlg <sheldonlgwrote :
a...@unsu.com wrote:
On May 21, 11:30 am, sheldonlg <sheldonlgwrote :
a...@unsu.com wrote: Hi, We have some scripts here where we use some AJAX to populate some of the page. Basically the AJAX routine calls a PHP script. That PHP script uses a bunch of ECHO statements to create the page. Then, we use the innerHTML to populate the section on the page. The problem is, we have a small javascript routine in the middile of the page which MUST be located there. It cannot be in the head. If this is straight HTML, it works fine. But, if we use the PHP to echo everything and then set the innerHTML, it does not work. Is there any way to perform this? Basically use PHP to output a small inline <SCRIPTroutin e, and have it execute? Thank you!
Yes. Put a <div id="blah"surrou nding that block. Mow make the target
of the Javascript innerHTML be for that div, "blah". You can position
the "blah" wherever you want.
Now, when you say in the middle of the page, do you mean that it is some
fixed position relative to what is above? Or, do you mean that it is in
the middle of the screen regardless of how you scroll the stuff behind.
The latter is handles (except IE6) with position: fixed. There are
workarounds for IE6 having to do with overflow. If you mean the latter,
that is handled with position: relative and position: fixed.
By the way, I would use print rather than echo and use an ob_start to
gather it all before closing in and writing it.
You lost me at "hello". (to paraphrase and twist Jerry McGuire). I'll
try, though.
Thanks for the reply. My explanation may be a bit convoluted, so,
I'll try my best to explain it.
We are trying to use AJAX and XML to populate the page. Our PHP
script selects data from the database, returns the data to the calling
Javascript routine and sets innerHTML by concatenating a long string
like this:
str = '<table>';
str = str + '<TR>';
str = str + '<TD>';
str = str + '<INPUT TYPE=text NAME=CustName ID=CustName SIZE=25
MAXLENGTH=25 VALUE="' + getElementTextN S("", "Name", r[i], 0)
OK so far. (assuming you also close tags properly)
So, we create each <DIVlike that and then set innerHTML. Probably
not the best way, but it works fine. There is also a javascript
Why not?
calendar on the page. We populate the text box associated with the
calendar with data from the AJAX routine using the following line
though it is a bit more involved:
document.Detail _Screen.EnterDa te.value=getEle mentTextNS("",
"entered_da te", r[i], 0);
The javascript is in a <DIVwhich is in the normal HTML document and
works fine. No problems.
Fine.
The real issue is that our page has 3 combo boxes on it. We need to
populate the combo boxes with values and the selected value should
match what the value is in the database record that is being
displayed. We do not want to hard code all the combo box values.
Watcha mean by "combo box". I have seen controls for dropdown lists
with multiple lines and I have seen text entries, but I have not seen a
combo box control that combines the two. (It would be nice, though, as
it enables the user to enter a value not on the list).
So, how do we select all the values from the database that belong in
the combo box and return them using AJAX? One of the boxes has 40
options in it. We do not want to hard code 40 items.
By a mysql query? There has to be something constraining in the where
clause. You haven't said what. Once you do the proper query, you can
build the select list string and use that for the innerHTML.
Because we did not know how to do that, we made our second attempt,
which was to let the PHP script create the page via echo statements.
Oh, I see. You didn't want to put all those values in raw HTML. OK.
The problem there is that the inline javascript routine is not
executing. And, since we need to put the date value in the text box,
Why is it not executing. I have an AJAX application that builds an area
via AJAX with innerHTML and it calls javascripts when clicked. The only
prerequisite is that the javascript be in place at load time. I
accomplish this by loading the library when I call that page.
how can we access that value? The text box is on the HTML side, and
the PHP is on the server side.
What is the problem here? In the javascript that invokes the AJAX you have
var dateVal = getElementByID( 'id of the date text box').value;
You can create an object with
var obj = new Object();
and have obj.dateVal = dateVal;
You then pass that with the call to your AJAX and decipher it at the php
side.
So in summary, we would like to use AJAX & XML. But, we do not know
how to populate the combo boxes with values and be able to choose the
selected value without returning 40 fields from the database. That is
not a good plan.
I don't understand this.
If we use the PHP method, then how do we access the date value so we
can put it into the calendar text box? The page would be drawn on the
PHP side. Since the calendar is on the HTML side, we cannot access it
The page is NEVER **drawn** on the php (server) side. It is ALWAYS
**drawn** on the HTML (client) side. You can compose a string on the
php side, but it is not drawn there.
from the server....
You access it on the client, add the parameter into an object's field
and pass that to the server where it is deciphered. Clients side does
client things and server side does server things. They communicate, in
this case, with the AJAX calls and objects that are passed.
Does it all make sense? Do you see our problem? If not let me know
and I can try to explain more.
I think I understand you now. You, apparantly, don't know how to pass
parameters from the client to server via AJAX. Learn that and your
problems should be 99% solved.
Thank you!
You're welcome. (Been in your shoes many times myself.) Hope this
helped you.
I'll try and implement some of your suggestions.
Combo box - yes, I meant drop down list.
I guess I'll need another AJAX function to get the values for the drop
down list. I'll what I can do. Normally I'm an Oracle DBA, so, this
is a bit out of context for me...... ar*@unsu.com wrote:
On May 21, 1:43 pm, sheldonlg <sheldonlgwrote :
>a...@unsu.co m wrote:
>>On May 21, 11:30 am, sheldonlg <sheldonlgwrote : a...@unsu.co m wrote: Hi, We have some scripts here where we use some AJAX to populate some of the page. Basically the AJAX routine calls a PHP script. That PHP script uses a bunch of ECHO statements to create the page. Then, we use the innerHTML to populate the section on the page. The problem is, we have a small javascript routine in the middile of the page which MUST be located there. It cannot be in the head. If this is straight HTML, it works fine. But, if we use the PHP to echo everything and then set the innerHTML, it does not work. Is there any way to perform this? Basically use PHP to output a small inline <SCRIPTroutin e, and have it execute? Thank you! Yes. Put a <div id="blah"surrou nding that block. Mow make the target of the Javascript innerHTML be for that div, "blah". You can position the "blah" wherever you want. Now, when you say in the middle of the page, do you mean that it is some fixed position relative to what is above? Or, do you mean that it is in the middle of the screen regardless of how you scroll the stuff behind. The latter is handles (except IE6) with position: fixed. There are workaround s for IE6 having to do with overflow. If you mean the latter, that is handled with position: relative and position: fixed. By the way, I would use print rather than echo and use an ob_start to gather it all before closing in and writing it.
You lost me at "hello". (to paraphrase and twist Jerry McGuire). I'll try, though.
>>Thanks for the reply. My explanation may be a bit convoluted, so, I'll try my best to explain it. We are trying to use AJAX and XML to populate the page. Our PHP script selects data from the database, returns the data to the calling Javascript routine and sets innerHTML by concatenating a long string like this: str = '<table>'; str = str + '<TR>'; str = str + '<TD>'; str = str + '<INPUT TYPE=text NAME=CustName ID=CustName SIZE=25 MAXLENGTH=2 5 VALUE="' + getElementTextN S("", "Name", r[i], 0)
OK so far. (assuming you also close tags properly)
>>So, we create each <DIVlike that and then set innerHTML. Probably not the best way, but it works fine. There is also a javascript
Why not?
>>calendar on the page. We populate the text box associated with the calendar with data from the AJAX routine using the following line though it is a bit more involved: document.Detail _Screen.EnterDa te.value=getEle mentTextNS("", "entered_date ", r[i], 0); The javascript is in a <DIVwhich is in the normal HTML document and works fine. No problems.
Fine.
>>The real issue is that our page has 3 combo boxes on it. We need to populate the combo boxes with values and the selected value should match what the value is in the database record that is being displayed. We do not want to hard code all the combo box values.
Watcha mean by "combo box". I have seen controls for dropdown lists with multiple lines and I have seen text entries, but I have not seen a combo box control that combines the two. (It would be nice, though, as it enables the user to enter a value not on the list).
>>So, how do we select all the values from the database that belong in the combo box and return them using AJAX? One of the boxes has 40 options in it. We do not want to hard code 40 items.
By a mysql query? There has to be something constraining in the where clause. You haven't said what. Once you do the proper query, you can build the select list string and use that for the innerHTML.
>>Because we did not know how to do that, we made our second attempt, which was to let the PHP script create the page via echo statements.
Oh, I see. You didn't want to put all those values in raw HTML. OK.
>>The problem there is that the inline javascript routine is not executing. And, since we need to put the date value in the text box,
Why is it not executing. I have an AJAX application that builds an area via AJAX with innerHTML and it calls javascripts when clicked. The only prerequisite is that the javascript be in place at load time. I accomplish this by loading the library when I call that page.
>>how can we access that value? The text box is on the HTML side, and the PHP is on the server side.
What is the problem here? In the javascript that invokes the AJAX you have var dateVal = getElementByID( 'id of the date text box').value;
You can create an object with var obj = new Object(); and have obj.dateVal = dateVal;
You then pass that with the call to your AJAX and decipher it at the php side.
>>So in summary, we would like to use AJAX & XML. But, we do not know how to populate the combo boxes with values and be able to choose the selected value without returning 40 fields from the database. That is not a good plan.
I don't understand this.
>>If we use the PHP method, then how do we access the date value so we can put it into the calendar text box? The page would be drawn on the PHP side. Since the calendar is on the HTML side, we cannot access it
The page is NEVER **drawn** on the php (server) side. It is ALWAYS **drawn** on the HTML (client) side. You can compose a string on the php side, but it is not drawn there.
>>from the server....
You access it on the client, add the parameter into an object's field and pass that to the server where it is deciphered. Clients side does client things and server side does server things. They communicate, in this case, with the AJAX calls and objects that are passed.
>>Does it all make sense? Do you see our problem? If not let me know and I can try to explain more.
I think I understand you now. You, apparantly, don't know how to pass parameters from the client to server via AJAX. Learn that and your problems should be 99% solved.
>>Thank you!
You're welcome. (Been in your shoes many times myself.) Hope this helped you.
I'll try and implement some of your suggestions.
Combo box - yes, I meant drop down list.
I guess I'll need another AJAX function to get the values for the drop
down list. I'll what I can do. Normally I'm an Oracle DBA, so, this
is a bit out of context for me......
No, it is just another dba call. Then in php you build the option list
with
$resultOfQuery = mysql_query($qu ery_string);
while ($row=mysql_fet ch_assoc($resul tOfQuery)) {
$str .= '<option value="' . $row['fieldname'] . '">'
. $row['fieldname'] . '</option>';
}
You could also build the select statement around it. This, then, gets
targeted at the appropriate id. If the select has the id, then just
build the options. If it is in something else, then build the whole thing.
sheldonlg wrote:
By the way, I would use print rather than echo
I am intrigued. What is it about print that in your opinion makes it more
suitable in this particular case?
Paul Lautman wrote:
sheldonlg wrote:
>By the way, I would use print rather than echo
I am intrigued. What is it about print that in your opinion makes it more
suitable in this particular case?
Just habit, I guess, and similarity to other languages. For a short
discussion of the differences, which are very minor, see http://www.faqts.com/knowledge_base/...l/aid/1/fid/40
On May 22, 6:55 am, sheldonlg <sheldonlgwrote :
Paul Lautman wrote:
sheldonlg wrote:
By the way, I would use print rather than echo
I am intrigued. What is it about print that in your opinion makes it more
suitable in this particular case?
Just habit, I guess, and similarity to other languages. For a short
discussion of the differences, which are very minor, seehttp://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
Well, we're using AJAX here. I guess I can create another routine to
get the data from the database and parse it when it comes back to thr
javascript routine...... ar*@unsu.com wrote:
On May 22, 6:55 am, sheldonlg <sheldonlgwrote :
>Paul Lautman wrote:
>>sheldonlg wrote: By the way, I would use print rather than echo I am intrigued. What is it about print that in your opinion makes it more suitable in this particular case?
Just habit, I guess, and similarity to other languages. For a short discussion of the differences, which are very minor, seehttp://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
Well, we're using AJAX here. I guess I can create another routine to
get the data from the database and parse it when it comes back to thr
javascript routine......
Huh? I don't understand what you are saying.
Where does "I guess I can create another routine to get the data from
the database and parse it when it comes back to thr javascript routine"
fit into anything?
The "parsing" is done on the server where the browser string is built.
All the browser does is to obey those instructions. For example there
may some innerHTML, or put up an alert, etc. All that is built (/parsed)
on the server. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Madhusudan Singh |
last post by:
Hi
After months of waiting for Redhat to come out with up to date rpms, I
decided to compile a working OpenSSL/ MySQL / PHP / httpd installation for
myself.
Installed the latest versions of mcrypt and mhash, followed by openssl and
mysql (version 4.0.13) - all from source.
Configured httpd with :
|
by: Alexander Skwar |
last post by:
Hello!
I'm having problems getting PHP 4.3.3RC4 successfully to install on my
HP-UX 11.00 server.
After a (successfull?) compile, "make install" errors out with this error
message:
#############################################################################################################
|
by: Darren Gamble |
last post by:
Good day,
I've sent a message on this to the php-general list already, but
unfortunately no one replied. Sorry for the repost. to those that read
both...
I'm having a problem working with an image that I've made with
imagecreatefromjpeg. Here's the code:
|
by: kecebong |
last post by:
I tried to compile php 4.3.3 with gd but it doesn't work, it wasnt show
in phpinfo(). My system is redhat 9 and apache 2.0.47 webserver.
|
by: Slavik |
last post by:
All libraries were installed (precompiled)
This is FreeBSD 5.1
installed zlib, installed jpeg and png libraries (in default directories)
GD 2.0.11 source is in /usr/gd-2.0.11 (compiled and installed flawlesly)
I configured PHP with the following:
../configure --with-gd=/usr/gd-2.0.11 --with-freetype-dir=/usr --enable-g
d-native-ttf --enable-gd-imgstrttf --with-jpeg-dir=/usr --enable-png-
| |
by: Garrett Albright |
last post by:
Trying to compile PHP 5 beta 4, and not having much fun...
% ./configure --with-apxs --with-mod_charset --with-zlib --with-bz2
--with-curl --with-gd --with-mhash --with-pspell --enable-sqlite-utf8
--with-tidy --disable-libxml
.......
checking for BZip2 support... yes
checking for BZip2 in default path... found in /usr
checking for BZ2_bzerror in -lbz2... no
configure: error: bz2 module requires libbz2 >= 1.0.0
|
by: LRW |
last post by:
(Not even sure if that's the right way to word the question.)
We're trying to migrate to a new server, and upgrade the PHP on the new
server in the process.
We're using a RedHat Enterprise Server 2.1, which "comes with" PHP 4.1.2,
and we're wanting to use 4.3.4.
Following the instructions I can get PHP to work fine! That's not the
problem. The problem comes in that doing a phpinfo(), the new PHP install
gets the following:
Configure...
|
by: Penn Markham |
last post by:
Hello all,
I am writing a script where I need to use the system() function to call
htpasswd. I can do this just fine on the command line...works great
(see attached file, test.php). When my webserver runs that part of the
script (see attached file, snippet.php), though, it doesn't go through.
I don't get an error message or anything...it just returns a "1"
(whereas it should return a "0") as far as I can tell. I have read the
PHP...
|
by: Ron King |
last post by:
When I installed Mandrake 10.0 I thought I had Apache, PHP, and MySQL
installed correctly. I could serve web pages, MySQL worked, and when I
tried the phpinfo() function, I got a page that looked OK. I could
create simple php pages and serve them up. Then I tried to install
pear, and things started to be not OK after all.
phpinfo() told me that the 'Configure Command' had both the following
in it:
--with-pear=/usr/share/pear
|
by: Gary Quiring |
last post by:
I need to create an XML string using PHP5. The examples I have followed seem to
be using out dated libary calls. I tried new_xmldoc() and new DomDocument.
Both get undefined errors. How do I create an XML string where it will look
something like this:
<response>
<data>
<parts>
<part>
<number>bla</number>
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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: 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: 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: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |