Could you include some of your code?
-Original Message-
When I try to run my scripts they works fine exept for the
variables results
that are not displayed.
This message is intended for the sole use of
Thanks everyone. I'll check it out.
much.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
make sure global variables are enabled in your php.ini
-Original Message-
From: J0s [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 11:52 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Variable Result is not displayed
Here is an example of the test script.
sample.php
?
You missed a step in copying DLLs. I don't remember which one, but it's the
dll files found in
c:\php
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 2:01 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Installation Win98/Apache
Looks like it, but you're missing the semi-colon at the end of the line.
-Original Message-
From: Daniel Negron/KBE [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 14, 2002 2:06 PM
To: [EMAIL PROTECTED]
Subject: [PHP] ucwords() usage QUICKIE
Hi All,
I am trying to figure
Does anyone have a good function for parsing a search string into SQL? I
know it will depend on the name of the field and table I'm searching
through. Anything close will be helpful. An example search string would
be:
beer AND pizza NOT anchovies
and the resulting search string would be
Try:
$n = $soils[$i];
$soils[$i] = sprintf(%d, $n);
and if that doesn't work, print out $soils[$i] to see what it is.
-Original Message-
$soils[$i] = sprintf(%d, $soils[$i]);
But doesn't seem to work, my program returned an error.
P.S. : I'm using 4.0.6 otherwise wouldn't have
Do you have any benchmarks?
-Original Message-
fans). Put your site on a *nix box with apache its a heck of
a lot faster
This message is intended for the sole use of the individual and entity to
whom it
Hi Steve,
What you're asking isn't possible. Javascript runs client-side. PHP runs
server-side. You can't directly mix the two.
For example, you can use Javascript to respond when people choose menu
options, but you can't have Javascript communicate with PHP and pull
additional information
select ID, Title from Books where ID='500';
That will give you the current set of data to display. Getting the previous
and next record will depend on your sort order. Assuming ID as the sort
order, store the value of ID and query for the next record:
select ID from Books where ID '$ID'
Why not just put a Subject field? Most people use that to put a brief
description of the article. Make the form field small and they'll keep
their input small. Plus, you can set the maxlength value of the input field
to limit things.
http://www.htmlreference.com/htmlref95.html
-Original
Why display all 5000 records and 50 fields at once? Typically, you display
a sub-set of the row data and page through it to improve performance. Also,
you typically display a sub-set of fields and then view individual records
for full detail.
-Original Message-
From: Pong-TC
Have you tried this on a separate web page to make sure it's not something
server specific?
Here's a script that worked from my computer with register_globals set to on
and off (restarted server between tests for confirmation).
If this works from your computer, could you resend the code on your
Hey, it worked on another server!
I've been working on my local machine's server (localhost),
but when I run it from a different web server, it worked fine.
Any ideas about which setting(s) may be causing the problem?
Nope, but I'm including a copy of my local php.ini for ya to compare
That all depends on what kind of server you're referring to.
-Original Message-
Hi,
I tried to shut down my server with exex(/sbin/poweroff) but nothing
happened!
Can someone tell me how I could make shut down the server ?
Is it possible ?
Thanks,
Rosen
This has serious security implications. Research how to create a script on
your system. Set it's sticky bit to run as a standard user that has
authorization to run the shutdown command using SUDO. Make sure the script
works from within UNIX and then call the script from PHP using exec.
I am
This is a MySQL question and best directed to the MySQL mailing lists
available at:
http://www.mysql.com/documentation/lists.html
-Original Message-
From: Chris Kay [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 13, 2002 4:33 PM
To: PHP General List
Subject: [PHP] MySQL Query
ps... from a PHP perspective, you may find troubleshooting things like this
easier by using formatting like this:
$sql =
select
detail.*,
type.type_name,
status.status_name,
staff.staff_name,
--xml
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 6:57 AM
To: [EMAIL PROTECTED]
Subject: [PHP] XML with PHP?
Hey!
Which PHP option should I use for compiling with the XML support. I'm
using the standard XML support on the web
Depends on the average size of data that you're working with. You have to
count how many bytes each array take up. I think the sizeof function will
do this for you.
-Ed
-Original Message-
And how should I store a serialized variable in my database? As String or as
Blob?
It is working.
The last two tests you were running weren't actually the same, which was
confusing your testing results. I've altered the code a little for ease of
testing. It's included below.
-Original Message-
You will see that $unserialized['foo'] still exists! Can anyone explain
Kind of an off-shoot question, but has anyone created functions to interface
PHP and one of the popular mailing list management software packages like
Majordomo or Mailman?
-Original Message-
From: Miguel Cruz [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 10:29 AM
To: andy
Ilia and I were discussing FUDForum and general forum features. That made
me wonder... Are there forums that integrate pop3 web mail support?
-Ed
This message is intended for the sole use of the individual and
No, because PHP is server-side.
-Original Message-
From: Kris Vose [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 11:28 AM
To: [EMAIL PROTECTED]
Subject: [PHP] form post
Is there a way to post input types that are hidden with out using a html
form in php? I know you can do
select MAX(fieldname) from table;
You can also insert data in tables with auto_increment fields to account for
yourneed to insert old member ids.
insert into tablename (ID, Name) values ('$OldID', '$Name');
-Original Message-
From: César Aracena [mailto:[EMAIL PROTECTED]]
Sent:
Sure, never mind about Rasmus descrimination towards Windows users.
Rasmus always has been bitter with users asking for support, especially
if they want to run PHP under Windows.
Although it seems counter-productive, I can certainly respect Rasmus having
his own opinion. He has provided
Why not use while to loop through the shopping cart and add items to the
message variable?
$message =
Here is your order:
;
while ($Row = mysql_fetch_array($Results))
$message .= item description information;
$message .=
Thanks for your order...
;
-Original Message-
I'm not sure I completely understand what you're asking, but taking a
guess...
... assuming you're just wanting to work with the data...
... and assuming you're creating a results set from your db query, start
with this code:
$Results = mysql_query($sql, $DBLink);
Within your function, you
You're looking for the mktime function.
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 6:42 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Converting week number to unix timestamp
How can I convert the week number(i.e. 1 - 52) to a UNIX
http://www.php.net/manual/en/function.mktime.php
-Original Message-
From: suman [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12, 2002 3:20 PM
To: [EMAIL PROTECTED]
Subject: [PHP] how can i insert date
hi
i have a date,month and an year what is the function in php that i can i use
$sql = select fieldname from tablename;
$Results = mysql_query($sql, $DBLink);
$Row = mysql_fetch_array($Results);
$fieldname = $Row[fieldname];
$Date = explode(-, $fieldname);
$Year = $Date[2];
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, June 12,
Create seperate documents: one to display the form and another to process
the form.
add.php // displays new form
add_handler.php // process form input
On the form processing, check for the presence of HTTP_POST_VARS before
proceeding.
if (isset($HTTP_POST_VARS))
{
Change introduction to a variable with $ in front of it or put it in quotes
introduction.
What Can I do to stop the foreach function from working if
$menu is not
set??
?
if ($menu==(introduction)) {$sub = array(
'overview.php' = 'Overview',
'moreinfo.php' = 'More Info'
);
}
Could you post an example of the code you're working with?
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 10:32 AM
To: [EMAIL PROTECTED]
Subject: [PHP] 405 Method Not Allowed with Post Request on PWS
I'm running PHP 4.2.1 and
Can you put things in standard quotes? 'Aimburu
-Original Message-
From: andy [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 12:44 AM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: [PHP] addslashes for db search?
Hi there,
I have some db records starting with a
free to ask questions, but try to research this and see how much you can
figure out on your own first =)
-Ed
-Original Message-
From: Daniel Broome [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 4:08 PM
To: Lazor, Ed
Subject: Re: [PHP] Arrays
I dont know how to explane
I don't know the answer, but... It sounds almost like a server configuration
issue. Almost as if the web server (Apache?) doesn't have the php extension
configured correctly.
-Original Message-
From: George Pitcher [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 3:48 AM
To:
Will getcwd() work for you?
Also, try phpinfo() to find out which variables are set.
-Original Message-
From: Shane Wright [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 11, 2002 10:45 AM
To: [EMAIL PROTECTED]
Subject: [PHP] get pwd on windows
-BEGIN PGP SIGNED MESSAGE-
Hash:
I think this will work. You'll have to test it to confirm:
$A[0][0] = x;
$A[0][1] = x;
$A[0][2] = x;
$A[0][3] = x;
$A[0][4] = x;
$A[1][0] = 0;
$A[1][1] = 0;
$A[1][2] = 0;
$A[1][3] = 0;
$A[1][4] = 0;
$B = $C = array();
$B = $A[0];
$C = $A[1];
$A[0] = $C;
$A[1] = $B;
-Original
Isn't it just an issue of whether you call http: or https: ?
-Original Message-
From: Andre Dubuc [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 11:27 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Switching from HTTPS to HTTP using PHP?
After completing most of the coding for my
I'm pretty sure it's just an issue of using HTTPS for encrypted pages and
HTTP for unencrypted. For example:
http://www.example.com
is unencrypted and pulls from port 80 on the web server. Whereas,
https://www.example.com
would be encrypted and come from port 443 on the web
Give us a copy of the code so we can tell what you're talking about.
-Original Message-
From: Phil Schwarzmann [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 12:10 PM
To: [EMAIL PROTECTED]
Subject: [PHP] multi-line textfields don't post
Whenever I use a mult-line textfield, the
You'll need to have a cgi version of PHP to use in cronjobs and you'll need
to use http://www.php.net/manual/en/function.preg-grep.php
Good luck =)
-Original Message-
From: Jonathan Duncan [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 10, 2002 12:48 PM
To: [EMAIL PROTECTED]
Subject:
Good point.
-Original Message-
LE You'll need to have a cgi version of PHP to use in cronjobs
Not entirely true; you can run a script off your server as well, using
lynx -dump http://server/path/to/file as the line in crontab
- Julie
I'm pretty sure it was the lack of a space in the header field between
Location: and the actual url.
-Original Message-
The only thing I can think of is that you have a syntax error in the header.
-Kevin
LOL Yea, it's always much easier if we have actual code to work from rather
than taking guesses in the dark.
-Original Message-
Why do I get the feeling I'm playing that mind bender game where you have
to guess the right combination within so many turns? LOL
What you're asking is considered a UNION. I'm not sure which database
you're using, so I can't tell if it supports UNIONs or not. If you're using
MySQL, UNIONs are supported in version 4.0-alpha.
Another approach is storing the results of both queries in single array and
then pulling it from
Exploding at the = is a good idea. I'd just fread the file into a
variable, explode it, and then egrep up to the first delimeter. I'm not
sure if this is the best approach... but it's the most likely approach I'd
take if I were working on this. =)
---
I am looking for an
CSS in this sense is client side. As long as the PHP output is valid style
codes, you should be ok.
-Original Message-
On Mon, 10 Jun 2002, Andrew Brampton wrote:
Yes you can place one in a style sheet you just need to tell apache (or
whatever) that .css should be parsed by PHP, this
Which documentation should we check to get information on the undocumented
features? ;)
ps... I'm joking.
-Original Message-
while not documented, PHP now has the mail-parse functions (see
documentation for function list)
Get the number of items in the array using the count function and then use a
for statement to loop through them from start to finish. Here's an example:
$Total = count($link);
for ($i = 0;$i $Total;$i++)
print lia href='.$link[$i].'$name/a/li;
Of course, the link names will all be
Does anyone know how to create a web page with more than 2 selection fields
that Interact?
In my particular case, I'm trying to create a series of pull-down menus.
The first selection is the choice of hardware class (workstation, server,
laptop, pda, etc.). The second selection is manufacturer.
:48 PM
To: Lazor, Ed; PHP General
Subject: Re: [PHP] dynamic pull-down menus?
Usually people do this with javascript, but you could use
javascript/php/mysql mysql for the data, php to create the dynamic drop down
menus and javascript to refresh the page once someone has picked an option.
Rick
We
I got a mysql database, where two of the fields of a table
record times as
CHAR(8) in the format hh:mm:ss
I want to take this two times and get the difference between
them in seconds, for example 12:01:30 - 12:00:00 = 90 I
looked up at the doc in the php.net website and couldn't
Cool. Thanks Dave. I'm exploring this stuff in another window. I'll check
out irt.org.
-Original Message-
From: David Freeman [mailto:[EMAIL PROTECTED]]
Sent: Friday, June 07, 2002 4:45 PM
To: 'Lazor, Ed'; 'Richard Baskett'; 'PHP General'
Subject: RE: [PHP] dynamic pull-down menus
I have a file with this:
ullia href=http:\\www.someaddress.comSomeSite/a This is a
description of the site./ul
I'm trying to parse out the address, site name, and description into
separate variables. How can I do this?
Thanks,
-Ed
Make sure enable track vars is enabled.
Try specifying
global $arg
before you access it.
Try using phpinfo(); in your script. That will display all available
variables.
-Original Message-
From: efa [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, April 30, 2002 1:04 PM
To: [EMAIL
Hi =)
I saw PHP has built-in support for Cybercash, but that Verisign has
purchased them. It looks like I'll have to go with Payflow Pro, but I'm
wondering if PHP has built-in support, available modules, or what the best
approach is. Any recommendations?
Thanks,
-Ed
If I understand what I think you're asking, you're trying to access the
results in Javascript of something the PHP script processed... use your php
script to spit out some javascript. For example:
print script language='javascript'\n;
print $Result = .$Results.;\n;
print /script;
I'm starting to have a horrible time of pulling web pages from the server.
I checked and found the following entries in the MySQL database server log.
The error doesn't occur all the time, but it occurs a lot and only when
communicating to the server through PHP. Any idea of what's going on?
I'm trying to understand how this banner exchange works and whether it can
be done in PHP. Here's the HTML you put on your web page:
a
href=http://rpgx.rpgconsortium.com/xchange/engage.cgi?advert=NonSSIpage=XX
img
src=http://rpgx.rpgconsortium.com/xchange/engage.cgi?id=atfantasypage=01;
Even with a javascript function opening a new window and closing the old?
-Original Message-
From: Matthew Walker [mailto:[EMAIL PROTECTED]]
Sent: Friday, February 01, 2002 3:42 PM
To: Aras Kucinskas; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP and Apache authorization: how to logout. Help!
101 - 162 of 162 matches
Mail list logo