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]
Sent:
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);
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 PROTECTED]; [EMAIL PROTECTED]
Sent: Sunday
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:
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 -
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
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
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
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, March 05, 2002 2:51 PM
Subject: [PHP
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 stuff, I saw
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
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: [EMAIL
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: [PHP]
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/)
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
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
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]
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
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.
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
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.
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
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 PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Tuesday
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
-Original Message-
From: Craig Donnelly [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 25, 2002 9:05 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Re: Sessions not staying a session...
You should use session_start(); on every page that u want to pass session
information..
Craig
Jeff Lewis
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
: 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 am working on an odler script which loads up in index.php and a URL
is
passed usually like index.php?s=something
Now
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
rich :-( )
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, April
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
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
Subject: Re:
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
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
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:
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
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,
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 PROTECTED]
Sent: Thursday, May 30, 2002 8:20 PM
Subject: RE: [PHP
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 opening '' for inclusion...
Do you have an auto-prepend file? If so, maybe
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
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)
country
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:
upc|genre|distributor|details
Where is this info coming from?
What I
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]
Sent:
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 PROTECTED]
Sent: Tuesday, August 20, 2002 12:53 PM
Subject
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
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] Problem with mysql_query
mysql_query
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
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
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:
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: [PHP] Verify phone format?
The problem you have
Is it possible to have a script at xyz.com retrieve data from a mySQL database on
abc.com?
Jeff
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]
Cc: [EMAIL PROTECTED]
Sent
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 have this code in my program but I fail to find the error, does anyone see it after
a quick glance?
?php
if ($action == save_filter) {
$fh = fopen (./filters.data.php, r+b) or die (couldnt open);
$file = fread($fh, filesize(./filters.data.php));
$file = stripslashes($file);
$array =
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
-
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
program if this is called.
Maybe I'm missing something, but.. :-) PHP has
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
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:
What I need to do, however, is append a variable
(/yabb\s+$tags[1]/,${$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 variables
It seems to me that the use of a temp variable
I would think it's an HTML problem, try:
echo img src=\image.gif\;
or
echo 'img src=image.gif';
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
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
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
= 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 Lewis [EMAIL PROTECTED]; PHP is not a drug
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\]~font color=$1$2/font~isg;
$message =~ s~\[black\](.*?)\[/black\]~font color=00$1/font~isg;
$message =~
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,
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
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
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, December 05,
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=$scripturlv=$version;);
Error:
2: php_network_getaddresses: gethostbyname failed
(c:\inetpub\wwwroot\yabbse\Sources\Admin.php ln 43)
What
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 PROTECTED]
Sent: Monday, December 10, 2001 3:19 PM
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, December 10, 2001 3:32 PM
Subject: RE: [PHP] Using @file
No need to get nasty :) Keep the list friendly, it's better that way ;)
Jeff
- Original Message -
From: B. van Ouwerkerk [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, July 30, 2001 8:53 AM
Subject: Re: [PHP] Need for dox...
I didn't know the http://www.phpbuilder.com/
I have a mySQL database holding baseball stats and I want to calculate
rankings on these players. Now I'd obviously want this to be as fast as
possible since I go through about 600 players but where is it best to make
them? In the SQL command itself or in PHP?
players need to have at least 100
Remove the quotes around $uid
Jeff
- Original Message -
From: Jeremy Morano [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, July 31, 2001 11:09 AM
Subject: [PHP] whats wrong?
Anythig visibly wrong with this?
FORM METHOD=post ACTION=userinfolistbycompany2.php
INPUT
It's not the first time and I've mentioned it before. I in fact just
emailed all those off list from that thread.
One reason why PHP has lured many in is it's ease of use and it's FRIENDLY
user community.
Sure some people come on here and ask simple questions, maybe ones that
can be found in
I'd be happy to host one but I imagine there is one already for the list?
Jeff
-Original Message-
From: mike cullerton [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 31, 2001 3:08 PM
To: php
Subject: Re: [PHP] Attitude of B van Ouwerkerk
on 7/31/01 12:37 PM, scott [gts] at
Ok, I have to admit, that made me laugh out loud here in the office :)
Jeff
- Original Message -
From: scott [gts] [EMAIL PROTECTED]
To: php [EMAIL PROTECTED]
Sent: Thursday, August 02, 2001 1:05 PM
Subject: RE: [PHP] Oh and one more thing
it's a little bit complicated, but here goes.
Try this SQL Justin:
$sql = SELECT * FROM news DESC LIMIT 5;
Jeff
-Original Message-
From: Justin French [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 04, 2001 5:52 AM
To: php
Subject: [PHP] most recent 5 rows
Hi all,
I have a table with the column id, which is a
Gerard,
Try using:
unset($Age);
Jeff
-Original Message-
From: Gerard Samuel [mailto:[EMAIL PROTECTED]]
Sent: Saturday, August 04, 2001 1:34 AM
To: PHP
Subject: [PHP] How to destroy a $variable
Ok I have a form with a $PHP_SELF target, and I enter parts of the form
when
]
Cc: php
Subject: Re: [PHP] most recent 5 rows
Jeff Lewis wrote:
Try this SQL Justin:
$sql = SELECT * FROM news DESC LIMIT 5;
Hrm,
Won't that retrieve the FIRST 5 rows, not the LAST 5?
Justin French
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail
Sorry, forgot the ORDER BY, here is what you're looking for:
$sql = SELECT * FROM news ORDER BY id DESC LIMIT 5;
In a list of numbers up to 10, this would return rows 6,7,8,9, and 10.
Jeff
www.hyrum.net
www.xnull.com
-Original Message-
From: Jeff Lewis [mailto:[EMAIL PROTECTED
employer, a HUGE media/newspaper in Ontario goes with strictly Java.
Is it that people still are hesitant to go wth open source based technology?
Jeff Lewis
Yes I had wondered if someone was going to make that claim :)
So far I haven't seen much in perl or Java that I CAN'T do in PHP. The user
community is much more helpful, the PHP manual online is IMO simply amazing.
I love that guide :)
I just rarely see any jobs posted for PHP. Mostly ASP and
With 4.04 I had PNG working fine and could create images in a cron job I was running.
When we upgraded to 4.06 we seemed to have lost the ability. While calling my PHP
file up in the browser, it creates the image but my cron job keeps failing with this
error:
ImageCreateFromPng: No PNG
Try the following:
phpBB: http://www.phpbb.com/
Phorum: http://phorum.org/
Jeff Lewis
- Original Message -
From: Emiliano Marmonti [EMAIL PROTECTED]
To: Lista PHP [EMAIL PROTECTED]
Sent: Wednesday, August 22, 2001 4:26 AM
Subject: [PHP] Urgent!!! Forum code
Anybody knows a good free
John,
Try this:
TABLE
?php
$query = SELECT image_link, web_url FROM testdata;
$result = mysql_query ($query) or die (Query Failed);
while ($row = mysql_fetch_object ($result))
{
printf (trTD.$row-image_links.br.$row-web_url./TD
TD.$row-image_link.br.$row-web_url./tr\n);
}
?
/TABLE
-
,
John Bass
From: Jeff Lewis [EMAIL PROTECTED]
Reply-To: Jeff Lewis [EMAIL PROTECTED]
To: John Bass [EMAIL PROTECTED], [EMAIL PROTECTED]
Subject: Re: [PHP] Need help to create HTML table with 2 columns.
Date: Thu, 23 Aug 2001 10:41:08 -0400
John,
Try this:
TABLE
?php
$query = SELECT
I have a form where users can enter a link (kind of a free for al links type of thing)
When they add their site to the database a 0 is added to the approved field.
When I load an admin script I can check all of the ones that have a 0 in that field.
I want to have checkboxes form down the
I actually had a talk with my boss today...
We discussed different technologies and why we chose them. The reasons we
chose Java/JSP/J2EE etc:
1) Scalability (number 1 reason)
2) Different projects like EJB etc
I had been talking about PHP a lot and he says he likes it to but...
Jeff
Has anyone come up with an abstraction layer that would allow the users of
their software to select either flat file or mySQL?
If so, is it downloadable somewhere or does anyone know or have any kind of
tips? :)
Jeff
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail:
I would't say that. he says it's modular and easier to code in OOP.
Jeff
-Original Message-
From: Dave [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 24, 2001 6:15 PM
To: [EMAIL PROTECTED]; Michael Kimsal
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] The future of PHP
He also
Guys, why isn't this working? :)
SELECT * FROM links WHERE name LIKE %te% OR description LIKE %te% OR url LIKE
%te% AND approved=1 LIMIT 5
I am using a PHP script to add items to the database and a small search file to grab
them. Thing is, I want the above to grab ONLY ones that have
$file_size = filesize(FILENAME);
if ($file_size = 1073741824) {
$file_size = round($file_size / 1073741824 * 100) / 100 . g;
} elseif ($file_size = 1048576) {
$file_size = round($file_size / 1048576 * 100) / 100 . m;
} elseif ($file_size = 1024) {
$file_size = round($file_size / 1024 * 100) / 100
I was sitting here at work (working of course!) thinking about how some sites are
blocked etc from viewing... Is it possible with PHP to do something like this:
Have a page where I can create kind of a middle man. I mean the PHP can be hosted on
my server, it goes to the site I'd want to
In your query add ORDER BY field name like date or ID DESC.
That way it will put them in descending order and I do believe that is what
you're looking for :)
Jeff
- Original Message -
From: Tarrant Costelloe [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, August 29, 2001 10:55
Damn, I wish I had read that thre was this event in Toronto, I would have
liked to attend! :)
- Linux User Group in Toronto, Canada
I agree, suggestion and constructive criticism are fine but lets not start
attacking the guys who have put in countless hours to make PHP what it is
today. I'm
I have a query that is pulling information from two tables, can I pull from
others as well?
SELECT
r.resumeID,r.userID,r.skills,r.dateAdded,u.firstName,u.lastName,u.city,
u.province FROM resumes r,resumeHolders u WHERE r.userID=u.userID AND
u.city='Kitchener'
I want to be able to pull the
I am using mySQL with all of my stuff but a friend who started writing some files for
our online baseball league was using Access as his database. We tried running it on
my server but it returns an error that says undefined function odbc_connect.
Now my questions, can I get this to work on a
I want to open a particular directory that stores images and I want the images to be
added to drop down box, was wondering if someone could help me with some code for
that. I want to set it up this way so that people can just upload images there and
they would be available on each load of the
I needed this recently as well and found some converters right here:
http://www.mysql.com/documentation/mysql/bychapter/manual_Contrib.html#SEC60
7
They usually are run from within the MDB macros but it helped me convert my
database over :)
Jeff
- Original Message -
From: Rogerio
I have a lot of scripts written in perl here and have been using PHP a lot now. I am
wondering if PHPs regexps are powerful or not. I will show a small section of this
code below that I clean up witht he perl scripts. It cleans it almost right up but
take a look :) And YES there is
1 - 100 of 170 matches
Mail list logo