On Wed, Jul 17, 2002 at 12:26:08PM -0400, DonPro wrote:
>
> $color_list = explode(",", $color);
>
> Now that I have a string of colors delimited by commas, I would like to
> parse the string and print out all my colors.
Start with turning on line wrapping in your email client...
Now, your sen
Chris:
Why'd you start a second thread on this? See my reply in the "File
reading help with Syntax" thread.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.
On Wed, Jul 17, 2002 at 10:00:29AM -0400, Chris Crane wrote:
> I am getting data froma website for stock information. If I type in the
> brower the URL I get a text file display list this;
>
> Date,Open,High,Low,Close,Volume
> 16-Jul-02,7.92,8.10,7.68,7.82,605500
> 15-Jul-02,7.98,8.02,7.59,8.02,5
On Wed, Jul 17, 2002 at 03:26:15PM +0200, David Russell wrote:
>
> class issue {
> function issue() { //default constructor
> }
> function issue($number) { //1 variable constructor
> }
> }
>
> My question is: will this work? does PHP OOP support more than one
> constructor?
No. But, h
On Wed, Jul 17, 2002 at 04:03:02PM +0200, Michal Albrecht wrote:
> Andrey Hristov wrote:
>
> >$your_string = preg_replace('/[\d\w]+@([\w\d]{3,}\.)+([\w]{2,4})/','',
>
> Thank you very much for your time, but this strips the e-mail address
> and lives the domain. Could you give me some hints on h
On Wed, Jul 17, 2002 at 03:55:10PM +0800, Jack wrote:
>
> if (file_exists("c:\\pdf_reports\\dealing\\test.txt"))
> It seems that php can't detect the file in such path!!!
While this isn't your problem, it's nicer coding. Single quotes and
forward slashes:
if ( file_exists('c:/pdf_reports/de
Hi Folks:
A client of mine has a large series of high traffic, PHP/MySQL intensive
websites. They're looking for dedicated hosting in Canada. Any
recommendations?
Enjoy,
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solut
On Tue, Jul 16, 2002 at 11:11:57PM -0500, W. Andy Roche wrote:
>
> If (empty ($sndrname)) {
> $error_report_msg = "Please provide a contact name.";
> error_msg_form($error_report_msg);
> break 1;
> }
Where's the wh
On Wed, Jul 17, 2002 at 10:43:24AM +1000, Justin French wrote:
> I set a
> cookie on their system which remembers them, which is just their username
> and an md5() of their pasword (the same data I add to the session).
OUCH! Sending the password back out to the net is a scarry prospect.
--Dan
On Tue, Jul 16, 2002 at 06:25:42PM -0500, Michael Kennedy wrote:
> OK, if I understand C++ correctly, if I write a program and #include
> or something similar and compile the program it only
> compiles with the used functions in it, right? So, if I never use 'cin'
> it leaves that function out o
On Tue, Jul 16, 2002 at 01:57:51PM -0400, Monty wrote:
> Is there a standard method in PHP for preventing multiple people from using
> the same log-in username/password simultaneously on a membership site? Any
> suggestions are greatly appreciated.
My session management system uses a database bac
On Tue, Jul 16, 2002 at 06:38:04PM -0400, Onaje Johnston wrote:
>
> It works using "if ($insert && isset($linenumber)) {".
>
> So because the value of linenumber is 0 on the first line, the if statement
> was evaluating to false and therefore the update wouldn't occur, correct?
Exactly. If sta
On Tue, Jul 16, 2002 at 01:45:01PM -0400, Michael Zornek wrote:
>
> I know this slight variation will make it work:
>
> echo "" . $db->field('name_long');
That's not an "object variable name." That's a function call. You're
asking to echo "" and then echoing the value returned by the field()
On Tue, Jul 16, 2002 at 11:08:19AM -0400, Conover, Ryan wrote:
>
> I am trying to do a simple fopen("http://www.weather.com/index.html";, "r");
> For some reason I cannot Open any URL's after trying several.
>
> Warning: stat failed for Resource id #1 (errno=2 - No such file or
> directory)
If
On Tue, Jul 16, 2002 at 04:25:25PM -0400, Onaje Johnston wrote:
>
> if ($insert && $linenumber) {
But, if $linenumber is 0, this process won't happen. And, that was the
complaint you mentioned up front.
So, you should do an "isset($linenumber)" instead.
--Dan
--
PHP classes t
On Tue, Apr 16, 2002 at 05:34:57PM +0200, David D wrote:
>
> I m trying to make a php command line script, and I m looking for a function
> that can stop the script until a key is pressed.
I don't believe PHP can do this.
Perl has Term::ReadLine.
Your computer's clock says it's April. Might I
Hi Chris:
On Tue, Jul 16, 2002 at 04:59:33AM +0200, Chris Knipe wrote:
>
> How can I manage to sort $DomainMX from the lowest $Weight to the highest,
> while still preserving the proper $Weight to the $DomainMX?
While I don't have experience with that function, have you taken a look at
the var
On Mon, Jul 15, 2002 at 08:46:14PM -0400, Onaje Johnston wrote:
>
> I've written a script that edits a specific line in a text file and saves
> the changes to the file for that specific line. I've noticed though that I
> can't edit the first line in the file
Without seeing the script, it'd be har
On Mon, Jul 15, 2002 at 02:12:47PM -0700, Varsha Agarwal wrote:
>
> Can anyone tell me steps for installing MYSQL on windows ??
Very simple, step by step, instructions:
http://www.analysisandsolutions.com/code/mybasic.htm
--Dan
--
PHP classes that make web design easier
On Fri, Jul 12, 2002 at 11:02:54PM +0100, Emile Axelrad wrote:
> Hello - My problem is as follows (I am trying to migrate from a mssql
> server to a mysql server)
OH!
> The data in the MSSQL table is: Æã
>
> IF I call this PHP code from my browser (IE6) it results in the
> following output: Æ
On Fri, Jul 12, 2002 at 10:57:08AM +0200, Paul Dionne wrote:
>
> Problem: How do I display all the tblCountriesOfOperation for one
> tblContacts record SO THAT MULTIPLE COUNTRIES CAN BE ADDED OR DELETED FOR
> THAT RECORD?
Use an option list with multiple selections. My SQL Solution does this
Oh, yes! I forgot about deleting countries that have been unchecked!
Hmm... Lock the table to prevent people from reading from it, delete
all records for that company, then loop through and insert the new
data, then unlock the table.
--Dan
--
PHP classes that make web desig
On Sat, Jul 13, 2002 at 11:13:38AM -0500, Mike Tuller wrote:
> After much thought, I think I have figured out what I am going to do. I am
> going to create on the first page, a place to add the hardware type, and
> that will add a row to the database, and create the key I need. It will then
> go t
On Fri, Jul 12, 2002 at 10:59:00PM -0400, Blue Presley wrote:
> Hello. I have a form that I would like to use checkboxes.
> ... snip ...
> I've been told that if I want to manipulate each
> one then I should use 'name=checkbox[]' and make an array out of it. okay,
> fine. but how do i access th
Mike:
You MUST store the hardware information first so you can get the actual
HardwareID determined by the hardware table's auto increment field.
Any other way you do it you leave open the possibility for error.
On your main hardware page, I'd make the "Volume Information" section
have condit
On Fri, Jul 12, 2002 at 07:26:52PM -0400, Francisco Reyes wrote:
> Any experiences on using PHP as a replacement for bat files?
http://www.php.net/manual/en/features.commandline.php
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | F
Emile:
On Fri, Jul 12, 2002 at 09:58:53PM +0100, Emile Axelrad wrote:
> $data = mssql_result(mssql_query("SELECT Field FROM table WHERE
> ID='1'"),0);
> mysql_insert("INSERT INTO table2 VALUES('$data')");
Ouch.
First, you're mixing and matching mssql and mysql functions. Seco
Hi Jay:
On Fri, Jul 12, 2002 at 08:40:31AM -0500, Jay Blanchard wrote:
>
> The agent selects a referral which is processed by an intermediary
> script which sets a flag in the database saying that "this agent" is, has,or
> will be contacting this referral (to prevent duplicate contact). Then thi
You wouldn't happen to be on a windows system? Read the "Warning:" on the
manual page:
http://www.php.net/manual/en/function.mail.php
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolu
Lowell:
On Fri, Jul 12, 2002 at 09:25:56AM -0400, Lowell Allen wrote:
> Are you using JavaScript to update the image without going back to the map
> server?
Dude, Dynamic HTML / JavaScript are a poor idea... unless you don't care
about your potential customers.
http://www.analysisandsolutions.c
On Fri, Jul 12, 2002 at 12:04:55PM +0530, Lord Loh. wrote:
> int fseek (int fp, int offset [, int whence])
> int ftell (int fp)
> int rewind (int fp)
> These syntaxes might be useful...
> Read more in File System Functions of the PHP Docs.
Unfortunately, if a file is opened for appending via fope
On Fri, Jul 12, 2002 at 12:08:36AM -0400, Monty wrote:
> expressions. Can you tell me what the open and closing slashes / are for
> inside the quotes? Is it equivalent to [ and ] for ereg?
They are "delimiters." Other characters can be used, but / is the
standard.
--Dan
--
PHP
On Thu, Jul 11, 2002 at 11:24:34PM -0400, Monty wrote:
> $contentpage = preg_split("[[:space:]]*page_break[[:space:]]*", $content);
DOH! It's preg!!! [[:space:]] is for ereg. Use \s. I don't know why I
didn't notice sooner. Do this:
'/\s*page_break\s*/'
--Dan
--
PHP cl
On Thu, Jul 11, 2002 at 07:33:59PM -0400, Monty wrote:
>
> Thanks Dan. But, removing the asterisk or putting it after the character
> class doesn't work either for some reason.
Have you tried [[:space:]]* instead? That'll pull in line breaks, tabs
and spaces.
--Dan
--
PHP cl
On Thu, Jul 11, 2002 at 04:06:24PM -0700, Lazor, Ed wrote:
> Wow. That's pretty cool =) Do they allow map over-lays? For example, if
> you want to display a map displaying points for each house within the
> vicinity of the coordinates?
I don't know. I have a feeling not, but hack away all you
On Thu, Jul 11, 2002 at 06:41:28PM -0400, Monty wrote:
> I'm trying to preg_split() text between "". I used the following but
> can't get the regular expression to work:
>
> $content = "blah blah blah blah blah";
> $paged = preg_split( "[[:cntrl:]*][[:cntrl:]*]", $content );
The * needs to be a
Hey Lowell:
On Thu, Jul 11, 2002 at 04:42:04PM -0400, Lowell Allen wrote:
> A client wants a database-driven site that records information about real
> estate properties and includes geographic maps of property locations
> (throughout the US).
[Also read your post saying they'll have GPS units]
On Thu, Jul 11, 2002 at 11:14:24AM -0700, David Busby wrote:
>
> I'm using PG functions like below and I'm wondering how to get rid
> of that dang Warning message? PHP.ini setting? or can I turn on/off error
> checking?
... snip ...
> Warning: Unable to jump to row 920 on PostgreSQ
On Thu, Jul 11, 2002 at 11:14:51AM -0400, Analysis & Solutions wrote:
> echo ' ';
> if ( mysql_fetch_seek($Result, $Index) ) {
> $row = mysql_fetch_row($Result);
> echo $row[0];
> } else {
> echo ' ';
>
On Thu, Jul 11, 2002 at 03:14:07PM +0200, [EMAIL PROTECTED] wrote:
>
> Another way of doing it is to use mysql_data_seek() to jump back and forth
> in the result set.
Now that Jason clarified what he's trying to do, Joakim is on target.
Since this data set already exists, I'd do this rather th
On Thu, Jul 11, 2002 at 11:30:16AM +0200, andy wrote:
>
> Table 1 user_table
> id
> points
>
> Table 2 reports
> report_id
> user_id
> rating
>
> The goal is to associate every user extra 50 points if he has a top 10
> report.
> Top 10 report means the 10 reports with the highest ranking. This
On Thu, Jul 11, 2002 at 03:11:08AM -0500, Richard Lynch wrote:
> uname -a gives me:
> OpenBSD o2 2.9 conf#0 i386
> But I don't even know how to get the /proc/sysinfo or whatever it is under
> this OS...
"less /var/run/dmesg.boot" works on my ISP's NetBSD system.
--Dan
--
PHP cla
Jason:
On Wed, Jul 10, 2002 at 10:04:45PM -0800, Jason Soza wrote:
>
> I have this nice piece of code to take my SQL result and organize it into a
> nice 5 column table:
Nice is in the eye of the beholder... Here's what I think is nice:
echo "\n";
echo " \n";
while ($row = mysql_fetch_
On Thu, Jul 11, 2002 at 02:11:30PM +1000, Martin Towell wrote:
>> From: Chris Earle [mailto:[EMAIL PROTECTED]]
>>
>> I was wondering if there was a function that would allow me to "jump"
>> to a certain line if a file and then write from there? I'm searching
>> php.net without any luck :(.
>
>
Please post the relevant table and field names.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S O L U T I O N S C
On Wed, Jul 10, 2002 at 12:25:08PM -0500, Rw wrote:
>
> "01-02-2003"
>
> Is there a handy function to convert that to other ways of expressing the
> date such as:
>
> "01/02/03"
$temp = preg_replace('/^(\d{2})-(\d{2})-(\d{2})(\d{2})$/', '\\1/\\2/\\4',
$date);
> "2003-01-02"
$temp = preg_r
On Wed, Jul 10, 2002 at 11:14:51AM -0600, CM wrote:
> Are there any php scripts or classes that do Automatic Form Creation? If it
> worked from a MySQL datbase that would be a plus.
Check out my SQL Solution class: http://www.sqlsolution.info/
Makes it really easy to generate dynamic form elem
On Wed, Jul 10, 2002 at 12:45:01PM -0400, Chris Earle wrote:
> I'm just curious if there's a function that allows you to see how many lines
> there are in a file.
I don't recall there being one. Simple way:
$Array = file('file.name');
echo count($Array);
--Dan
--
PHP cla
On Wed, Jul 10, 2002 at 07:04:58PM -0700, Fargo Lee wrote:
> But if system() thinks it is a success because the command executed, even
> though MySQL returns an internal error on the command line, why is'nt the
> last line of the MySQL error message stored in the variable as the system()
> manual
On Wed, Jul 10, 2002 at 09:50:27AM -, Alex Elderson wrote:
>
> class test {
> function test() {
> $globals['test2'] = &$this;
> }
> }
> $test1 = new test();
>
> The problem hier is that $globals['test2'] is a copy of
> $globals['test1'] not a
> references.
Use "$GLOBAL
;;
--Dan
I think this is only possible using backticks, which I can't
> use as this needs to be run in safe mode. So I guess I just need to use the
> return_var as you suggested. Thanks!
>
> "Analysis & Solutions" <[EMAIL PROTECTED]> wrote in message
> [
On Wed, Jul 10, 2002 at 12:14:58PM -0700, Fargo Lee wrote:
>
> when made to fail MySQL does return an error on the command line yet the
> variable does not hold FALSE as the manual suggests it should or anything
> else.
The behaviour of returning FALSE upon failure has to do with the system()
cal
On Tue, Jul 09, 2002 at 11:41:47PM -0700, Fargo Lee wrote:
> got it to assign a 0 (success) or 1 (failure) to the return_var argument as
> you suggested so I am happy.
Good!
> What mixed me up and I still don't understand is the manual entry for
> system() says ...
>
> "Returns the last line
On Tue, Jul 09, 2002 at 10:59:04PM -0700, Fargo Lee wrote:
>
> Thanks but it still returns "Success" on a failure. If anyone knows if it is
> even possible to assign the output of system, passthru or exec to a variable
> to check for success or failure and how to do it, please advise. The $status
On Wed, Jul 10, 2002 at 01:08:38AM -0400, Adam Alkins wrote:
>
> From: "Analysis & Solutions" <[EMAIL PROTECTED]>
>
> > On Tue, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote:
> > >
> > > $status = system("mysql -umyuserid -pmypass
On Tue, Jul 09, 2002 at 10:40:33PM -0500, Chris Shiflett wrote:
> Patrick Teague wrote:
>
> >$os = eregi_replace( "Win[^dows]", "Windows ", $os );
>
> I'm pretty sure (I'm not a regular expression expert) this matches "a
> string that begins with Win followed by a character that is not d, o, w,
On Tue, Jul 09, 2002 at 06:09:36PM -0700, Fargo Lee wrote:
>
> $status = system("mysql -umyuserid -pmypassword mydbname <
You need a space between "-u" and "myuserid"
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
On Tue, Jul 09, 2002 at 12:32:59PM -0700, Peter Thoenen wrote:
> Which is quicker (this is on a webpage also..NOT
> commandline)?
>
>
> OR
> abc
The difference is very marginal. Write whichever makes more sense in the
context. Short tidbits just don't matter. Larger stretches of text are
e
On Tue, Jul 09, 2002 at 07:34:13AM -0700, Todd Cary wrote:
> The version of PHP on one is 4.0.3pl1 and on the other it is 4.0.1pl2.
>
> Here is what is baffling for me: one the second server the
> $HTTP_ENV_VARS array is empty.
http://www.php.net/manual/en/configuration.php#ini.track-vars
--Da
On Tue, Jul 09, 2002 at 03:37:04PM +0200, AcIDeR wrote:
> Whenn i acces a page then there will automatichly be a phpsesion id created
What's your session.auto_start setting in php.ini?
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution |
Hey Folks:
Speaking of identity theft, here's a fun story. Involves a Hollywood
Video store. HV is a large chain of video rental stores.
http://www.nydailynews.com/2002-07-09/News_and_Views/Crime_File/a-156851.asp
--Dan
--
PHP classes that make web design easier
SQL
On Mon, Jul 08, 2002 at 08:06:27PM -0700, Varsha Agarwal wrote:
>
> The browser gives me error that undefined index
> 'usename'. Can anyone tell me what could be wrong as i
> am very new to HTML and PHP.
I'll bet this is happening the first time you view the page. That's
happening because you
On Mon, Jul 08, 2002 at 04:23:08PM -0500, Steven Jarvis wrote:
>
> $row = mysql_fetch_array($results);
> while ($element = each($row))
Nay! Combine those two rows into this:
while ($element = mysql_fetch_array($results) ) {
--Dan
--
PHP classes that make we
Folks:
Allow me to emphasize Richard's point about not trusting certificate
authorities. I have an SSL certificate. It was fairly simple to get,
despite several discrepancies in my documentation.
While it made things easier for me, which I'm thankful for. Fortunately,
I'm a legitimate opera
On Mon, Jul 08, 2002 at 04:34:20PM -0600, René Fournier wrote:
>
> Do I store all such images in the DB? (Which I understand reduces
> performance.)
You can, but it's a pain and inefficient.
> Or do I--somehow--store the images as files on the client's web server?
> And if so, how? (Because
I'd put a conditional include on the top of the present script.
if ( !empty($_POST['addtocart']) ) {
include('./the.update.script.php');
}
Then redisplay the existing page with the new information.
--Dan
--
PHP classes that make web design easier
SQL Solutio
On Mon, Jul 08, 2002 at 10:49:12AM +0300, adi wrote:
> $string="-line1\n -line2 \n-line3";
>
> $result2 = db_query("update table1 set column1= '$string' where ID =
> '$IDcurent'") or db_die();
> When i try to view in a textarea control the new value from column1, the
> newlines disappear!
We
Hi Terry:
See the answer to the other thread you already started on this subject.
In short, use the superglobal's to access the input:
$_POST['variablename']
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqls
Hi Terry:
On Mon, Jul 08, 2002 at 11:36:46PM +0800, Terry Cheung wrote:
>
> to the mysql database, the only problem is all the php pages seem likes do
> not response to the submit button, it just direct back to the same page
Then you're not writing your form correctly.
Where, "sc
On Mon, Jul 08, 2002 at 06:11:16PM +0200, Sandman wrote:
>
> I apologize deeply, but I am using the NNTP interface to these lists, and I
> can't find the thread you're talking about.
http://groups.google.com/groups?hl=en&safe=off&group=php.general
--Dan
--
PHP classes that mak
On Mon, Jul 08, 2002 at 11:38:17PM +1000, Justin French wrote:
>
> So, to keep the formatting of these breaks, insert the text into the DB as
> is, then on pulling it out, convert \n's to 's using nl2br($string),
> so that the "newlines" appear within a HTML page.
Or put the code between tags.
Tony:
On Sun, Jul 07, 2002 at 11:40:27AM +0100, Tony Harrison wrote:
>
> Hi. I please need some help with converting a MySQL timestamp into something
> easily read. Any help at all is most appreciated, thanks.
There are a lot of ways to do that. I'd go for the date_format() function
in MySQL.
On Fri, Jul 05, 2002 at 01:59:48PM -0700, Lazor, Ed wrote:
>
> How many here feel PostgreSQL has surpassed MySQL as the better backend for
> PHP? This would be based on performance (speed, scalability, etc.) and
> features.
I've been using MySQL/PHP for quite some time. Several months ago, I
wa
On Fri, Jul 05, 2002 at 01:56:58AM -0500, Miguel Cruz wrote:
>
> Interesting. What tests did you perform?
I used similar things, including a file('test.php') statement in
another php script and using GET from the command line.
telnet is a good test, but I didn't have it available at the time.
Hola:
On Thu, Jul 04, 2002 at 01:12:26PM -0600, CM wrote:
>
> Can anyone recommend a good book or web page on php and xml?
> The "Professional PHP4 XML" book by wrox looks good but I haven't read any
> reviews on it.
I have a demonstration page at
http://www.analysisandsolutions.com/code/phpxml.
On Thu, Jul 04, 2002 at 07:16:39PM +0200, andy wrote:
>
> i am wondering if it is possible to return more than 1 value from a
> function?
>
> test(){
> return $value1, $value2
> }
You can return an array. Or, you can global the variables and then set
them to the values you want.
--Dan
-
On Thu, Jul 04, 2002 at 11:00:55AM -0600, René Fournier wrote:
>
> I did. It didn't help. (That's why I posted this message.)
Suggestions to RTFM generally mean that there's something plainly visible
in the manual that states what your problem is. Did you go back to the
manual after Jason's e
On Thu, Jul 04, 2002 at 12:41:10PM -0400, Lowell Allen wrote:
> $summary = preg_replace("/^(.*)\n/", "\1", $summary);
How's this?
$summary = preg_replace('/^(.*)(\r?\n){2,}.*/', '\\1', $summary);
--Dan
--
PHP classes that make web design easier
SQL Solution | Layo
Folks:
On Thu, Jul 04, 2002 at 11:05:38AM -0400, Analysis & Solutions wrote:
> On Thu, Jul 04, 2002 at 01:44:00PM +0100, Mark Colvin wrote:
> >
> > > value='New' onClick="this.form.action='newproduct.php?mode=new';
> > this.form.submit()&q
On Thu, Jul 04, 2002 at 01:44:00PM +0100, Mark Colvin wrote:
> I use the following line in some of my php scripts to navigate between
> pages:
>
> value='New' onClick="this.form.action='newproduct.php?mode=new';
> this.form.submit()">
And then folks with Java'sCrap turned off won't use your si
On Thu, Jul 04, 2002 at 08:48:26AM -0300, Skyhawk wrote:
> Please, How do I make to get all errors of MySql ?
>
> I'm making a function for translate all errors. Example:
Uh, why? PHP's mysql_error() does the job for you.
http://www.php.net/manual/en/function.mysql-error.php
If you're hell ben
Patrick:
Grouping and sorting is something databases specialize in.
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout Solution | Form Solution
sqlsolution.info | layoutsolution.info | formsolution.info
T H E A N A L Y S I S A N D S
On Thu, Jul 04, 2002 at 11:01:50AM +0100, Ford, Mike [LSS] wrote:
>
> I can't let this go unchallenged -- what happens if you're sending this to a
> browser which *doesn't* honour the "Location: " header, but *is* capable of
> displaying any attached page content? The poor user wil
On Thu, Jul 04, 2002 at 08:04:59AM +0100, morka ++ wrote:
> i try to open the external file using fopen() function.
> I use the example from php.net:
> $filename = http://www.aaa.com/index.html;
> $fd = fopen ($filename, "r");
> $contents = fread ($fd, filesize ($filename));
"This function will n
On Wed, Jul 03, 2002 at 08:23:11PM -0600, Jose Arce wrote:
> Hi, i want to know if i can convert this:
>
> echo fgets($conexion,256);
>
> to a variable, or store it to a MySQL database, and then email that
> variable or data in the MySQL database...thx :D
Yes. Anything you can echo you can pu
On Wed, Jul 03, 2002 at 07:18:45PM -0600, CM wrote:
>
> What do you do if you have a huge form that you want broken up into several
> different forms but each time the submit button is pressed the info is saved
> to the sql table.
>
> Do you just create the table on the first form submit and then
On Wed, Jul 03, 2002 at 06:03:59PM -0800, Chris Lott wrote:
> On Wed, 3 Jul 2002, Analysis & Solutions wrote:
>
> > Note use of single quotes around the array key names, as well.
>
> Why is this better-- I assume because PHP doesn't have to check for
> variab
On Wed, Jul 03, 2002 at 05:44:28PM -0800, Chris Lott wrote:
>
> I have a function that writes meta tags... if a tag (or tags) is not
> specified, then it gets a default value... is there a cleaner way to
> do this?
Not that I can think of. I do have some thoughts, though...
> if ($type["desc
David:
On Wed, Jul 03, 2002 at 02:19:28PM -0700, David Busby wrote:
>
> $rs = odbc_exec($db, "spGetItems");
Uh, what is "spGetItems?" The second argument of odbc_exec() is supposed
to be a query string. That doesn't look like a query string.
--Dan
--
PHP classes that make w
Hey Clay:
On Wed, Jul 03, 2002 at 03:25:42PM -0700, Clay Loveless wrote:
>
> Looks like your conclusion is the same as mine: the object variables are
> readable within the handler functions, but they are not writeable.
I don't think that's an accurate description. The object variables are
wr
On Wed, Jul 03, 2002 at 12:00:50PM -0400, Martin Clifford wrote:
>
> Does [a-zA-Z0-9] (yes, I know [:alnum:] is the same) mean that there can
> be a number, but it has to follow a letter? Or would you just do
> [a-zA-Z][0-9] to do that?
Your second question/statement is correct.
--Dan
--
You started the same thread yesterday. I pointed you to the answer. You
replied, saying, in essence, that you don't want put any real effort or
thought into learning. Now, you're starting a whole new thread.
Sad.
--Dan
--
PHP classes that make web design easier
SQL So
Clay:
On Wed, Jul 03, 2002 at 11:05:34AM -0700, Clay Loveless wrote:
>
> "Note: Instead of a function name, an array containing an object reference
> and a method name can also be supplied."
Interesting. Thanks!
Anyway, back to your situation. I put together a test. Two counters are
running
Clay:
On Wed, Jul 03, 2002 at 02:20:56AM -0700, Clay Loveless wrote:
>
> xml_set_element_handler(
> $this->xmlparser,
> array($this,"_xml_start_element"),
> array($this,"_xml_end_element"));
> xml_set_character_data_handler(
> $this
On Fri, Mar 29, 2002 at 03:00:29AM +0200, David Russell wrote:
>
> How would I get recent stock prices in a page? I obviously need to get
> this from some source.
>
> I am looking for local (South African) and international share prices
> for a portal-type system.
This may or may not be of so
On Tue, Jul 02, 2002 at 11:19:22PM -0400, Analysis & Solutions wrote:
>
> Oops. Forgot to escape the $:
>
> $var = "\$wins_$counter";
Oops. Forgot my promise to myself to always test things before posting.
I had a sinking feeling my initial posting would com
On Tue, Jul 02, 2002 at 10:45:27PM -0400, Analysis & Solutions wrote:
>$var = "$wins_$counter";
Oops. Forgot to escape the $:
$var = "\$wins_$counter";
--Dan
--
PHP classes that make web design easier
SQL Solution | Layout
On Tue, Jul 02, 2002 at 10:19:59PM -0400, Greg Wineman wrote:
>
> He are the variables from my form
>
> wins_1=7
> losses_1=0
> sort_1=1
> wins_2=7
> losses_2=4
> sort_2=2
> wins_3=7
> losses_3=4
> sort_3=3
>
> $counter=1;
> $wins=eval("\$wins_".$counter);
eval() is overkill and can be dangero
On Tue, Jul 02, 2002 at 09:49:14PM -0400, admin wrote:
>
> Warning: Cannot add header information - headers already sent by
> (output started at C:\apache\htdocs\php\setup\index.php:9)
> in C:\apache\htdocs\php\htmlheader.php on line 30
The Manual at http://www.php.net/manual/en/function.heade
On Tue, Jul 02, 2002 at 04:26:02PM -0700, David Busby wrote:
>
> How do you make you PHP scripts require explicit variable
> declaration? Like Java/SQL/C/C++ or 'use strict;' in PERL or 'Option
> Explicit' in VB/VBScript
I think the closest you're going to get is using E_ALL for you
101 - 200 of 425 matches
Mail list logo