Two questions:
1) Is it possible to write an array to a file?
2) Is it possible to specify the name of the key to each item of an array
when you get the array using file().
Thanks a lot.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
7c0$404d5be0$059aa8c0@Pooch">news:001e01c1b7c0$404d5be0$059aa8c0@Pooch...
>
> ----- Original Message -
> From: "Clark" <[EMAIL PROTECTED]>
> Sent: Saturday, February 16, 2002 9:15 PM
>
>
> > Two questions:
> >
> > 1) Is it possible
e**";
}
Would this work? I am about to add a secind site to my site using an alias
in Apache. Example is http://www.mysite.com for first site and
http://www.mysite.com/2ndsite. Except I want everything for the second site
to be https. Make sense?
Thanks again,
Ron Clark
-Or
Thanks! Works perfect with double quotes!
RC
-Original Message-
From: Tom Rogers [mailto:[EMAIL PROTECTED]]
Sent: Thursday, December 12, 2002 8:21 AM
To: Ronald Clark
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] "include" question
Hi,
Friday, December 13, 2002, 12:07:05 AM,
Hi-
How can I control the decimal places returned by an arthimetic function?
I would like this divsion function to only return two decimal places
(rounded up).
$calcsize = $value / $oneGig;
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: htt
Hi-
I would like to open a connection to tcp port 25 (smtp) as a conditional in
a script (if succeeds to this, else to that).
I found the socket_create function that is listed as experimental and
requires a re-compile of php. Is there a built in way to perform this kind
of test?
Thanks in advanc
n message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Friday 13 December 2002 21:30, Max Clark wrote:
> I found the socket_create function that is listed as experimental and
> requires a re-compile of php. Is there a built in way to perform this kind
> of test?
Base
Hi-
I was wondering if someone could help me with a regex to test for a valid
domain name (foo.com).
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi-
Warning: socket_connect() unable to connect [60]: Operation timed out in
/usr/home/maxc/public_html/admin/functions.inc on line 66
Is there any way to time out this function? I only want to wait 5 seconds.
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsu
Hi-
I would like to do a pattern match against a string, sometimes this pattern
will include the full string, and sometimes it will not, if the pattern does
not include the second match I still want to get the first pattern match.
Below is my code, and the results I am looking for.
Thanks in adv
Hi-
I was wondering anyone out there is using the verisign payflo product with
php and could share their experiances with me.
Are there good alternate choices that I should be looking at?
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http:/
Hi-
I was wondering if php had a case function?
Instead of building a large if/elseif/else block I would like to do a case
$page in (list).
Thanks in advance,
Max
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
get programmers
thinking about security.
--
Ron Clark
System Administrator/Web Coordinator
Armstrong Atlantic State University
11935 Abercorn Street
Savannah, Ga 31419
Phone: 912 961 3234
Fax: 912 927 5353
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
Hello all,
I have a php script that reads a flat text file with fields seperated by a
space. I explode them into an array just fine, but when I try then to load
that array into a mysql database, it doesn't work. Here is my script:
for ($i=0; $i<$number_of_alerts; $i++) {
// Split each lin
;,'$line[7]', '$line[8]',
'$line[9]', '$line[10]', '$line[11]', '$line[12]')";
$results = mysql_query($IPFWsql) or die ("Could not execute query");
}
Again, any help with this issue is appreciated.
Thanks,
Ron Clark
I'm trying to insert the variable $hidden_manuf_id into a mysql_query()
statement.
If i do this:
mysql_query("DELETE FROM product WHERE manufacturer=$hidden_manuf_id",$bb)
or die(mysql_error());
PHP server doesn't see the variable because it is inside the string
quotes"".
If I do this:
mysql_que
Hello all,
I have a php script that reads all the files in a directory (pictures), the
outputs each picture as a link to be displayed in the main frame of the html
page. All of that works fine. I want to be able to "pretty up" the picture
out put by placing the picture into a html table so it is c
ECTED]
Sent: Sunday, August 31, 2003 11:20 AM
To: Ron Clark; [EMAIL PROTECTED]
Subject: Re: [PHP] XML to PHP help
hi Ron,
There's no way you can retrieve the php on a remote server (unless of
course they have a major security flow :-) )
Ron Clark wrote:
>Hello all,
>
>Does anyon
of a working
script and compare it to my own.
Thanks,
Ron Clark
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
>> I have a page with a Form and a Checkbox.
>>
>> I have a second page which wants to do something depending on if the
>> checkbox is selected or not.
>> If its selected there is no problem. But if I tryand do anything if
>> it isn't selected then it says the variable is 'undefined'. How can I
>
> $xyz = "Hello World";
>
> echo "";
>
> ?>
>
> The text box shows up with "Hello" NOT "Hello World". How do I get the
> entire variable?
I would try single quotes here.
$xyz = 'Hello World';
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hello Jason,
(JJ == "Jason Jacobs") [EMAIL PROTECTED] writes:
JJ> Does anyone know how I can sign into a site through a shell
JJ> (Telnet, FTP program, etc) with the PHP user?
$ ps aux | egrep '([w]ww|[n]obody)' | su `awk '{ print $1 }'`
or
$ which php | ls -l `awk '{ print $1 }'`
..And lo
Hello Sebastian,
(SS == "Sebastian Stadtlich") [EMAIL PROTECTED] writes:
SS> I switched my provider and now i often get this error message when
SS> using mysql from my php-skripts:
SS> "Warning: MySQL Connection Failed: Can't create a new
SS> thread (errno 11). If you are not out of available
Hello Murray,
(MS == "Murray Shields") [EMAIL PROTECTED] writes:
MS> I have written my first regex's, which are simply used for
MS> validation of input into a web form. Basically, they check to see
MS> if an invalid characters are being entered, and is working
MS> perfectly. A different regex
Hello PeterOblivion,
(Pac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes:
Pac> since im too busy to write my own script, does anyone know of a
Pac> FilePlanet (fileplanet.com) or Download.com type indexing script,
Pac> where when you click on a link it will take you to the details of
Pac> th
Hello Randy,
(R == "Randy") [EMAIL PROTECTED] writes:
R> How I think it SHOULD work is like DOS - First it looks at where
R> you say it is. If not there, it looks in the current directory.
Let's not forget Unix. ;-)
R> If not there, it looks in the directories in the path. I'm sure PHP
R> do
Hello Alexander,
(AW == "Alexander Wagner") [EMAIL PROTECTED] writes:
>> Mmmmfff... ultraedit's wordlist file still lacks the color of
>> allaire's homesite - it does detect which parts of the .php file
>> are HTML and what parts of the file are PHP code, and colours
>> syntax very well...
Hello James,
(JM == "James Mclean") [EMAIL PROTECTED] writes:
JM> i am having a problem with pages that use includes.
What is the extension of the document that you're placing include()
in?
JM> i am requiring the page like this
JM> require("./comment.php");
So us what is in comment.php
JM
Hello Maximiliano,
(MB == "Maximiliano Bubenick") [EMAIL PROTECTED] writes:
MB> I run linux red hat 6.2 with apache 1.3.12, php4 and mysql 3.22.32
MB> The first time my problem was Call to undefined function:
MB> mysql_connect(), and I add the line dl("mysql.so"); and then bring
MB> me:
Why
(BC == "Brian Clark") [EMAIL PROTECTED] writes:
BC> So us what is in comment.php
^^
Show
-Brian
--
There are two ways to write error-free programs,
and only the third one works.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL P
Hello Patrick,
(PD == "Patrick Dunford") [EMAIL PROTECTED] writes:
PD> I have this funny thing when running PHP 4 on Apache on Win95. If
PD> the script
PD> AddType application/x-tar .tgz
PD> AddType application/x-httpd-php3 .php3
PD> AddType application/x-httpd-php3-source .phps
(BC == "Brian Clark") [EMAIL PROTECTED] writes:
BC> Likewise, if you get into the habit of doing or ?> tandem, your worries will soon disappear.
P.S. a decent editor that has *good* syntax highlighting (Ie.
different schemes for HTML, JavaScript and PHP highlighting in t
Hello Miles,
(MT == "Miles Thompson") [EMAIL PROTECTED] writes:
MT> When I turn PHP on and off I tend to have "OOPS" scenarios, and
MT> have to go searching for the previous "?>" or " or ?> Miles
-Brian
--
Don't try to be like Jackie. There is only one Jackie.
Study computers instead. -- Ja
Hello Shane,
(SR == "Shane Reid") [EMAIL PROTECTED] writes:
SR> I reconfigured php with ./configure
SR> --with-mysql=/usr/local/etc/mysql
SR> --with-apxs=/usr/local/etc/apache/bin/apxs and apache will no
SR> longer start. I removed the path from the mysql to get the
SR> webserver back up but m
Hello Jon,
(JR == "Jon Rosenberg") [EMAIL PROTECTED] writes:
JR> I know this is kinda silly. but, if I have the following, will the
JR> file only be included when the case is matched or does require
JR> always bring in the file regarless?
That is *supposed* to be the way it works. That is *su
Hello Ian,
(IL == "Ian LeBlanc") [EMAIL PROTECTED] writes:
IL> Hey guys this one might be simple for ya..
IL> how do you get a exponent of a verable.. example...
http://www.php.net/manual/html/function.pow.html
-Brian
--
Logic: The systematic method of coming to
the wrong conclusion with c
Hello Randy,
(R == "Randy") [EMAIL PROTECTED] writes:
R> Thanks for the info Brian. But what about the path you have in the
R> include statement? IE: include "../path1/file.php"
R> Does it ignore the path? Try the path? Or just append that path to
R> the end of each path in the include_path?
(BC == "Brian Clark") [EMAIL PROTECTED] writes:
R>> Thanks for the info Brian. But what about the path you have in the
R>> include statement? IE: include "../path1/file.php"
R>> Does it ignore the path? Try the path? Or just append that path to
R>> t
Hello Alex,
(AB == "Alex Black") [EMAIL PROTECTED] writes:
AB> can people give me opinions as to why > From: [EMAIL PROTECTED] (Philip Olson)
>> Newsgroups: php.general
>> Date: 13 Jan 2001 12:18:08 -0800
>> Subject: Re: [PHP] Use >
>> My understanding is :
>>
>> 1. http://www.php.net/)
To u
Hello Jacky,
(Jl == "Jacky@lilst") [EMAIL PROTECTED] writes:
Jl> This may sound too easy to ask but I want ot make sure if I'm
Jl> correct. I have a form with date, month and year select fields in
Jl> it. When I submit, i want to tie those three fields value together
Jl> and insert into a fiel
Hello Herb,
(SOM == "SuiteNet Operations Manager") [EMAIL PROTECTED] writes:
SOM> I was wondering what Im sure a well knowledged php expert like
SOM> your self would recommend a hands on php crash course. The best
SOM> way for me to jump right in to understanding php and getting
SOM> started ma
Hello TOM,
(T == "TOM") [EMAIL PROTECTED] writes:
T> I would like to upgrade PHP3 to PHP4 on my Turbo Linux, does anyone
T> has experience on this?
Not specifically on Turbo Linux, but this may shed some light on the
subject:
http://www.php.net/version4/migration.php
T> enethk
-Brian
--
Hello Emiliano,
(EM == "Emiliano Marmonti") [EMAIL PROTECTED] writes:
EM> I have a little problem: Sometimes when you invokes some .php
EM> page, appears "could not redefine function...". It looks like a
Try:
-Brian
--
You may be recognized soon. Hide.
--
PHP General Mailing List (http
Hello Website4S,
(Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes:
Wac> Sorry this is off topic but I just can`t find anywhere with
Wac> reliable information to help me get my .htaccess working on my
Wac> server. I have followed many tutorials and none of them give me a
Wac> working passw
Hello Slappy,
(SS == "Slappy Smith") [EMAIL PROTECTED] writes:
SS> i am getting this message on top of one of my pages. i have read
SS> up on it and everyone says its a warning message but from the
SS> things ive seen online no one seems to know how to get rid of it.
Something along the lines
Hello Hendry,
(HS == "Hendry Sumilo") [EMAIL PROTECTED] writes:
HS> When User "A" enter ,the cookies will store User "A" name,when he
HS> enters the lecturer page,he will be directed to login page
HS> again(because he is not allowed to enter lecturer page) and so do
HS> User "B". BUT THE PROBL
Hello Dallas,
(DK == "Dallas Kropka") [EMAIL PROTECTED] writes:
DK> (Note: I know about using $HTTP_REFERER But how can I take that
DK> info and strip it, if that is what I need to do?)
I've never done this, but I think the basic idea would be to determine
what the query strings of each spide
Hello Robert,
(R == "Robert") [EMAIL PROTECTED] writes:
R> PHP 4.0.5.dev I installed it on my Windows 2000 Pro machine with
R> IIS and MySQL and it works like a champ I installed it on my
R> Windows NT Server with IIS and MSSQL and it will not read the
R> php.ini file I put it in the following
Hello Phil,
(PS == "Phil Scopes") [EMAIL PROTECTED] writes:
PS> I am trying to run PHP in Windows '95 with Apache server. I followed all
PS> the instructions in the installation doc, including editting the Apache and
PS> PHP configuration files, and putting the PHP.INI file in my Windows
PS>
Hello Wade,
(HWM == "H. Wade Minter") [EMAIL PROTECTED] writes:
HWM> So, can I change all of the pg_connect calls to pg_pconnect call
HWM> and have the pages use persistent connections, or is there
HWM> something more that needs to be done?
Yes. AFAIK.
-Brian
--
The trouble with a lot of self
Hello Hendry,
(HS == "Hendry Sumilo") [EMAIL PROTECTED] writes:
HS> Can someone tell me how to use Session Object because when the
HS> user login the page I want to store the login,pass,and type_login
HS> so that I can pass this throughout the process. I found that i can
HS> store that by usin
Hello Dallas,
(DK == "Dallas Kropka") [EMAIL PROTECTED] writes:
DK> Posted earlier but got no response so here it is again...
I gave you a quick explanation of one way to do it earlier, but I know
of no tutorials off the top of my head.
Here is a lengthy example if you _have_ to see code
Hello Hrishi,
(H == "Hrishi") [EMAIL PROTECTED] writes:
H> I need to know how to get apache to parse CGI output with the SSI
H> parser (the [php] script will have includes, which need to go
H> through mod_include). changing the mime-type to x-server-parsed or
H> anything hooked by mod_include
Hello MacBane,
(M == "MacBane") [EMAIL PROTECTED] writes:
M> I have some file upload code but it is not woking on debian linux,
M> could some one give me a hand
M> $the_path is set some where else
What is the value of $the_path?
M> $path = "/var/www/cms/gentext/$section/$doctype/";
This
Hello Rosen,
(R == "Rosen") [EMAIL PROTECTED] writes:
R> When I try to connect to MySQL server I get message "Can't connect
R> to MySQL server (10060 )!
Where's your code?
Are you using someone else's application?
Is mysqld even running? Is it /still/ running after you get that error?
Are
Hello Sean,
(SB == "Sean Brown") [EMAIL PROTECTED] writes:
SB> Does anyone have any suggestions on a good book for beginners. I
SB> currently own "PHP3 Programming Browser-Based Applications" by
SB> David Medinets. I have no regrets thus far on purchasing the book
SB> but it seems to leave a l
Hello Justin,
(JY == "Justin Yu") [EMAIL PROTECTED] writes:
JY> When I tried connecting to Postgres through a shell script that I
JY> wrote, I get the following error:
JY> "Fatal error: Call to undefined function: pg_connect()"
Because you don't have pgsql (PostgreSQL) support built into you
Hello Statbat,
(S == "Statbat") [EMAIL PROTECTED] writes:
S> 1. In my htdocs folder, I am able to access any file which is in
S> the htdocs folder but I am not able to access any file which in the
S> sub folder of htdocs. It says file not found. Lets suppose If I
S> have a test.php file in php
Hello goood,
(gg == "goood goood") [EMAIL PROTECTED] writes:
gg> I have an problem with PDFLib and PHP. I'm trying to include
gg> images in PDF file using pdf_open_image_file If in my source code
gg> is line:
gg> $o=pdf_open_image_file($pdf,"gif","pict.gif");
gg> i get the error: Cannot fi
Hello Wen,
(WNL == "Wen Ni Leong") [EMAIL PROTECTED] writes:
WNL> I would like to unsubscribe the mailing list for a week which is
WNL> effective from 20th of Jan 2001 to 28th of Jan 2001. I hope you
WNL> can automatic reactive me into the mailing list after the 28th of
WNL> Jan 2001.
--
PH
Hello Rahul,
(RB == "Rahul Bhide") [EMAIL PROTECTED] writes:
RB> Can you give me pointers(read urls) to "Good Sites" on tutorials
RB> or info from scratch on XML with PHP.
http://www.phpbuilder.com/columns/justin2428.php3
http://www.phpbuilder.com/columns/joe2907.php3
http://www.phpbu
Hello Rudy,
(RM == "Rudy McDaniel") [EMAIL PROTECTED] writes:
RM> Anyone have any ideas on how to make a function reset every
RM> 24-hours? For example, I have a function that grabs a random quote
RM> from a file and selects a new one every time the page is reloaded.
RM> What I want, however,
Hello Rosen,
(R == "Rosen") [EMAIL PROTECTED] writes:
R> When I connect via WEB based admin, there is no problems ! The
R> MySQL Server is remote. But when I install on my computer software
R> ( Artronoc Admin, DbTools ) I receive error "Can't connect to MySQL
R> server on host . (10060).
Hello Jero,
(J == "Jero") [EMAIL PROTECTED] writes:
J> checking for Apache module support via DSO through APXS... apxs:Error:
J> Sorry, no DSO support for Apache available
J> apxs:Error: under your platform. Make sure the Apache
J> apxs:Error: module mod_so is compiled into your server
J> apxs
Hello Piotr,
(PD == "Piotr Duszynski") [EMAIL PROTECTED] writes:
PD> Fatal error: Call to unsupported or undefined function
PD> dbase_open() in ...
PD> What's the problem?
You'll probably need to re./configure PHP with the --enable-dbase
option.
-Brian
--
PHP General Mailing List (http:
Hello Dominick,
(DV == "Dominick Vansevenant") [EMAIL PROTECTED] writes:
DV> I deleted all the records from the privileges tables (mysql database) and
DV> restarted the daemon.
http://www.mysql.com/documentation/mysql/bychapter/manual_Problems.html#Resetting_permissions
DV> Now off course I
Hello Karl,
(KJS == "Karl J. Stubsjoen") [EMAIL PROTECTED] writes:
KJS> How do I obtain the path of the local script? Or do I have to
KJS> build it from the $DOCUMENT_ROOT?
I think this is specific to Apache, but try $SCRIPT_FILENAME
-Brian
--
Syntactic sugar causes cancer of the semi-colons
Hello Brian,
(BVB == "Brian V Bonini") [EMAIL PROTECTED] writes:
BVB> That's what I thought, which seemed to be the obvious
BVB> however, when I tried that it returns an error.
BVB> "Warning: Variable passed to each() is not an array or object in pagetop.inc
BVB> on line 105"
array(
Hello david,
(dk == "david klein") [EMAIL PROTECTED] writes:
dk> Hello, Is there a way to upload files from the local PC/UNIX to the web
dk> sever? Especially multiple files at the same time? What we need to do at
dk> the server and client side?
Documents:
http://www.php.net/manual/en/ht
Hello Matt,
(MW == "Matt Williams") [EMAIL PROTECTED] writes:
MW> $query_string = split("+",$search);
$query_string = explode('+', $search);
-Brian
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTE
Hello Website4S,
(Wac == "[EMAIL PROTECTED]") [EMAIL PROTECTED] writes:
Wac> Can anyone tell me how to turn off the bottom scrollbar in both
Wac> IE and Netscape??
Check all of your table widths (use percentages or a width of around
550) and validate your HTML.
http://validator.w3.org/
Your
Hello Philip,
(PO == "Philip Olson") [EMAIL PROTECTED] forecasted:
PO> http://www.php.net/tips.php
PO> it will turn your browser into a search machine.
Even better, for people who use EditPlus (sorry, unsure about other
editors) you can do this with just one shortcut from within EditPlus
its
Hello Philip,
(PO == "Philip Olson") [EMAIL PROTECTED] ciphered:
PO> This is a good idea. I just played with it a bit and notice for it
PO> to work "properly" one must space out the function so (pretending
PO> that | is our cursor) :
Both examples work with my version of EditPlus (see below
(BC == "Brian Clark") [EMAIL PROTECTED] betokened:
BC> I'm using Beta 2.10a (I'm in the Beta program), but I'm not
BC> completely sure when this new feature was added (some where
BC> between 2.00 and 2.10a):
BC> If you go into settings and syntax for PHP
Hi Erick,
@ 12:22:39 AM on 3/3/2001, [EMAIL PROTECTED] wrote:
> i tried to look at "strip_tags" but then it only returns me:
http://www.php.net/manual/en/function.strip-tags.php
string strip_tags (string str [, string allowable_tags])
"Note: Allowable_tags was added in PHP 3.0.13, PHP4B3."
Hi Ned,
@ 9:27:57 AM on 3/3/2001, Ned Lilly wrote:
> Hi, I'm wondering if there's an ezmlm equivalent of the "lists-full"
> command for majordomo. That command returns data like the
> following (from the PostgreSQL list):
While not exactly what you wanted, this may provide some of those
stat
Hi Plutarck,
@ 11:37:09 AM on 4/14/2001, Plutarck wrote:
> I've heard much about how PHP is far more than just a language for
> web programming, and I agree. I agree enough that I would like to
> actually try it. I'd like to use PHP scripting in a C/C++ program
> that doesn't need a webserver as
Hi Steve,
@ 11:34:26 PM on 4/13/2001, Steve Werby wrote:
...
> echo <<
> Yes, echo can use here-docs! Is it really that *hard* to take 1 minute to
> test for yourself? ;-)
> And you can use whatever marker (the 'STOP' above and below) you choose.
> Just make sure you don't indent the closing
Hi davek,
@ 1:50:14 PM on 4/14/2001, davek wrote:
> Does anybody know how to fix this error? "Supplied argument is not a
> valid MS SQL-Link resource" I am running:
...
> $Conn=mssql_connect('192.168.1.20','username','password')
or die("Could not connect to the mssql server");
> $ThisConnect=
Hi Plutarck,
@ 2:11:35 PM on 4/14/2001, Plutarck wrote:
> Ah, even better. However, how would the script be passed to PHP? As
> a command line argument?
Install the CGI executable of PHP in c:\php
In your autoexec.bat:
SET PATH=c:\php;%PATH%
Reboot.
>From the command line:
php -q script.ph
Hi Ramiro,
@ 6:48:38 AM on 4/14/2001, Ramiro Radjiman wrote:
...
> I'm just wondering if there is a method to extract user specific
> info when this user connects to the site.
http://www.php.net/manual/nl/function.getenv.php
May be what you're looking for.
> U user must have a handle, but i d
@ 6:50:49 AM on 4/14/2001, news.php.net wrote:
> hello... anyone know where i can downlaod voteBOOTH.php w/ the image
> viewer?! or does anyone have it that you can send to me..?
I don't know anything about a poll type script with an image viewer,
but look around here:
http://www.hotscript
Hi James,
@ 6:44:08 AM on 4/14/2001, James Moore wrote:
...
> http://www.php.net/manual/en/function.strtoupper.php
> http://www.php.net/manual/en/function.strtolower.php
> http://www.php.net/manual/en/function.ucfirst.php
Another extremely useful one is ucwords()
http://www.php.net/manual/en/f
Hi Keyur,
@ 2:57:56 AM on 4/14/2001, Keyur Kalaria wrote:
...
> Can anyone suggest me how to avoid the fraud rating and fraud banner clicks.
> What all things we need to take care for the same etc.
Have a look at how those are implemented in phpAds and phpPolls:
http://www.phpwizard.net/
-Bri
Hi Les,
@ 2:09:01 PM on 4/14/2001, Les Neste wrote:
> I think the echo approach is pretty handy if you want a subroutine
> to spit out a common chunk of HTML which is less than an entire
> page. And the here-doc marker lets you just paste existing HTML in
> place without having to escape all the
Hi Plutarck,
@ 2:40:28 PM on 4/14/2001, Plutarck wrote:
> Ahh, so it's the location of the script that get's passed.
Yes:
% cat test.php
% php -q test.php a b c d e f g
0: test.php
1: a
2: b
3: c
4: d
5: e
6: f
7: g
%
> Now, if the script was coming from a program, is there a way to hand th
Hi David,
@ 3:06:19 PM on 4/14/2001, David Tandberg-Johansen wrote:
...
> The problem is:
> If a user leaves the site because the user doesn't want to go thrue with the
> order, or if the user closes the broser, then the recods of the selected
> info are still in the temp TABLE. How can I delete
Hi Chris,
@ 12:01:45 AM on 4/14/2001, Chris Anderson wrote:
> Am I missing something here?
This has been discussed many times. There was an extremely long thread
last year about XML, but I can't find it in the archives.
Here's a good start:
http://marc.theaimsgroup.com/?l=php-general&m=979691
Hi Chris,
@ 1:17:25 PM on 4/14/2001, Chris Anderson wrote:
...
> I stll think it sounds like its more geared for the MS crowd
No way.
"XML is a set of rules, guidelines, conventions, whatever you want to
call them, for designing text formats for such data, in a way that
produces files that are
Hi Chris,
@ 3:51:02 PM on 4/14/2001, Chris Anderson wrote:
> I realized that'll that I don't do much to help this community. I
> rarely reply to people's questions. Mainly because I have 56.6 and
> when I get mail people answered already. I also ask alot of
> questions. Just saying thanks for pu
Hi Mesut,
@ 6:19:04 PM on 4/14/2001, Mesut TUNGA wrote:
...
> Warning: MySQL Connection Failed: Can't initialize character set 30
> (path: default) in /home/user/public_html/createtable.php on line 2
http://www.mysql.com/doc/C/a/Cannot_initialize_character_set.html
-Brian
--
PGP is spoken h
Hi DRN,
@ 8:34:08 PM on 4/14/2001, DRN wrote:
...
> $date = $row["date"];
> $new_date = date("l, j M Y, G:i:s", strtotime($date));
> ~~
> but I cannot get this to work :(, I get an "unexpected error in
> date()"
...
Try this and see if it functions correctly:
Your original code gives me th
Hi Jeff,
@ 8:52:10 PM on 4/14/2001, Jeff Holzfaster wrote:
...
> My apologies if this is too wordy.
A little confusing, but here we go. If this makes no sense what so
ever, maybe someone else can provide a better way of doing what you're
describing here.
...
> I have a form page that looks lik
Hi Joseph,
@ 12:08:46 PM on 4/15/2001, Joseph Bannon wrote:
> What is the function to search a string? Basically, I want search a string
> (a url) to see if it has "www.yahoo.com" in it and if yes, tell the user
> their submission cannot be accepted.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Hi George,
@ 7:19:12 PM on 4/15/2001, george wrote:
...
> User-Agent: MT-NewsWatcher/3.1 (PPC)
> Subject: [PHP] test
> Just a test
Use news://alt.test next time, please.
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Please, DO NOT carbon copy me on list replies.
--
PHP General Mailing List (
Hi Fabian,
@ 11:47:22 PM on 4/14/2001, Fabian Fabela wrote:
...
> I have a page with a lot of data, all of this data is formated in
> that page to be printed, in a table with 500 px width, but how can I
> messure the length of the page with my results, for example a query
> can give me exactly t
Hi Lauri,
@ 11:55:51 AM on 4/15/2001, Lauri Vain wrote:
...
> I just finished reading a message from the server root and I have
> been told that the server I have to work with by our current project
> doesn't support GD and they can't install it neither.
> We will, however, need to create thumb
Hi jaxon,
@ 7:32:10 PM on 4/15/2001, jaxon wrote:
...
> I want to keep site structural info pulled from a database in an
> array, and store it in a flat file that can eliminate the database
> hit.
Then you'll be hitting the disk too (really, either way), but I doubt
that's going to speed it up
Hi Bob,
@ 2:40:21 PM on 4/15/2001, Bob Clingan wrote:
> What to I need to do/configure in order for PHP 4 to be able to
> connect to Access and/or SQL Server databases?
http://www.php.net/manual/en/install.configure.php#install.configure.databases
-Brian
--
PGP is spoken here: 0xE4D0C7C8
Ple
Hi Tobias,
@ 7:01:41 PM on 4/15/2001, Tobias Talltorp wrote:
...
> I tried this... Didn't work:
> session_start();
> session_unregister("array[one]");
?>>
Why not save the values to a temp variable, destroy the session, unset
the value you want to unset, then register it again?
-Brian
--
PGP
1 - 100 of 599 matches
Mail list logo