I have been working on a script to parse a CSV file and in the process I
clean out a lot of the garbage not needed but I am a bit stumped on one
aspect of this file. It's a list of over 3000 contacts and I'm trying to
mask a lot of the information with *.
So as I loop through this list I am check
Sorry, I may have muddled that...the issue isn't converting a string to
a time, it's taking a time (102636 for example) and adding 30 days
to that.
Jeff
-Original Message-
From: Jay Blanchard [mailto:[EMAIL PROTECTED]
Sent: Friday, November 21, 2003 11:13 AM
To: [EMAIL PROTECTED]; ph
Storing a date in seconds (Unix timestamp) in a database and want to add
X number of days to this. So I want to extend a time by say 5 days, what
is the best method to handle this?
It's always stored as a timestamp for a day not an exact time. So dates
are stored as day (March 5th, 2003).
Jeff
I want to query a table of text articles and when selecting them I am
wondering if I can grab the actual size of the articles in question.
So if someone has two articles, I want to see if they have reache 100kb
in total.
Does that make sense to anyone? is that possible with PHP?
Jeff
I have the following set up...
RH Linux version 7.3
PHP 4.3.2
Aspell installed on the server
I have NEVER configured PHP and am looking for some assistance in
configuring PHP to use Aspell so I can take advantage of this great
feature that (as I can see from my searches) is not as well document
t";
mail ('[EMAIL PROTECTED]', 'Quote of the Week from Jeff', $message,
$headers);
And again, it works for most people but two people have complained about
this issue. At least one as using MS Outlook.
Jeff
- Original Message -
From: "Jeff Lewis" <[EM
We're sending out emails using mail() and sending it in HTML format and
while most people get it correctly a couple are not. They get the anti-abuse
headers and then the HTML code appears as just that - HTML code in the body
of the email.
Sending those same people an HTML email composed in Outlook
I am trying to select a date range in this format from a database 1-Mar-03
to 26-Mar-03. The date is stored in a mySQL database in that format and when
doing a normal select it just selects the dates as if they are numbers.
How can I make this select work the way I want it to work? I am using the
Ah! That did it, it's all on Windows and when I tried removing things I
tried at one point removing the \r as i thought the nl2br changed the \n to
Thanks a lot John :)
Jeff
- Original Message -
From: "CPT John W. Holmes" <[EMAIL PROTECTED]>
To: "Jef
lines to see if I could
narrow it down to what was causing the issue.
Jeff
- Original Message -
From: "CPT John W. Holmes" <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, March 24, 2003 3:03 PM
Subject: Re: [P
I am using a SELECT statement to grab all items from a database table and while
looping through the results I am connecting the fields with tabs and adding a new line
at the end of the row to create a tab delimited file.
On one field I do a nl2br in order to preserve the spacing in the field. H
I am grabbing this page and trying to grab the stats on the page:
http://slam.canoe.ca/StatsHKN/BC-HKN-STAT-TORONTOSTAX-R.html
The code I had worked just fine before but now that there are players that have
multiple lines, it's not working as I'd like it to. Below is the code that worked and
I
I've been trying to use fsockopen and it fails to get by if (!fp) and returns an errno
of 0.
In the documentation it says that indicates an error initializing the socket. Is there
anyway I can debug this or find out what is going wrong?
Jeff
And they aren't, that is our main issue...
So with the GPL, someone can change say...10 lines and rename the scripts
and distribute it as their own?
Jeff
- Original Message -
From: "Leif K-Brooks" <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTEC
I am wondering if anyone out there has some really good references in
regards to scripts distributed as open source using the GPL. In the last
three years that I have worked on open source projects I have seen several
people "steal" a program, change the name and then try to distribute it as
someth
I have been using mail() to send SMS messages to my phone but the From
address never seems to work as I set it. When it arrives in my email client
it works fine but when it gets to my phone it does. I have set headers like
so:
"From: $from_email\r\nReply-To: $from_email\r\nReturn-path: $from_email
So how are most people handling the situation you mentioned below? After
getting verfified in a https, how is the session information being passed
back to the http?
Jeff
- Original Message -
From: "Ernest E Vogelsinger" <[EMAIL PROTECTED]>
To: "Jason Sheets" <[EMAIL PROTECTED]>
Cc: "Leo Sp
Set your php.ini file and error reporting as such:
error_reporting = E_ALL & ~E_NOTICE
See if that helps with the undefined notice.
jeff
- Original Message -
From: "Beauford.2002" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Wednesday, January 15, 2003 12:52 PM
Subje
em to run rampant on
here lately...
Jeff
- Original Message -
From: "Timothy Hitchens (HiTCHO)" <[EMAIL PROTECTED]>
To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; "'php-gen'" <[EMAIL PROTECTED]>
Sent: Friday, January 10, 2003 9:39
I've checked Hotscripts and I can't findanything relatively new or that suits my
needs. I was wondering if anyone uses a FAQ program that they could suggest?
Jeff
Currently I have a script that reads an index file and from that index file it then
loops through all files in that directory based on the index.
Instead of one directory now I have several and I want to loop through each directory
and go to each directory's index file. Since there is no pattern
I know that mySQL errors are caught in mysql_error() and I find that
function extremely useful (kudos!). However, I have several queries in a few
scripts of mine but am wondering if anyone has written a small function that
catches errors and outputs them. What I mean is lets say I have a block of
c
I am creating a graph using jpgraph and it is based on values grabbed every
15 minutes. So for the first graph I want to report the values for the last
24 hours. Would it make sense to report 96 points or what is everyones
suggestion?
The time is stored as a Unix timestamp...the values are server
Now I tried this on the Windows list but didn't get any replies. I also found an old
thread on another site that Rasmus had replied to and I tried that suggestion but no
luck.
I just ran the PHP installer and it set it up as a cgi I guess. I'd do the other way
if I could find complete instructi
http://www.yabbse.org
- Original Message -
From: "Fatih Üstündað" <[EMAIL PROTECTED]>
To: "Php-General" <[EMAIL PROTECTED]>
Sent: Tuesday, December 24, 2002 9:51 AM
Subject: [PHP] forum?
> do you know freeware forum in php I can easly use?
>
> thanks.
> fatih ustundag
>
> --
> PHP Gener
I have to write a script to parse XML files we receive daily. The XML files are all
individual stories but there is an index page that comes with each batch that contains
blocks of information for each story as follows (below). I need to run through this
index file and for each story I need to g
YaBB SE seems to do quite well, I have it running on three sites.
http://www.yabb.info
Jeff
- Original Message -
From: "Stephen" <[EMAIL PROTECTED]>
To: "PHP List" <[EMAIL PROTECTED]>
Sent: Friday, October 11, 2002 5:36 PM
Subject: [PHP] Best Forum System
Hello,
I know there will be a
If it makes you feel better, it's a site only for Canada.
Jeff
- Original Message -
From: "Justin French" <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, September 10, 2002 7:35 PM
Subject: Re: [PH
Just wondering what the best way to validate an entered phone format is? Is
anyone doing this currently?
I have a form field that people enter in information and I want to force
phone entries to XXX-XXX-.
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
I know it's been posted here several times and I've looked through the archives but I
just need something very simple for this. I have a form that already takes in user
information but now before accepting the information, I'd like to pass the credit card
information to a function and return tr
Is there a regular expression that will remove 1, L, I, O, 0 and the
lowercase equivilants from a varialbe?
I am not horribly well versed in regular expressions...so I'm basically
asking someone to help :)
Say I have a string like this "jeD1GLal"
I want to remove any of the chracters that be co
Please disregard, it was a silly problem (I was echoing the SQL query and
editing that, not the main SQL query).
Jeff
- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 20, 2002 3:04 PM
Subject: [PHP] Pr
mysql_query is returning an odd error. I don't know if I'm just totally missing
something or not but I keep getting this error:
mySQL Error: You have an error in your SQL syntax near ''LIMIT 25,25'' at line 1
with this query:
SELECT * FROM dvd_library WHERE genre=BUDGET ORDER BY description A
Sorry, just saw Rasmus' reply, lso I didn't read your code entirely, noticed
you specified for the period to be chopped off :)
Jeff
- Original Message -----
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: "Mike At Spy" <[EMAIL PROTECTED]>;
<[EMAIL PRO
Trim clears whitespace not characters (I'm pretty sure), try using this to
rid yourself of the period:
$trimmed = substr($date, 0, -1); // returns everything but that last
character (the period)
Jeff
- Original Message -
From: "Mike At Spy" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Se
d count at the same time?
> On Thursday 15 August 2002 23:19, Jeff Lewis wrote:
> > I am using PHP to maintain a catalog of music and have been just fine
with
> > it but have run into one thing i want to do and need some advice.
> >
> > The format of the data is like so:
&
I am using PHP to maintain a catalog of music and have been just fine with
it but have run into one thing i want to do and need some advice.
The format of the data is like so:
upc|genre|distributor|details
What I want to do is grab a "summary". So it would end up printing out:
rock (43)
countr
vBulletin has a file called ticker.php that allows users to have latest
posts sent to their toolbar in Windows. An example can be found on this
site: http://www.whitesoxinteractive.com/Ticker.htm
How exactly do they do this? I can't manage to get my hands on the file to
take a look but it's somet
I think there is always a need for more resources. Some people prefer forums
and the ability to actually go a bit off topic in some boards as opposed to
strictly answering questions. It's a matter of preference I suppose.
Anything that further helps PHP spread I'm for it :)
Jeff
- Original M
Is it like http://www.phptalk.com ? Like just discussion or are their tutorials etc?
Jeff
>I have started a new website devoted strictly to discussing development with
>PHP. If anyone is interested, you can see it at http://www.phpdiscuss.com.
Tried going to the official announcement and got this:
query failed: %( SELECT fud_forum.id, fud_forum.name, fud_cat.name AS
cat_name, fud_cat.id AS cat_id, fud_msg.post_stamp AS msg_post_stamp FROM
fud_cat INNER JOIN fud_forum ON fud_cat.id=fud_forum.cat_id LEFT JOIN
fud_msg ON fud_forum.last_po
He is both, he has been emailed how to get off. For now, I keep just sending
my read receipts :)
- Original Message -
From: "R'twick Niceorgaw" <[EMAIL PROTECTED]>
To: "Erik Hegreberg" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, July 09, 2002 6:30 PM
Subject: Re: [PHP]
ww
Shane,
I use a javascript prompt. When you click OK, it passes the information on
to the PHP script to do the work :)
Jeff
- Original Message -
From: "Shane" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, June 27, 2002 12:48 PM
Subject: [PHP] Best Delete Confirmation Script
Currently I am using fsockopen on my IP and a port and when sending a UDP
request it always says it's open. Now, what I'm trying to do is see if I
have an application running on there. This application listens to the port
I'm trying to hit.
Is there a way with fsockopen I can do this? Instead of
We're using a FTP Control program here but it's very old and I'm wondering
if anyone has used PHP to sync up FTP sites, to connect to a remote server
and check if there is anything new...
Not quite sure where to start with it though...
Jeff
--
PHP General Mailing List (http://www.php.net/)
To
Ed,
Currently none to my knowledge, however, YaBB SE 2 which is in development
has this feature roughed in already. However, it's still in development.
Jeff
- Original Message -
From: "Lazor, Ed" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, June 12, 2002 1:35 PM
Subject:
Is it just me or the forum area totally overflowing with choices? I often
wonder why people don't pool talents and work on really great products,
instead people break off and make their own system - quite unusual...
Jeff
- Original Message -
From: "Ilia A." <[EMAIL PROTECTED]>
To: <[EMA
ff to update the scripts!
Jeff
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL PROTECTED]>
Sent: Thursday, May 30, 2002 8:33 PM
Subject: RE: [PHP] Failed o
Yes and that isn't in there (php4\pear). I looked in the php.ini in windows
and in php folders...
Jeff
- Original Message -
From: "Martin Towell" <[EMAIL PROTECTED]>
To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; "PHP General"
<[EMAIL
I am running PHP 4.2.1 on Windows XP. I had 4.1.2 running perfectly fine and
then decided to get MSSQl running as well. So I ran into a problem where it
failed to load the DLL. I read through the archives and it said to make sure
I have the most up to date DLL, so I then installed 4.2.1.
Now, whe
For now you can add this to the top of your scripts:
$types_to_register = array('GET','POST','COOKIE','SESSION','SERVER');
foreach ($types_to_register as $type) {
$arr = @${'HTTP_' . $type . '_VARS'};
if (@count($arr) > 0) {
extract($arr, EXTR_OVERWRITE);
}
}
Somebody else
Never used Phorums as it didn't have what I was looking for. Tried phpBB
but the admins ection is awful IMHO. I currently use YaBB SE which has a
very fast development time.
Jeff
- Original Message -
From: "Richard Baskett" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent:
Currently, people can post links to images in an application I am using but
they can post something outrageous like 1000X800 pixels and it messes thing
up on the format. I was sent this as a solution but it really bogs down
especially on images from certain servers. Is there a better way to do
t
I've looked through the archive and seen that people have attempted it but I
am wondering if anyone has actually gone forward with using PHP and frames
together.
I ask as I am using a very simple frame interface. Left side contains a
menu system with all content etc on right. I have a login box
he MAY have been thinking of the PHP version which is at www.yabb.info and
also in use over at http://www.phptalk.com
Jeff
- Original Message -
From: "John Fishworld" <[EMAIL PROTECTED]>
To: "Mizery De Aria" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, May 06, 2002 10:29 AM
Subj
Actually... the version of YaBB at yabbforum.com is strictly a Perl based board. It
doesn't use mySQL either. The PHP version of YaBB is at http://www.yabb.info but it
relies on mySQL.
There is Easy Forum http://www.hotscripts.com/Detailed/15435.html
There is Eboard http://www.hotscripts.com/
Austin,
I am using 4.2 on a W2K machine at work and have had no problems with the
mysql_fetch_* functions.
Only thing I had to get used to was the new way to handle globals.
Jeff
- Original Message -
From: "Austin W. Marshall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, Apr
Try YaBB SE http://www.yabb.info
- Original Message -
From: "r" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, April 27, 2002 7:21 AM
Subject: [PHP] BBS system
> Hey all,
>
> Just a small q,
> does anybody know of any particular good BBS system that is free? (I aint
> ric
it keeps turning up empty.
Jeff
- Original Message -----
From: "John Holmes" <[EMAIL PROTECTED]>
To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, April 25, 2002 10:13 PM
Subject: RE: [PHP] 4.2 new GLOBALS question
> > I
I am working on an odler script which loads up in index.php and a URL is passed
usually like index.php?s=something
Now, around line 10 of index.php I do an include that pulls the value of s via
HTTP_POST_VARS and then I dump it into $start.
It used to work just fine and still does except on 4.
: Sessions not staying a session...
>
>
> You should use session_start(); on every page that u want to pass session
> information..
>
> Craig
>
> "Jeff Lewis" <[EMAIL PROTECTED]> wrote in message
> 00d601c1ec72$072a63d0$76a1a8c0@LEWISJCIT">news:00d601c1e
I am storing session information by using $_SESSION[privs] and it works for
the first screen but when I click on the next link it doesn't seem to carry
over. Do I need to declare session start with this method? Do I need to
make it global?
Jeff
--
PHP General Mailing List (http://www.php.
I've decided to use the _SESSION method instead and it works just fine :)
So...thanks for suggesting that method, as it does look neater in the code
as well.
Jeff
- Original Message -
From: "Erik Price" <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTEC
I am in a function called Login2 in which I call the following:
session_start();
session_register("valid_user");
session_register("privs");
valid_user contain a name - Jim
privs contains a number -1
Right after I call those I try a is_registered and it showed that these
registered correctly. I
Another one is http://www.phptalk.com
- Original Message -
From: "Martin Cabrera Diaubalick" <[EMAIL PROTECTED]>
To: "Jason Whitaker" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Tuesday, April 16, 2002 7:11 AM
Subject: Re: [PHP] PHP
> It's a Forum, not a chat.
>
> http://forums.know
We've used email ban and IP ban but there are easy ways around this as you
all know. I am wondering if there is anything a little more hardcore to do
as far as banning goes. I had read somewhere about grabbing a MAC address
or something similar from a network card. Has anyone heard of this meth
You can also give YaBB SE a shot http://www.yabb.info
- Original Message -
From: "Chuck "PUP" Payne" <[EMAIL PROTECTED]>
To: "PHP General" <[EMAIL PROTECTED]>
Sent: Wednesday, March 20, 2002 7:11 PM
Subject: [PHP] Phpfx, what is it?
> Hi,
>
> I was sourgeforge.net looking at the PHP st
More digging has turned up that the disk space is low or running out...so I
will look into that.
However, if anyone has any tips I'd greatly listen :)
Jeff
- Original Message -
From: "Jeff Lewis" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, Mar
I was returned this error after a mysql_query:
1030: Got error 28 from table handler
What does this mean? It doesn't happen all the time and it almost random...
I searched the mysql site and didn't find anything and a search on Google I
found that it is a table that may have become corrupt so i
We have some software where there is a form that people can enter a message
in. When submitting the form, it is directed to a function that has global
declarations for the subject and message of the post.
This worked up until yesterday. And it didn't just happen on one site, it
stopped on sever
Sometimes when using PHP/mySQL I have encountered a locked table. I have no
idea why it occurs, I am not explicitly locking the tables but sometimes in
phpmyadmin it says "in use". Is there a way to "unlock" this table using
PHP?
Jeff
--
PHP General Mailing List (http://www.php.net/)
To uns
They are very questionable. Have had heard many complaints from clients and
associates about these guys shutting down sites without warning, anything
that starts to get a few hits seems to be an issue with them...
Again, you get what you pay for people :)
Jeff
- Original Message -
From:
Is it possible to measure the amount of RAM or CPU power used to process a
particular file written in PHP? Can the values be grabbed and displayed
with PHP?
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Not sure, the tables are in different databases with different users and
passwords. I will look into it but the answer I got this afternoon
satisfied me :)
Jeff
- Original Message -
From: "Miles Thompson" <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTECTE
I am trying to basically copy data from one database to another and am
wondering if it is possible to have more than one database open at a time.
So for example, I want to do something like this but am wondering if there
is a better way:
$dbcon = mysql_connect($db_server, $db_user, $db_passwd);
Never thought I'd see this pop on here :) As mentined before, Ikonboard is
in fact Perl and up until recently was only flatfile. Another you may want
to try is http://www.yabb.info (PHP/mySQL combo)
Jeff
- Original Message -
From: "Indera" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sen
Again, this works on some servers and othes not. Does IIS support this
particular function?
Jeff
- Original Message -
From: "Darren Gamble" <[EMAIL PROTECTED]>
To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, De
Sorry that was a typo, it is a period, I mistyped into the email. If it
cant resolve the name, what would cause that problem?
Jeff
- Original Message -
From: "Darren Gamble" <[EMAIL PROTECTED]>
To: "'Jeff Lewis'" <[EMAIL PROTECTED]>; <[EMAIL
I am using this line in part of my code but am getting an error that looks like below:
Code:
$serverDetails = @file("http://www.myserver,com/versions.php?l=$scripturl&v=$version";);
Error:
2: php_network_getaddresses: gethostbyname failed
(c:\inetpub\wwwroot\yabbse\Sources\Admin.php ln 43)
Wha
I'm pretty sure you can't. You would have to set up an area where they can
have their password reset and the new password emailed to their email
address.
Jeff
- Original Message -
From: "Dan McCullough" <[EMAIL PROTECTED]>
To: "PHP General List" <[EMAIL PROTECTED]>
Sent: Wednesday, Decem
I am prompting users for a number of days and then wanting to pull items from a
database older than the number of days. All dates are stored as timestamps in the
database so wondering how I can come up witht he required timestamp to compare with?
(for for example 30 days).
I have a difference
I have a file that contains settings and there are a lot of comments in
there and a lot of variables. An excerpt of the file looks like below. My
question is, is it possible to change only certain variables? For example,
I want to set just the db variables, is it possible for me to input the ne
I was typically using pconnect but then read that for very busy sites you
can reach the max threads for mySQL quickly. So on my new server I have a
couple of scripts and they are using mysql_connect.
I was under the impression that these disconnected after script execution
but when checking, the
I'm trying to port over some Perl to PHP and have come to a string of regular
expressions like this. There are probably 30 of them:
$message =~ s~\[color=([\w#]+)\](.*?)\[/color\]~$2~isg;
$message =~ s~\[black\](.*?)\[/black\]~$1~isg;
$message =~ s~\[white\](.*?)\[/white\]~$1~isg;
How can I ac
= floor($DIS / (60*60));
$DIS -= $hours * (60*60);
$mins = floor($DIS / 60);
$DIS -= $mins * 60;
$diffstr= "$days Days, $hours Hours, $mins Minutes, $secs Seconds";
return $days;
}
- Original Message -
From: "Jack Dempsey" <[EMAIL PROTECTED]>
To: "Jeff Lewi
I am storing a birthdate in my database as a Unix timestamp but when I
display it I want to calculate the different between that date and todays
date and display the persons age.
How can I do that with PHP?
I also want to know if it is currently their birthday. So trying to set
$isbday to yes i
I am wondering if there are any difference between using PHP and using the
command line for mySQL. Entering this at the comman line returns all the
membergroups properly. When I use this in my PHP program, it doesn't
continue past this line:
$request = mysql_query("SELECT membergroup FROM membe
I would think it's an HTML problem, try:
echo "";
or
echo '';
Jeff
- Original Message -
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 11:20 AM
Subject: [PHP] problem with image
> when i want to put an image like this (echo "";), my
> php is not
ce("//",${$tags[1]},$curline);
Jeff
- Original Message -
From: "Jason G." <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Saturday, November 17, 2001 7:02 AM
Subject: Re: [PHP] Question on variable variable
l Message -
From: "Christopher William Wesley" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Cc: "Jeff Lewis" <[EMAIL PROTECTED]>
Sent: Friday, November 16, 2001 10:38 PM
Subject: Re: [PHP] Question on variable variables
> On Fri, 16 Nov 2001, Jeff Lewis wrote:
&
I've a question regarding variable variable I was hoping someone could help me with:
All the examples in the manual have the entire variable name being variable e.g.
$a = "hello" and
$$a being the same as $hello
What I need to do, however, is append a variable portion to a constant prefix. So
, 2001 6:41 PM
Subject: Re: [PHP] Equivilant of exit;
> Hi Jeff,
>
> @ 6:26:28 PM on 11/16/2001, Jeff Lewis wrote:
>
> > Is there an equivilant to Perls exit function? I am calling a fatal
error
> > function in PHP and I want it to end the script, just want to end the
whole
> &
Is there an equivilant to Perls exit function? I am calling a fatal error
function in PHP and I want it to end the script, just want to end the whole
program if this is called.
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comm
Someone may have a better way but you can read each line (assuming the file
uses \n for a new record) and use:
arrayname = explode("|",$variable_holding_line_from_file);
Then you can do assign the variables as such:
$name = $arrayname[0]; etc
Could be a better way from the list :)
Jeff
-
I COULD be wrong but wasn't Kurt the guy who posted frequent questions like
this when he was starting off? :)
Jeff
- Original Message -
From: "Kurt Lieber" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 12, 2001 5:55 PM
Subject: Re: [PHP] using mail
> Did you RTFM?
>
I have this code in my program but I fail to find the error, does anyone see it after
a quick glance?
It's not really, but kind of, a PHP question. I mean it is being written in PHP :)
I am putting together a search feature for our classified ads and there are about 4000
each day. Now I am bulding a query to search by newspaper, date, and keywords. One
last thing is categories.
Curious how
I am assuming that all I need to change is the host/domain so that instead
of localhost it would be something else. Am I assuming right? So I could
have www.abc.com or the IP?
Jeff
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Jeff Lewis" <[EMAIL PROTECTED]>
Is it possible to have a script at xyz.com retrieve data from a mySQL database on
abc.com?
Jeff
I am taking a look at some software and am planning on using Zend Encoder to
distribute my product with but I am looking to have registration numbers.
Has anyone managed to set something up like this:
Person installs product and runs it the first time, this then queries a
website/database to mak
1 - 100 of 178 matches
Mail list logo