fails, they'll still be sitting at the login page. The
above code needs to be set before any HTML code, else the redirect won't
work.
http://us4.php.net/manual/en/function.header.php
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
probably not going to get it to work so well using PHP
which is server side instructions.
Part of getting the slideshow to work is making the browser switch to the
next image and well, PHP doesn't really make the browser do anything.
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List
thing, regarding MySQL 4. But someone else mentioned
that this only applies to the command line of MySQL only. True? False?
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
servers. So now programmers are forced to
check that magic_quotes_gpc is on each time and take appropriate action
when it's off.
I think a good programming habit it to treat it as if it were off.
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Hi,
How can I get remote IP adress of client?
I use the fillow script::
$ip=getenv('HTTP_X_FORWARDED_FOR');
if (!$ip)
{
$ip = getenv('REMOTE_ADDR');
}
But sometime it return me unknown sa IP adress.
Can someone help me ?
Thanks in advance!
$_SERVER[REMOTE_ADDR]
--Matthew Sims
.
-
michal migurski- contact info and pgp key:
sf/cahttp://mike.teczno.com/contact.html
Though not PHP, I've been using Awstats and love it.
http://awstats.sourceforge.net/
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http
and then drops it.
--John
Just like John says, webmail should use IMAP. Mail clients should use POP3.
If you want a webmail, you should be using IMAP.
I've been using SquirrelMail for over a year and it's fantastic.
--Matthew Sims
--http://killermookie.org
-Original Message-
From: Jose
* Thus wrote Chris:
Hi All.
What would cause all the tables in all the databases to be deleted all
at
once?
a magic spell?
Curt
The Keibler Elves
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
over the whole process from login to logout.
Instead of passing the session_id through the URL ($_GET) just assign it
to $_SESSION and pass that around. Then it'll stay transparent to the
user.
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net
['sid']=session_id($HTTP_GET_VARS['sid']);
Now as long as each of your pages has session_start() at the top, you can
use $_SESSION['sid'] whereever.
To the mailing list: Am I doing this correctly?
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net
Matthew Sims [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Instead of passing the session_id through the URL ($_GET) just assign
it
to $_SESSION and pass that around. Then it'll stay transparent to the
user.
Could you describe the last paragraph a bit more in detail
browsing;
} else {
redirect to front page;
}
or however you want it to be. The above isn't tested. Not sure if
session_id needs to be assigned to a variable.
Is this what you're referring to or am I just misreading what you're asking?
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing
your own server, maybe store the passwd as an MD5 hash on
the web page that sends it to a script outside your web root. If the MD5
hashes match, return the passwd back to the web page.
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
with each page. Bleh.
Okay...so...ignore all that I said. :)
So I guess $_GET is the only option...that sucks.
Sorry dude.
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
anyone comment on this?
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
: \t$hostbrUser: $userbrPassword: $password);
and god knows what else with the brackets etc.
Any ideas...?
I think your understanding of print_r is a little fuzzy.
Try just using print.
--Matthew Sims
--http://killermookie.org
--
-
Michael Mason
Arras People
,
Richard Davey
This should help.
http://www.unixcities.com/dos-attack/index1.html
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
,TRACE and CONNECT) which are
application-layered.
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
of the
browser :/
Read as: IE is stupid.
;)
--Matthew Sims
--http://killermookie.org
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am looking for a way to retrieve data from another website, parse
through it and then display it as I would like to. Basically a screen
grab from say espn.com, then I take the data that is there and form it
to fit on my site.
The catch here is that my target is an asp page that requires a
Hi,
I'm wondering if there's something similar to the C sizeof operator in
PHP? I would like to find out how much space in memory a variable is
actually using (and possibly adjust the max memory per script accordingly).
No, sizeof() http://us3.php.net/sizeof is not what I want :-(
Thanks!
Matt
Hi,
I am using MySQL database accessed via myphp admin - there is an export option which
allows me to export the structure and data to an sql file but this is a manual
procedure is there anyway to automate this via myphp admin i.e. using a cron job?
Thanks
Mmmm my provider doesn't give me access to this area !
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: Matthew Oatham [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Thursday, May 13, 2004 6:40 PM
Subject: Re: [PHP] MySQL backup
From: Matthew Oatham [EMAIL PROTECTED]
I
Hi,
I am retrieving data from a database and displaying results on a html so the user can
edit them, I am sending the html form back to the server as an array, i.e on my html
for I might have 10 name fields so in the html code all name fields are named name[]
then I can iterate through the
Why not try cURL?
Not the cURL functions included in PHP, but the actual binary installed
with most linux distributions.
Even better would be to actually use the cURL functions in PHP, but
whatever you find easier.
Matt
On Tue, 2004-04-06 at 08:41, Brian L. Ollom wrote:
lynx --source
$HTTP_REFERER
Although not all browsers send it properly (if at all). Don't rely on
it.
Matt
On Thu, 2004-04-08 at 12:22, Chris Bruce wrote:
I apologize for my ignorance, but I am trying to find a way to grab the
referring url. I can't seem to find the environment variable to do
this. Does
Hi,
I am a newbie PHP programmer, I have some code that works but I want some tips on how
I an Improve my code, i.e. should I be doing my updates / deletes on same php page as
the display page, am I using transactions correctly, am I capturing SQL errors
correctly am I handling form data as
. Jones [EMAIL PROTECTED]
To: Matthew Oatham [EMAIL PROTECTED];
[EMAIL PROTECTED]
Sent: Monday, April 05, 2004 11:56 PM
Subject: Re: [PHP] Code Review PLEASE !!!
Wells first of all, you are going to want better form input validation.
For Example:
foreach ($_POST['fleet_id'] as $key = $value
Hi,
Is there an elegant way to recover from DB errors in MySQL using PHP, i.e.
transactions and rolling back - basically I have an insert statement then an update
statement. if the insert succeeds the update is run but if the update fails I want to
undo the insert!
Any suggestions, I guess I
Hi,
I have a TIME field type in mysql database I want to do a select and add all the times
together to return a total time, can I do this using the select statement?
cheers
matt
When I make a complex query to a table with 500,000 rows via PHP, my web
browser thinks for a minute and then stops the execution of the script with
no error messages at all.
I have set the max_execution_time to 400 and called error_reporting(E_ALL)
with the same results. I'm using PHP 4.3.1
Hi,
What is the correct way, using php to join to strings, vars or other wise.
i.e. how do I join
$string1 = hello;
$string2 = world;
do i do
$string1 . $string2;
and what about ..
$string2 = $string1 . world;
Is that correct?
Hi,
Sorry to ask this question, I am fairly new to PHP and wanted to ask for some help
with the following.
I have a MySQL table which uses a auto_increment int as the primary key - when I do an
insert I want to create another id based on the primary key and insert this into the
same table
for your ideas so far - very useful! How do you get to know about all
these useful functions?
Cheers
Matt
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: Robert Cummings [EMAIL PROTECTED]
Cc: Matthew Oatham [EMAIL PROTECTED]; PHP-General
[EMAIL PROTECTED]
Sent: Tuesday, March
-%03d, $key);
return $crId;
}
- Original Message -
From: John W. Holmes [EMAIL PROTECTED]
To: Robert Cummings [EMAIL PROTECTED]
Cc: Matthew Oatham [EMAIL PROTECTED]; PHP-General
[EMAIL PROTECTED]
Sent: Tuesday, March 23, 2004 12:25 AM
Subject: Re: [PHP] Any Ideas?
Robert Cummings
-
From: Tom Rogers [EMAIL PROTECTED]
To: matthew oatham [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 2:02 AM
Subject: Re[2]: [PHP] setting request variables
Hi,
Thursday, March 4, 2004, 11:08:06 AM, you wrote:
mo but what if I wanted the variable $error to be a message
Hi,
I have a quick question about PHP session. In my website I have included the command
session_start(); at the top of every page. Firstly is this correct? Secondly when I
visit the website the first link I click on has the php session ID appended to the url
however this php session ID is not
Sorry, I understand now! Thanks for your help and your patience !
It works!
Matt
- Original Message -
From: Tom Rogers [EMAIL PROTECTED]
To: matthew oatham [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 11:27 AM
Subject: Re[4]: [PHP] setting request variables
Hi,
I have created a small website members area - this is protected using php session
variables so to access it a variable user_id must exist in the session. However I have
a directory on my webserver that holds documents that I want to make accessible only
to users who have logged in however
Hi,
I have created a small website members area - this is protected using php session
variables so to access it a variable user_id must exist in the session. However I have
a directory on my webserver that holds documents that I want to make accessible only
to users who have logged in however
Hi,
I have created a small login system for my website. However if a user logs in
incorrectly I want to display a error message currently I use the code
echo You could not be logged in! Either the username and password do not match or
you have not validated your membership! br /
Hi,
I have created a small login system for my website. However if a user logs in
incorrectly I want to display a error message currently I use the code
echo You could not be logged in! Either the username and password do not match or
you have not validated your membership! br /
Hi,
I have a page that checks to see if a session exists and if so does a server side
redirect - i tired using header(Location: membersArea.php); but I got an error about
headers already sent, guess this is because I have already output html before this php
command. So I tried include
-
From: Ben Ramsey [EMAIL PROTECTED]
Newsgroups: php.general
To: Matthew Oatham [EMAIL PROTECTED]
Sent: Thursday, March 04, 2004 12:49 AM
Subject: Re: server side redirects
guess this is because I have already output html before this php command
Exactly right. Why don't you use the header
but what if I wanted the variable $error to be a message. I want to set a
variable called $error to something like invalided password then display
this on the login page.
Cheers
Matt
- Original Message -
From: Tom Rogers [EMAIL PROTECTED]
To: matthew oatham [EMAIL PROTECTED]
Cc: [EMAIL
Wednesday, February 25, 2004, 2:19:26 AM, you wrote:
D Hello all,
D I am having a problem with getting multiple socket reads working in a
D simple socket server!
D The writes appear to be working but the reads seam to only allow one read?
D I know i am missing something. Could even be
Hi,
I have an update statement that tries to update a number of values - these values have
unique value constraint so when I do the update it will either succeed or fail. If it
fails how can I determine where the update failed. i.e. pinpoint the value that was
not unique?
At the moment I am
Hi,
You might already be fed up with my posts but I'm a complete PHP newbie and find these
groups are the best way to learn! Anyway I have the database date in the format:
-mm-dd hh:mm:ss e.g. 2004-02-24 07:57:59 but when in some situations I only want
to show the user the date in the
Hi,
I have a form on page1 that i want to submit to another php page - page2
the form has the fields
input type=hidden name=image[one] value=one
input type=hidden name=image[two] value=two
input type=hidden name=image[three] value=three
Basically I want to have these form field values as an
hi is there a limit to the filesize of a php ?
I know tomcat had limits on the file size of jsps.
My problem is I have a 13kb php file when I add some more lines of code to it the html
output becomes currupt - it could well be bad html but I cant find it so thought I
would ask this question?
Hi there, I'm running RedHat 9.0 /Apache 2.0.48/openssl-0.9.7c/php-4.3.4
Every time I recompile PHP nothing seems to change according to phpinfo().
I'm trying to add SSL and FTP functionality. The funny thing is, every time
it is recompiled the messages indicate the install worked properly.
Assuming your array is called $array1:
$paths = array();
foreach ($array1 as $data_ptr = $data)
{
if (!in_array($data['path'],$paths) $paths[] = $data;
}
sort($paths)
foreach($paths as $path_to_check)
{
foreach($array1 as $data_ptr = $data)
{
if ($data['path'] == $path_to_check)
{
/**
['mac'])
Use the perl compatible regexps instead:
!preg_match('/^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$/', $_POST['mac'])
This searches for XX: 5 followed by XX, where XX is 0-9, A-F, or a-f. I
_think_ the POSIX regexps can do some grouping like this as well, but
I'm not absolutely sure.
--
Matthew
2 ways to do it:
Simple, no control:
foreach($GLOBALS as $key = $value) unset($GLOBALS[$key]);
Or
$vars_to_clear = array(1,2,3,4,a,b,C1,D2);
foreach($vars_to_clear as $keyname) unset($GLOBALS[$keyname]);
Matt
On Tue, 2004-01-27 at 15:26, BOOT wrote:
Hello.
I can unset multiple variables
of several sites hosted on the server, and
none are the default site (i.e., in the main server webroot).
I have tried specifying the cookie domain and path explicitly, as well
as turning on trans-sid (via .htaccess) -- neither has worked.
Any ideas?
Thanks!
--
Matthew Weier O'Phinney
Webmaster
with IE if your server's clock is behind the client machine's clock --
IE is particularly sensitive to this particular situation, and expires
the cookies -- which leaves the person using IE without a session.
--
Matthew Weier O'Phinney
Webmaster and IT Specialist
National Gardening Association
802-863
Do you have long lines? If not try this:
$file = error_log.txt;
if (($fp = fopen($file,'r+') !== 0)
{
// Increment the 1024 sufficiently to read enough data, fgets
automatically stops at \n
while ($line = fgets($fp,1024))
{
if ($line != ) echo($line.br);
}
}
Alternatively, do
On Thu, 2003-11-20 at 17:12, CPT John W. Holmes wrote:
select size=1 name=D1[] multiple
Now $_POST['D1'] will be an array of all the items that were chosen.
---John Holmes...
ps: wouldn't it be easier to select multiple items if you had a size larger
than 1??
The 'size=1' in a select
Hi,
This is probably more of a javascript question but thought someone here
might have an answer.
I have a form in a pop up windoe I want this form data to be submited to the
window that opened the popup - how can I do this? I have tried setting the
target attribute on the form tag to
per annum.
If you are interested please reply to [EMAIL PROTECTED] with a Word copy
of your CV.
Kind Regards
Matthew Harvey
020 7938 1333
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
place I started. My client doesn't want to pay for me to scope all
of the variables in the application, but it doesn't appear to work without
the proper scoping. Any suggestions on further research will be
appreciated.
Matthew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe
Matthew Morvant [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I posted a couple of days ago inquiring as to why some inhierited PHP code
was not working. I determined that scope was the issue. The overwhelming
response I got back pertained to register_globals. I have read up
Hi,
I am new to PHP and am more used to JSP. My question is - if I submit a form
to a php3 page using action==? PHP_SELF ? for some processing all is
well I can see that form data. After the processing the page is redisplayed
- but the data originally sent persits (in the request) this can be
html
body
iframe name=post1 src=about:blank height=1 width=1 frameborder=no
scrolling=no/iframe
iframe name=post2 src=about:blank height=1 width=1 frameborder=no
scrolling=no/iframe
form name=form1 action=form_parser1.php target=post1
input type=text name=form1_value1
/form
form name=form2
On Thu, Aug 28, 2003 at 03:35:59PM +0200, Javier Tacon wrote:
A more easy solution is that:
Make a cron that executes every minut /tmp/rreboot.sh for user root
crontab -e
Add the line:
* * * * * /tmp/rreboot.sh
The script is:
/tmp/rreboot.sh
---
#!/bin/sh
if [ -f
apache.nobody /directory/for/rrebootfile
-Mensaje original-
De: Matthew Harrison [mailto:[EMAIL PROTECTED]
Enviado el: jueves, 28 de agosto de 2003 15:49
Para: Javier Tacon
CC: Petre Agenbag; [EMAIL PROTECTED]
Asunto: Re: [PHP] reboot pc with PHP
On Thu, Aug 28, 2003 at 03:35:59PM
VideoIsland.com is looking for genies of LAMP to who can hit the ground
running and work with a fast-moving team based in London over a 1-2 month
period and possibly longer if required.
You will have played a leading role in all aspects of the development of
Object orientated e-commerce
This may be a stupid question, but I'm trying to set up a system where I can
take a poll from visitors to my website and then set a cookie so that they
can't vote more than once (until they clear their cookies at least).
Problem is, I don't want to put it at the top of my page, because what if
In mySQL, I store dates as -MM-DD, a standard DATE type. It stores
users
date of births. I need to calculate in a PHP script, the users age from
this
DOB. I get a PHP date in the same format as the mySQL and subtract, which
returns the year rounded off. ie, it doesnt matter if your
On Thu, 2003-07-31 at 14:31, Roy W wrote:
I have this:
$query = LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE mytable FIELDS
TERMINATED BY ',' ENCLOSED BY ' . '' . ' ;
$result = MYSQL_QUERY($query);
PRINT br$query2br;
The query doesn't take ... but if I cut and paste the printed
Chris Shiflett wrote:
--- Matthew A. Blasinski [EMAIL PROTECTED] wrote:
So, I'm thinking a plausible session id could be made by hashing
their identification (to make it useful to the rightful owner
only) with a private key (to make it hard to get and guess). I
think the identification could
Philip J. Newman wrote:
My goal is to input the amount of Bytes used by a user as $inputbox and
calculate how many kbs,megs,gigs along with $cost for the price per meg.
snip
Questions?
1. Should I be dividing by 1024 or 1000? This was passed to me by word of
mouth ...
2. Any way of rounding to 2
Hi,
I'm trying to track session data and merge several related services
through a common server-side session (using Apache). One condition is
that it won't use cookies to store the user data OR the session ID.
Another is that the services we're merging use different languages,
including PHP
Chris Shiflett wrote:
--- Matthew A. Blasinski [EMAIL PROTECTED] wrote:
My question - what is the best way to know the session id between
pages? Posting it in the URL and using $_GET[PHPSESSID] is one
solution, but this seems like a hassle and is also open to attack if
someone could guess a valid
Hi Thomas.
You need to name each checkbox a different name.
alternatively, you can name them with array naming convention.
i.e.
input type=checkbox name='array1[value1]' value='Y' 1-1
input type=checkbox name='array1[value2]' value='Y' 1-2
input type=checkbox name='array2[value1]' value='Y' 2-1
hi
i need to set one directory on my server with global_variables turned on.
i'm running apache
i've read that by setting the environment variable PHPRC, I can point a
directory to a different php.ini file. however, i'm having trouble finding
out how to go about doing this. is this something i
Never mind, I solved it--behavior was caused by a script call to a UNIX
function which didn't exist on the new server.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello! I'm running PHP 4.2.3 on a Linux web-hosting server. Right now I
am trying to work with a PHP script (MLM Multi List Manager, in case it
matters) to handle mailing lists. It works terrific on one server, but on
another one it has a very strange problem that I was hoping someone would
DR MATTHEW LOUN.
BRANCH MANAGER,
UNITED BANK FOR AFRICA PLC
LAGOS ISLAND BRANCH
LAGOS NIGERIA
TELL:234-803-300-3032
EMAIL:[EMAIL PROTECTED] or [EMAIL PROTECTED]
ATTN:PRESIDENT/C.E.O
I am pleased to get across to you for a very urgentand profitable business
proposal,Though I don't know you
Look into the CURL libraries.
http://www.php.net/manual/en/ref.curl.php
They essentially allow you to emulate the behavior of a browser. Where I
work, we use them to make SSL connections to payment processing
gateways.
Matthew
-Original Message-
From: Martin Thoma [mailto:[EMAIL
I hope that I can explain this problem in a logical and clear way.
In MySQL, I have two tables for information::
foo, which contains
FooID, FooLName, FooFName
and
foocontact, which contains
FooID, FooContactID, FooEmail, FooPhone, FooAddress1, etc.
Honestly, I can't remember why I split up
Jonathan Sharp wrote:
Is it better to do:
$obj = new object();
verses:
$obj = new object();
thanks,
-js
If you are looking to the future: I don't believe the ability to return
objects by reference will be an option in Zend Engine 2.
Matt
--
PHP General Mailing List
Jeff Bluemel wrote:
I have a string that will look like the following;
data1|data2
now - I need to put data1 in a variable, and data2 in another variable.
I've found the functions strlen, and strpos, but I can't figure how to
grab this data.
thanks,
Jeff
Try
list($var1, $var2) =
the output is as expected(?):
=== array ===
hello
Can anyone tell me what's going on here? I don't think this is at all
the correct behavior.
On Sun, 2002-10-20 at 05:02, Matthew Bogosian wrote:
Howdy all,
I have stumbled onto a reference behavior I cannot explain. Here's my
problem: I'm
Howdy all,
I have stumbled onto a reference behavior I cannot explain. Here's my
problem: I'm trying to return a copy of a member variable. The function
is not declared to return a reference, but it seems as if the user can
override this. Here's a non-object example:
?php
// Create an
Can you use PHP to add appts to my microsoft outlook calendar or open up a
document in ms word?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
I am working on code that will allow me to read email that is directed
to a PHP script (via .forward files) for various purposes, as part of an
integrated Intranet project.
I have hacked a bit at it and came up with code that works for the
tests I can throw at it, but I'm not confident enough
--is there an
analogous command in PHP?
Thank you for your help!
Matthew
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All,
I have a bit of a problem using the session management functions in PHP4.
(PHP 4.1.2 in fact)
I have a order wizard system on my website that is using PHP sessions to
track values entered on the various forms across all pages of the wizard.
at the start of each page i am issuing the
ever since I put up a personal firewall, when I start MySQL I''ve been
getting alerts that MySQL is trying to access this ip address when I start
it...
what, exactly, is it, and is there any reason why MySQL would need to access
the internet if I have apache on my own machine?
thanks,
Matt
re php info:
put this into a file, put it on your server, and call up the page in a
browser:
?php
phpinfo();
?
it will show the settings for php on your server. As Jim suggested below,
you should check the register_globals setting. If register_globals is on,
you'll need to use the _Get
for which the cookie is valid.
session.cookie_domain = www.mydomain.com
As always, thanks for your help.
PHPCoder [EMAIL PROTECTED]
07/24/02 01:50 PM
To: Matthew Bielecki [EMAIL PROTECTED]
cc: php-general [EMAIL PROTECTED]
Subject:Re: [PHP] Help
OH MY GOSH...I ACTUALLY GOT A REAL PROGRAM TO RUN!
Thanks a ton x 1,000,000 Alexander
Thanks,
Matthew J. Bielecki, MCP, A+ Certified Technician
Hobart Corporation
Field Engineer - Weighing Network Systems
Phone (937) 332-7163Fax (937) 332-3222
Email [EMAIL
: David Robley [EMAIL PROTECTED]
To: GOLD, MATTHEW [EMAIL PROTECTED]; [EMAIL PROTECTED]
Sent: Thursday, July 25, 2002 5:37 AM
Subject: RE: [PHP-DB] Re: arrays, variables, and register_globals
So what you want to do is print a field from the first row extracted from
the table, then
loop through all
I have a couple of scripts that fail with the error of:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in...
I'm new to both SQL and PHP and I'm wondering if I have some setting
turned off or what.
Here's the piece of code that is failing (the second line
PROTECTED]
07/24/02 01:50 PM
To: Matthew Bielecki [EMAIL PROTECTED]
cc: php-general [EMAIL PROTECTED]
Subject:Re: [PHP] Help with msql_fetch_array()
I can almost guarantee that it's not the second line that is failing,
the problem here is that $result
PHP does not support multiple constructors. But, It does support
variable argument lists, so you can fake it with func_get_args() and
func_get_num_args():
function issue() {
if( func_get_num_args() 0 ) {
$args = func_get_args()
} else {
// do something else...
this is from the O'Reilly _Programming PHP_ (Rasmus Lerdorf Kevin Tatroe):
Because echo is not a true function, you can't use it as part of a larger
expression:
// parse error
if (echo(test)) {
echo(it worked!;
}
Such errors are easily remedied, though, by using the print() or printf()
Hi Everyone,
Here's my problem: I'd like to make the printing of some text dependent on
whether or not a variable is null. In the following example, when $row[1]
is null, what gets printed on the page is Email: . I'd like the
script to not print Email: if row[1] is null.
It looks like I
The difference between Dreamweaver and Homesite is that Homesite is easier
to
customize, and it doesn't mess with your code the way that Dreamweaver does.
If you're happy with Dreamweaver, you should stick with it. But if you want
more control over your code, you
should consider switching.
Of
601 - 700 of 1089 matches
Mail list logo