Are you referring to the userid on the machine where your web application
runs (your server) or the userid of the user who connects to your website
with his browser? I suspect you mean the latter and would be very
interested in how this could be done as well.
Warren Vail
Tools, Metrics Quality
Great photo :-}
Any reviews on the book yet?
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, March 26, 2002 3:29 PM
To: Scott St. John
Cc: Ralph
One of the things I like about PHP, is if you think of something that you
need like this, someone else has already thought about it and provided a
function to do it. Try;
http://www.php.net/manual/en/function.pathinfo.php
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager
Try;
$filename = basename($PHP_SELF);
assuming you don't need the full path
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Patrick Hartnett [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 28, 2002 4:53 PM
To solve this problem, I store some variables in a session, and at the
beginning of each page that needs to be secure in my site, I check to see if
the session variable is set (usually $userid), if not I redirect the user
back to the logon page. At least two things will cause the variable to be
Does this retrieve the userid of the machine where the web server is
running, or does it retrieve the userid of the machine where the browser is
running?
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: J
If you are running your server on windows, you may also have the option of
using COM to access Excel to open the file and read the information
contained in each cell, See
http://www.php.net/manual/en/ref.com.php
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
this is an option that only sort of works (converting to date/time);
$x = strtotime(2002-04-03) - strtotime(2002-04-02);
$x will contain 86400 which is the number of seconds in a normal day.
Since the days that some people use switch from daylight savings time to
standard time (and visa versa)
Yahoo keeps moving things around. I had the same result with a news feed.
If you research the page at
http://finance.yahoo.com/?u
you should be able to figure out how they get quotes.
good luck,
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont
Have you tried to read that page, it could use some rewriting.
Anyone on information overload will definitely have problems with it.
I also notice that some of his messages don't seem to have the trailer.
What happened there?
Warren Vail
Tools, Metrics Quality Processes
215 Fremont 02-658
not only that, but you seem to be missing any SET field = value to cause
updates to occur. I suspect the reason that the ORDER BY is rejected is be
cause the database wants to use an index determined from your where clause
to optimize the update process. Keep in mind that no rows are returned
Oops, looks like I missed your Set after the ORDER BY. I've never seen it
there, usually I see it immediately after the update. Seem to me some
things in SQL are positional, but could be wrong here.
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont
If you could retrieve the max(posted) prior to doing the update you could;
SELECT max(posted) from header
WHERE parent = '$this-postid'
and substitute the value in the following query;
Update header SET parent='$this-parent'
WHERE parent = '$this-postid'
AND posted = $retrieved_posted
A
I like this form better but it's not clear to me if this would only update
the row for parent='$this-parent' if it were the last row posted to the
table. Depends on whether the max function in the where clause is bound to
the max in the table or the max in the sequence set (I tend to think it
You might check out
http://www.hotscripts.com/PHP/Scripts_and_Programs/E-Commerce/
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Daniel Guerrier [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 15, 2002
I use MyPhpNuke (MPN) http://www.myphpnuke.com/ which appears to have lots
of nice extensions to the phpnuke product including a forums, picture
gallery, contact form, user mailing system, and many others. These things
are so tightly integrated into the product, that it's tough to tell which
Try http://www.phpclasses.org;
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Mathieu Dumoulin [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 10:36 AM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP OOP
I have had some success with something similar to what you want to do, using
frames.
The bottom footer always remains at the bottom of the browser page with the
upper body becoming scrollable when it fills up and no longer fits. Perhaps
you can use some variation of this.
HTML
HEAD
TITLEMy
Curious, does anyone know if the $_SESSION[privs] technique bypasses
important session management features implemented in
session_register(variable) ??
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Craig
I haven't tried this, but why don't you just use fopen with a URL,
especially if you don't what to have to deal with the http header.
I would think that if you do the fsockopen to port 80, you will need to use
the handshake protocol required by that server which involves the get/put
http
Especially if they come through a gateway, or use internet connection
sharing, you can't tell them apart using IP Addresses.
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Mark Charette [mailto:[EMAIL
Based on the parts of this thread that I have read, I didn't see anything
about the failing platform. What is the OS, Webserver, etc.? Does it have
to function thru a gateway or proxy server to get to URL you are trying to
open, perhaps security is tighter on this machine? Are tcp/ip
PHP and Web Servers probably make a bad choice for what is essentially a
real time application. PHP and web servers expect to serve up a page of
essentially HTML(and Javascript, or Java Applets), then close the connection
to a browser so that it can handle the requests of others, and not deal
Does this work on Windows, or is it restricted to Linux/unix?
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Markus Fischer [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 16, 2002 11:58 AM
To: DoL
Cc:
I see some real genious in this solution. This would be a great function
addition to PHP, anybody?
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Rasmus Lerdorf [mailto:[EMAIL PROTECTED]]
Sent: Wednesday,
]
Voice: 201-462-2149
Fax: 201-288-1515
-Original Message-
From: Vail, Warren [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 22, 2002 3:46 PM
To: 'Rasmus Lerdorf'; 1LT John W. Holmes
Cc: Jason Soza; PHP-General
Subject: RE: [PHP] voting using text files
I see some real genious
What kind of documents?
If you are referring to Word or Excel documents, in most cases those
applications determine the paging dynamically (usually by looking at the
current assigned or default printer, fonts available, any font substitutions
where not available, etc. Only permanent page ejects
http://www.php.net/manual/en/function.filemtime.php
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Rui Huang [mailto:[EMAIL PROTECTED]]
Sent: Thursday, May 23, 2002 7:17 PM
To: 'php-general'
Subject: [PHP]
Outgoing email requires access to a SMTP client or relay. To prevent these
relays from being used for SPAM, most shops will restrict which IP's can use
the relay. Suggest you contact the administrators of your exchange server,
and make sure the IP is on the list of eligible IP's for using the
What does your apache server log say?
Warren Vail
Tools, Metrics Quality Processes
(415) 667-7814
Pager (877) 774-9891
215 Fremont 02-658
-Original Message-
From: Anthony Ritter [mailto:[EMAIL PROTECTED]]
Sent: Monday, August 26, 2002 6:51 PM
To: [EMAIL PROTECTED]
Subject: [PHP] PHP:
: [PHP] PHP: User Authentication Script
Thanks for the reply Warren.
It says...
[Mon Aug 26 20:46:13 2002] [error] [client 127.0.0.1] malformed header from
script. Bad header=HTTP/1.0 401 Unauthorized: c:/php4/php.exe
...
- Original Message -
From: Vail, Warren
Sounds like you've identified your problem. I have never installed a module
but you can check out http://www.apache.org/ for some help installing
modules on the Apache server. I believe it involves compiling the server,
for Windows platforms I believe you need Visual C++ 6.0.
If that is to
It appears that I need to use exec() to execute the ssh command to, in turn, execute a
command on a distant machine. Are there better ways to do this?
Any tricks to retrieving the output of the remote command? Do I need to use scp for
this?
My server using Linux, and remote machines may be
There may be other methods, but one that seems to be available from your form will
require some JavaScript code. Clicking the button located below the applet (onclick
event), performs an assignment to the textarea.value (located below the button) the
result returned from the applet.gettext()
'm a pessimist), but it is what I would try before
moving on.
Warren
-Original Message-From: Todd Cary
[mailto:[EMAIL PROTECTED]Sent: Thursday, September 11, 2003
4:39 PMTo: Vail, Warren;
[EMAIL PROTECTED]Subject: Re: [PHP] Integrating an Applet
with PHPWarren -That works...ht
Question: will the substitution for the variable $dins occur if surrounded by single
quotes?
I could be mixing languages here, but I seem to recall a rule in one language about
substituting variable contents only occurring between double quotes.
Warren Vail
-Original Message-
From:
[mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 9:10 AM
To: Todd Cary
Cc: Vail, Warren; PHP List
Subject: Re: [PHP] Integrating an Applet with PHP
why does it work in IE and not in Netscape 7.1?
I'm pretty sure ActiveX controls don't run on anything besides MS
Windows Lockinware (TM
-
From: Dan Anderson [mailto:[EMAIL PROTECTED]
Sent: Friday, September 12, 2003 11:15 AM
To: Todd Cary
Cc: Vail, Warren; PHP List
Subject: Re: [PHP] Integrating an Applet with PHP
Microsoft (being a monopoly) decided it did not want to follow Sun's
java standard and effectively froze their version
You didn't say how the images were placed in the db but you did indicate they were
jpeg format.
I'd try;
fetching the db column in to a string variable;
then;
$im = imagecreatefromstring($imagestring);
header (Content-type: image/jpeg);
imagejpeg($im);
imagedestroy($im);
good luck,
Warren
I would assume you are referring to PHP functions since that is the nature of this
list and since PHP only really executes on a web server, and since the button click
occurs on the browser machine, in it's strictest sense the answer to your first
question Is their an easy way to call a function
I don't know of any rule that says you cannot have two submit button in the same form.
Of course, if you need to know which was clicked, you will either need to name them
differently or detect their values in your form processing routine. If the button is
clicked that should take you to
I wanted to create web based slideshow and audio media presentations and was
disappointed by two PHP function sets. I would love to hear of any others that might
be available.
Tried MING, and discovered that there were at least 3 different versions (all numbered
version 0.2a) that were
Not sure if this is what you are looking for, but have you tried;
a href = this.php?L=1stlinkFirst Link/a
a href= this.php?L=2ndlinkSecond Link/a
and then in this.php
$link = $_GET[L];
Warren Vail
-Original Message-
From: Dan J. Rychlik [mailto:[EMAIL PROTECTED]
Sent: Friday,
Encountered the following problem with the Microsoft SQL Server interface.
I am not sure where the problem exists, but I am looking for a workaround.
I inserted a row into a table that contained a text column, and inserted
over 5kb string into the text field. On retrieving the row the server
: Thursday, October 10, 2002 2:01 PM
To: Vail, Warren
Cc: PHP-General
Subject: Re: [PHP] MS SQL server TEXT column
Set TEXTSIZE usually does it for me:
?
mssql_connect ($conn, $user, $pwd);
mssql_select_db ($db);
mssql_query ('Set TEXTSIZE 2147483647');
mssql_query ('Select text_column from table
Fraser,
Kevin is right on, but it wasn't clear to me that you wanted the users to log onto
each site. Seems you may expect them to go to the site in another browser, or perhaps
the same, without having to signon again. Perhaps this can be done if you do a form
post to the new domain from the
My own experience has shown that separation of a presentation layer from an
application layer, doesn't occur where we think it should. HTML as a language has no
capability to be dynamic, and if we are going to ask that the page be dynamic, we are
going to need to make sure we don't attempt to
No argument from me.
Warren
-Original Message-
From: Robert Cummings [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 2:21 PM
To: Vail, Warren
Cc: andu; PHP-General
Subject: RE: [PHP] Cleaning up my messy code
On Mon, 2003-09-29 at 17:12, Vail, Warren wrote:
IMHO
Don't know if this helps, but one thing I continue to do is download and install and
tinker with is other peoples code. Lot's of different styles, and solutions, some
that stand out more to me than others, so I steal the good ones until they fail me,
then replace them with others. One thing
Sounds like your server is set to GMT, that is, if you are located in PDT timezone.
Warren Vail
-Original Message-
From: PHP Webmaster [mailto:[EMAIL PROTECTED]
Sent: Monday, September 29, 2003 4:23 PM
To: [EMAIL PROTECTED]
Subject: [PHP] date() is hours behind
Hi all,
I currently
Free,
I am assuming you are using PHP sessions.
If you are storing sessions using the your own save handler routines (this is quite
common when saving session in the MySQL database), you have the ability to establish
your own session timeout and Garbage Cleanup routines. This means you can
http://www.php.net/manual/en/function.set-time-limit.php
Warren Vail
-Original Message-
From: David Coleman [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 02, 2003 11:47 AM
To: [EMAIL PROTECTED]
Subject: [PHP] timeout question
I have a PHP page that for some reason is taking an
Sam,
There is a way to keep a session active beyond the death of the browser, but the odds
are that this will not do exactly what you want either, since killing the session on
browser close is the customary setting.
In my case I expected closing the browser to kill the session (or more
are you using session save handler routines?
If not make sure you have a /tmp directory on your server, in fact you can
check phpinfo() to find out what the session save directory is (provided you
are not using save handler routines).
good luck
Warren Vail
-Original Message-
From: Curt
)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 1:31 PM
To: Vail, Warren; Curt Zirzow; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP not remembering sessions
This is what is defined in the php.ini file for save handler routines.. I am
newbie, I left it with default values
by the browser.
hope this gets you back and running.
Warren
-Original Message-
From: Golawala, Moiz M (IndSys, GE Interlogix)
[mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 1:49 PM
To: Vail, Warren; Curt Zirzow; [EMAIL PROTECTED]
Subject: RE: [PHP] PHP not remembering sessions
On the insert query remove the $result = since the insert will return a
null and wipe out the result set produced by the first query.
Warren Vail
-Original Message-
From: Mike Alderson [mailto:[EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 3:52 PM
To: [EMAIL PROTECTED]
Subject:
Rique,
With almost any SQL database you can select max(column) + 1 (or some
such) to get the next available number, but if you plan to have more than
one user on the database at the same time, what will you use to prevent them
both from getting the same number and attempting to save over each
I believe network solutions and all other sources of this kind of
information have been tightening access to more than the IP address,
because, it seems, some unscrupulous individuals have been using the
information to spam domain owners. Since it appears that you are not a
domain registrar, or
Not sure how others would tackle this, but I would use something like
$readabledate = date(dS F Y @ H:i:s,
strtotime(substr($timestamp,0,4).-
.substr($timestamp,4,2).-
.substr($timestamp,6,2).
Lot's of options.
Will this access be across the internet, or behind a firewall?
Are you concerned about securing your information from prying eyes?
You seem to be focusing on a script that runs on the remote machine, does
this machine have a web server as well, or will you be executing
Vail
-Original Message-
From: Webmaster [mailto:[EMAIL PROTECTED]
Sent: Monday, November 17, 2003 5:31 PM
To: Vail, Warren; 'Jeff McKeon'
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Communicating with remote server
Yes, both my server and the remote server have webservers with PHP
installed. I
From my experience, Jay's explanations are correct, but let me try another
tack.
It is my understanding that when you press the back button on a browser, the
browser tries to present the page the same way it presented it the first
time it was presented, from information it saved in it's history
onClick=this.form.submit(); will trigger a response from your form
processing routine, as specified in the form action=myprogram.php.
Warren Vail
-Original Message-
From: Dan McCullough [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003 2:42 PM
To: Php-General
Subject: [PHP]
I don't believe there is one command that does all this, so you've already
ruled out one good option, but you can use PHPMyAdmin. Do you have
PHPMyAdmin installed on either or both sites?
Warren
-Original Message-
From: Lists [mailto:[EMAIL PROTECTED]
Sent: Tuesday, November 18, 2003
I also thought it was a technical or resource question. When not running as
a cgi, don't the extensions gain persistence, loading only the first time
requested or first time PHP is used, instead of loading with each request?
That kind of question.
Warren Vail
-Original Message-
From:
Could the problem be the associations stored in the windows system registry?
I've had problems trying to download files whose name ends in a suffix that
is registered as being associated with a given program (i.e. .txt with
notepad, .doc with word). I believe that IE tries to open the file in
I notice you appear to be using a shortcut form of a url that points to the
same relative page;
?sender=171filename=.jpg
(no actual file name) perhaps IE or your server are a little tangled up with
each other and the fact that this page (the missing part of url) was last
loaded with a
Not sure I would get stuck on two actions (which implies two forms on a
page, perfectly legal, but you need to use JavaScript and hidden fields if
the two forms need to submit the same data elements).
You might find an easier approach would be to place two submit buttons on
the same form (with
If the manual at php.net is too busy you can try;
http://www.zend.com/manual/function.filesize.php
good luck,
Warren Vail
-Original Message-
From: William Bailey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 10:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting the
actually what you probably need is
http://www.zend.com/manual/function.getimagesize.php
Warren Vail
-Original Message-
From: William Bailey [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 10:01 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Getting the required GD Memmory Usage.
or try;
$reversed_name = implode(, , array_reverse(explode( , $originalname)));
course, with more than two names, you can guess the results.
Warren Vail
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 26, 2003 12:21 PM
To: [EMAIL PROTECTED];
Not sure why you've ruled out PHPMyAdmin, but there are quite a few tools
out there;
try searching
http://www.hotscripts.com/PHP/Scripts_and_Programs/index.html
http://sourceforge.net/search/
just to name a couple.
Warren Vail
-Original Message-
From: Jeff Pauls [mailto:[EMAIL
If your website uses PHP sessions, and you store those sessions in a
database table you could;
$query = select count(*) from session_table where
.session_datetime \
.date(Y-m-d H:i:s, strtotime(date(Y-m-d H:i:s). -1 hour))
.\ ;
...the reset of a mysql query to get
http://spamassassin.org/index.html
you might also try filtering on the body looking for a common phrase. Spam
assassin looks for phrases like you opted and instructions on how to stop
receiving these emails, a single source will often use the same opt out
phrase.
hang in there, you can lick
Did you get the following;
---snip
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Friday, December 05, 2003 2:32 PM
To: Vail, Warren
Subject: Mail rejected
I'm sorry but your email with subject SPAMWARNING:RE: [PHP] Re: Spamming
bastardly
Well, it is not possible directly, but you can try some of the following;
$cmd = rsh -l user host command; // remote shell
$cmd = rpc -l user host command; // remote procedure call
$cmd = rexec -l user host command; // remote exec
$cmd = ssh host command; // secure shell
Outlook is a Personal Email Client/Calendar/Contact Application.
MySQL is a SQL Database Server Application.
PHP is usually a Web Based Scripting Language Processor.
What do you want to synchronize? Email? Calendar? Contacts? Something
else?
If you are running your PHP on a Windows
Have you considered Sessions
http://www.php.net/manual/en/ref.session.php
Warren Vail
-Original Message-
From: Hunter, Jess [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 17, 2003 11:04 AM
To: PHP - General List
Subject: [PHP] Page Redirects - How can it be done
I have created a
If the database is really large, some databases will attempt to use an index
if you use between as in
select * from table where lastname between A and F
or and compares.
not sure about MySQL, and notice I had to use the letter F to get all
names beginning with E
I seem to recall Sybase
How about the following;
SELECT DISTINCT left( name, 1 ) AS idx, count( * )
FROM users
GROUP BY idx
produces a count of the names found for each letter, then you can make
decisions about your range of letters, like a max of 250 between letters, or
some such number.
Warren Vail
-Original
Try;
if($s == 'this') return false;
A
*- single = is an assignment.
Warren Vail
-Original Message-
From: Chris W [mailto:[EMAIL PROTECTED]
Sent: Monday, December 29, 2003 9:07 AM
To: [EMAIL PROTECTED]
Subject: [PHP] returning early from a function.
I
have you placed echo's on both sides of the session_start to make sure that
is where your error message is coming from;
echo point 1br;
session_start();
echo point 2br;
I am assuming that your send entry is in via the form action=url
Is there any thing different about that URL like appended get
,
Warren Vail
-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 31, 2003 10:25 AM
To: Vail, Warren; [EMAIL PROTECTED]
Subject: RE: [PHP] Cannot send session cache limiter
perhaps you could show some code snippets.
Thanks Warren, at least I
Not sure I fully understand your problem, but if you are trying to simply
move information from one area of a form to another, without doing a form
post, then you might consider a javascript solution. This will happen
almost instantaneously, since it all occurs on the browser machine.
In order
is an INPUT TYPE=img actually an input? I've never actually seen it used
that way. If not that may explain difficulty finding it in $_POST array.
Warren Vail
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent: Monday, January 05, 2004 4:49 PM
To: Robin Kopetzky
Cc:
OK, found my answer, behaves like submit button, and I know from experience
that if I don't code a name parameter for the submit button, and in this
case probably a value, it doesn't get returned to the $_POST array.
Warren Vail
-Original Message-
From: Vail, Warren
Sent: Monday
Scott,
I suspect you will gets lot's of input on this one. There is a fairly
glaring hack that allows users to override your session variables (if you
rely on the feature of PHP that automatically adds session variables, as
well as get and post variables, to the global pool [register_globals, I
Hate to disillusion you Scott, but Java cannot plug this hole. Let's
conduct a test, with your account, not mine, eh? ;-)
Warren Vail
-Original Message-
From: Scott Fletcher [mailto:[EMAIL PROTECTED]
Sent: Tuesday, January 06, 2004 11:20 AM
To: [EMAIL PROTECTED]
Subject: Re: [PHP]
for accessing the word document, assuming your server is a windows platform
consider the following;
http://www.php.net/manual/en/ref.com.php
good luck,
Warren Vail
-Original Message-
From: news [mailto:[EMAIL PROTECTED] Behalf Of Gary C. New
Sent: Tuesday, January 06, 2004 12:12 PM
To:
Haven't heard of anyone doing this, and it's got to be slow but you could
consider creating a word document, invoking word, and saving/retrieving the
results. I would start with
http://www.php.net/manual/en/ref.com.php
this should show you how to invoke word from your php script since you are
If you are looking for something to plagiarize, I would start with;
http://www.hotscripts.com/JavaScript/Scripts_and_Programs/index.html
and there is always google to find other sources.
good luck,
Warren Vail
-Original Message-
From: John W. Holmes [mailto:[EMAIL PROTECTED]
Sent:
I've found the following works best for me, takes into consideration
leapyears and daylight savings time, etc.
$datetime = date(Y-m-d H:i:s,strtotime($inputdatetime. + 1 month));
http://www.php.net/manual/en/ref.datetime.php
Warren Vail
-Original Message-
From: merlin [mailto:[EMAIL
$result = explode(\n, $orignalvalue);
Beware, there are several caveats with line feeds. Depending on where the
data originated, it could be \r\n or \r.
Warren Vail
-Original Message-
From: Diana Castillo [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 04, 2004 8:50 AM
To: [EMAIL
the PHPNuke (Portal software used all over the world, http://phpnuke.org/)
code uses selectable including of php files containing define statements;
in a directory call language (usually) there are files named lang-.php
where is the name of the language;
the current language selection
The problem is you are using a hard join which will only return rows where
there are matching entries in both tables. What you probably want is called
a left join, however you have a further complication.
You have to have an image row to have a image_data.Default_Img = 'Yes'. So
this query is
Suggestion,
Stick the following line of code in a spot in the php code that gets control
from the form submit and see what is actually being passed from the form;
foreach($_POST as $k = $v) echo POST[.$k.] = [.$v.]br;
see if this shows you what you are looking for.
NOTE: if you are not using
Have you tried dynamically loading the GD functions;
http://us2.php.net/manual/en/function.dl.php
if (!extension_loaded('php_gd')) {
if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
dl('php_gd.dll');
} else {
dl('gd.so');
}
}
not sure all the names above are correct and
Vail
-Original Message-
From: Dan Aloma [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 12:38 PM
To: Vail, Warren
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] [Q]PHP not taking input values from forms
when i run that, it doesn't show return anything. I really don't understand
what's
the $_SESSION array is available everywhere. I seem to be able to access it
within a function without declaring it as a global. It is customary to
declare globals that you intend to access in a function (almost everything
undeclared is assumed to be local to the function). Other exceptions that
1 - 100 of 236 matches
Mail list logo