Alex Shi wrote:
> Is there a good way do drop an element from an array?
Unset (http://www.php.net/unset) the element and it will be removed from
the array.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Kurth Bemis (List Monkey) wrote:
> what the hell i wrong in this query?
>
> $q = "UPDATE userpref WHERE username='kurth' AND
> preference=required_hits SET preference=$HTTP_POST_VARS[required_hits]";
>
> mysql_error() returns this...You have an error in your SQL syntax near
> 'WHERE username='k
Omar Campos wrote:
> I get the next warning:
> Warning: mysql_num_rows(): supplied argument is not a valid MySQL result
> resource in /home/olimpiad/public_html/base/alta1.php on line 34
This usually means that the SQL query failed. You can check the value
returned by mysql_query to see if this
Muhammad Khairuzzaman wrote:
> Yes, done that too.
Have you checked that you don't have method limits in your httpd.conf?
That would be my first guess re: the POST issue.
Have you checked your register_globals setting in php.ini? That would be
my first guess re: the GET variables issue.
--
S
On Wednesday, June 5, 2002 at 1:57:09 PM, you wrote:
> // the error is bieng caused here
> $size = int filesize($file)
You don't need the int and you were missing a semicolon...
$size = filesize($file);
--
Stuart
--
PHP General Mailing List (http://www.php.ne
On Friday, June 7, 2002 at 7:08:00 PM, you wrote:
> Lines 29, 30, and 31
> //29
> $headers = $from . "\r\n" . $bcc . "\r\n"
> //30 - The Next Line is where I'm getting the parse Error at:
> mail ($to, $setting_site_name, $mailpost, $headers) or $emailsuccess
> ="Failure sending email.";
> //31
>
On Friday, June 7, 2002 at 10:23:08 PM, you wrote:
> Hmm... you could always do something like:
> $t = ereg_replace(" < ", " < ", $t);
> $t = ereg_replace(" > ", " > ", $t);
> $nt = strip_tags($t);
> $nt = ereg_replace(" < ", " < ", $nt);
> $nt = ereg_replace(" > ", " > ", $nt);
> maybe?
Tha
On Friday, June 7, 2002 at 10:30:59 PM, I wrote:
> < /SCRIPT>
There should be another space here...
< /SCRIPT >
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Friday, June 7, 2002 at 11:00:48 PM, you wrote:
> It sure would :) But if you're going to have HTML such as:
> < valid_tag > blah blah < this isn't a tag > < /valid_tag >
> then you've got problems no matter what you do :)
My bad. I thought that would be valid HTML, but I just checked and
On Friday, June 7, 2002 at 11:00:24 PM, you wrote:
> I don't have an answer, but I'm impressed that you're able to get
> 144,000,000 hits a day - on par with Yahoo which was previously considered
> the runaway leader in web traffic volume. That must be some pretty amazing
> porn.
I'm more amaz
On Saturday, June 8, 2002 at 1:56:35 AM, you wrote:
> I recently installed PHP 4.2.1 on my G4 Powerbook (OS X v10.1.4) running
> Apache 1.3.2. I have verified that php is running and apache is running.
> When I access a page locally http://127.0.0.1/simple_form.php, fill in the
> only text box an
On Saturday, June 8, 2002 at 2:22:02 AM, you wrote:
> I just read the release notes and do not believe they are referring to my
> dilemma.
Actually, I think they point out the exact reason for your 'dilemma'.
> Here is the code I am using. Just a basic form
> <>
> if ($phrase){ echo "Phrase--
On Saturday, June 8, 2002 at 3:04:30 AM, you wrote:
> I am using Netscape 7 preview release. When I go to www.php.net, it
> displays the php logo in the address bar. Does anyone know how this is
> done?
If I'm not mistaken, it's a favicon.ico file. See http://www.favicon.com/ for
full info.
On Saturday, June 8, 2002 at 3:23:01 PM, you wrote:
> Is there another way to read the files from a directory?
http://www.php.net/readdir
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Monday, June 10, 2002, 5:07:48 PM, you wrote:
> Does anyone have or know of a function that will take an array and
> do array_reverse() recursively? I have the following array/structure:
Something like this (UNTESTED!!)...
function recursive_array_reverse($arr)
{
foreach ($arr as $key =>
Monday, June 10, 2002, 5:12:50 PM, you wrote:
> Monday, June 10, 2002, 5:07:48 PM, you wrote:
>> Does anyone have or know of a function that will take an array and
>> do array_reverse() recursively? I have the following array/structure:
> Something like this (UNTESTED!!)...
> function recurs
On Monday, June 10, 2002 at 8:03:40 PM, you wrote:
> header("Location:http://www.mysite.com/file_exists.php";);
You should have a space after Location:...
header("Location: http://www.mysite.com/file_exists.php";);
If that's not it, please post the error/what happens. We are not mind readers.
On Tuesday, June 11, 2002 at 10:25:36 PM, you wrote:
> I would like to know wether it's possible to put an array into a database?
> If not, what is the best way to archieve something like that?
Yes it is. See http://www.php.net/serialize
--
Stuart
--
PHP General Mailing List (http://www.php.
On Tuesday, June 11, 2002 at 10:59:00 PM, you wrote:
> So this would handle 2-demensional arrays too?
> So, if I have
> $array = (
> "foo" => "bar",
> "wom" => "bat"
> );
(erm, i know it's late, but that looks like a 1-dimensional associative array)
> it would work?
As far as I k
On Tuesday, June 11, 2002 at 10:59:13 PM, you wrote:
> I Have worked out this, but when $menu is not set it does the foreach
> function anyway, and desplays an error.
> What Can I do to stop the foreach function from working if $menu is not
> set??
http://www.php.net/isset
--
Stuart
--
PHP
On Wednesday, June 12, 2002 at 5:48:02 AM, you wrote:
> An 'exit' directive had secretly sneaked into the script! which caused ns to
> abort the rest of the script (as it should) while ie blissfully ignored
> it(??). Anyway it all works now. Thanks again.
Just thought I'd point out an error in y
On Wednesday, June 12, 2002 at 7:18:18 AM, you wrote:
> And how should I store a serialized variable in my database? As String or as
> Blob?
Since serialize returns a string, I would guess that you store it in a
mongoose. Sorry for the sarcasm, but it's getting late and that info is on the
manual
Thursday, June 13, 2002, 1:37:03 AM, you wrote:
> Until the recent version of PHP i've enjoyed being able to pass variables as
> name/value pairs within my URL. this has been essential for accessing my
> mysql database. here is an example of a url.
Why can't you continue to enjoy it?
> getAd.
On Thursday, June 13, 2002, 1:22:07 PM, Stephen Brewster wrote:
> HTML
>
>
>
>
>
>
>
>
>
> PHP
> ---
> if($type == 'LOOP') {
>$sql = 'SELECT * FROM products';
>$result = mysql_query($sql, $db);
>$record = $mysql_fetch_array($result, MYSQL_ASSOC);
Thursday, June 13, 2002, 2:09:23 PM, you wrote:
> I don't think so. The difference is (IMHO + the article linked below) if
> you use
> ...Foo... (faster)
> or
> Foo..."; ?> (slower)
Actually, Brian is right. PHP parses text contained within "s whereas it
doesn't do so with text contained within
On Thursday, June 13, 2002, 2:20:29 PM, you wrote:
> I'm quite sure that this won't work...
> The server isn't delivering the php source, so the client
> will not get the source code but only the resulting code
> the script generated.
> So IMHO this is a "hoax".
Unless your server has phps (sour
On Thursday, June 13, 2002, 2:49:56 PM, you wrote:
>> > I'm quite sure that this won't work...
>> > The server isn't delivering the php source, so the client
>> > will not get the source code but only the resulting code
>> > the script generated.
>> > So IMHO this is a "hoax".
>>
>> Unless your
On Thursday, June 13, 2002, 2:59:35 PM, you wrote:
> yes the bad guy says it only happen in opera
> i ask to show me how but give no response until now
Let us know what he says. I think we'd all be interested.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit
On Thursday, June 13, 2002, 4:36:29 PM, you wrote:
> Why $HTTP_USER_AGENT don't work?? I can't get it's value, but in phpinfo the
> value appears. why this???
Try $_SERVER['HTTP_USER_AGENT']. If that works, read
http://www.php.net/manual/en/language.variables.predefined.php.
--
Stuart
--
PHP
On Thursday, June 13, 2002, 5:00:23 PM, you wrote:
> In other words.. Can PHP serve as the Web Server or is another web server
> required to handle the socket connections, etc.?
PHP can serve as a web server, but you would need to write (find) the code to
do it - I'm sure there is plenty out ther
On Thursday, June 13, 2002 at 5:18:31 PM, you wrote:
> Would that work?
> Surley it'd not be a particularly efficiant webserver if written in PHP?
> Would be interesting to try.. I had a quick look for such code but could'nt see
>any... perhaps a PHP-GTK app could work I suppose... if you were
On Thursday, June 13, 2002 at 6:10:35 PM, you wrote:
> If I have a site that stores information about people in a database,
> including e-mail addresses, and that information is only viewable when
> called via a user-specific variable, i.e. their alias, can spambots
> still harvest those e-mail
On Thursday, June 13, 2002 at 6:24:17 PM, you wrote:
> Analysis & Solutions wrote:
>> If you don't need the address to be hyperlinkable, you can put the user, @
>> and domain in different table cells. Or even put each letter in a
>> separate cell. Could even set the border, cellspacing and cellp
On Thursday, June 13, 2002 at 6:30:11 PM, you wrote:
> So basically, to keep the address away from bots, keep it away from
> normal users. Okay, so something like this would be more effective:
> Have a form with a hidden input of the user's alias, and an input of "E-
> mail me!", that form posts
On Thursday, June 13, 2002 at 6:38:10 PM, you wrote:
> I have a example.html
> ---
>
> function add()
> {
> var res=0;
> for(x=0;x<3;x++)res=res+parseFloat(example.text[x].value);
> example.result.value=res;
> }
>
>
>
>
>
>
>
>
>
>
>
> -
On Thursday, June 13, 2002 at 7:44:39 PM, you wrote:
> Yes, here is the checkout code I used...
> function chout(){
> session_destroy();
> unset ($mycart);
> unset ($cart_items);
> echo "Thank you for shopping!";
>
On Thursday, June 13, 2002 at 7:54:30 PM, Phil Schwarzmann wrote:
> I know that PHP on Windows has some limitations as compared to Linux.
> What are these limitations?
There are limitations? Where did you hear this? If there are any I haven't come
across them yet.
> Which version of Windows woul
On Thursday, June 13, 2002 at 9:46:10 PM, you wrote:
> First, I load Doc 1 (to set the session variable).
> Then I load Doc 2 to retrieve the variable. When doc 2 runs, I get the
> following:
>
>-
On Thursday, June 13, 2002 at 10:04:05 PM, you wrote:
> I just tried adding session_start() to the beginning of both files. When I
> load Doc 1, I get this warning twice(!):
> Warning: Cannot send session cache limiter - headers already sent (output
> started at c:\program files\apache group\a
On Thursday, June 13, 2002 at 10:32:25 PM, you wrote:
> Thanks to Julie and Stuart for helping me.
> With your direction, I got rid of the warning about the headers by putting
> the session_start() at the beginning of the file.
> Now I get a different sort of error when I try to retrive the se
On Thursday, June 13, 2002 at 10:39:51 PM, you wrote:
> if /path/to/image/cache/$id exists then
>just spit that file back to the browser and exit
If you're gonna do this, be sure to check that $id doesn't contain something
dangerous such as '../../../../../../../../../../../../../../../etc/pa
On Thursday, June 13, 2002 at 11:07:16 PM, you wrote:
> I've stripped the code down to barest bones to try to figure this out:
> [getglobal.php]
> ...
> echo "Node is {$_SESSION['node']}.";
> ...
> [session.php]
> ...
> $_SESSION['node'] = "10.2";
> ...
> Other than the standard html, head, tit
On Friday, June 14, 2002, 9:13:59 AM, Brian McGarvie wrote:
> How does IIS fair against Apache with servring multiple sites? each site will be
>like... http://customername.ourdomain.co.uk
Both are capable of serving multiple sites without any issues that I am aware
of.
> Also - more an IIS/Apac
On Friday, June 14, 2002, 11:51:22 AM, SenthilVelavan wrote:
> How to increase the time out time.Whether we have to edit the httpd.conf or
> php.ini file to increase the
> time out time.
Per script: http://www.php.net/set_time_limit
In PHP.ini: http://www.php.net/manual/en/configuration.php#ini.m
On Friday, June 14, 2002, 11:07:24 AM, Brian McGarvie wrote:
> Basically then there is no real reason for Apache over IIS on win2k server?
Not now Apache 2 is here. Apache 1.x has always been considered by the Apache
group as beta code and therefore not suitable for use in a production
environmen
On Friday, June 14, 2002 at 11:30:07 PM, Bruce Karstedt wrote:
> Put your site on a *nix box with apache its a heck of a lot faster
> and a heck of a lot more stable and a heck of a lot easier to configure and
> upgrade.
It's all very well saying that, but have you got any evidence to back those
On Saturday, June 15, 2002 at 12:53:47 AM, Zlutarch G. wrote:
> The session ID is the same for a given session, that means the server knows
> its the same session. And since I get the value "1" each time, I can see
> that the $_SESSION["var"] is a global variable with a value of "1". But it
> se
On Friday, June 14, 2002 at 10:01:24 PM, Sridhar Moparthy wrote:
> Does any one know how to make mail() function to send mail to 'CC' and 'BCC'
> address. I have tried to keep 'CC' and BCC' in header, but it is not
> working. Mail function is sending the message to 'To' address but not to
> 'CC' a
On Saturday, June 15, 2002 at 1:27:58 AM, Zlutarch G. wrote:
> I tried your idea but it didn't work. When I used session_encode(), I got
> nothing! It seems that it's not being registered as a session variable. Any
> idea why that is the case?
I hope this will help clear up any confusion.
Go he
On Saturday, June 15, 2002 at 1:42:45 AM, Zlutarch G. wrote:
> I tried your script, but I couldn't get it to work. I guess it has to be
> something wrong with my server configuration? I am using Apache 1.3.14. I am
> new to Apache, so I don't know what could possibly be the configuration
> probl
On Saturday, June 15, 2002 at 2:05:50 AM, Zlutarch G. wrote:
> Thanks. I added error_reporting (E_ALL); and it gave me the following error
> msg: "Warning: Undefined index: var in c:\program files\apache
> group\apache\htdocs\php\superstock\ssi\valuecalc\valuescreen\testsess.php on
> line 6"
>
On Saturday, June 15, 2002 at 3:48:03 AM, you wrote:
> An opinion was requested, and I gave it.
And everyone is entitled to an opinion, but what you gave was the typical "down
with windows" response when you clearly have not evidence to back it up.
> I will make a few pointed comments and then I
On Saturday, June 15, 2002 at 10:52:14 AM, Kim Bauters wrote:
> In the file php.ini, the 2 timeout settings are
> both changed from 30 to 300, but I keep on getting an error like "CGI script
> Timeout".
I think you'll find that's the IIS CGI timeout, not PHPs. You can find that
setting in the sit
On Saturday, June 15, 2002 at 11:43:05 AM, Kim Bauters wrote:
> indeed, it is a IIS CGI timeout. However, when I take a look at the tab you
> gave me, I can only seem to find the tabs called "App Mappings", "App
> Options" and "App Debugging". Is this the right place and is the tab just
> missing
On Saturday, June 15, 2002 at 3:34:06 PM, Chris Garaffa wrote:
> If I recall correctly, PHP 4.x doesn't work with Apache 2
There is a module specifically for Apache 2 in PHP 4.2.0 onwards. I'm not sure
what error using the module for Apache 1.3.x would produce. This could be the
problem. The Apac
On Saturday, June 15, 2002 at 11:58:44 AM, Kim Bauters wrote:
> My IIS version is 5.0
Hmm, same as mine. Have a look in the master properties of the server. If it's
not there then I suggest you search the MS site for help.
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubs
On Saturday, June 15, 2002 at 9:05:40 PM, Nathan Taylor wrote:
> $open = fopen("file.txt","r+");
> while($contents = fgets($open)) {
> $line_array[$x] = $contents;
> $x++;
> }
?>>
This wheel exists: http://www.php.net/file
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To
On Tuesday, June 18, 2002, 2:54:31 PM, Dan McCullough wrote:
> I need to strip out the double quotes and replace it with single quotes.
> Any help would be appreciated.
$dest = str_replace("\"", "'", $source);
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On Friday, June 21, 2002, 3:14:17 PM, you wrote:
> i am facing the above issue. i set the headers up for the mail(). tried
> submitting the email. it worked great on linux server. but when i try to
> run it on a win2k. i just get:
> Warning: Server Error in blahblah.php on line blahblah
> my pi
On Friday, June 21, 2002, 4:01:44 PM, Lance wrote:
> i tried that. using different email addresses. all of them are valid.
> still getting the same error. however, when i change the "Cc" to "cc",
> no error was thrown. but only the To: will receive the email. the Cc:
> never get the mail.
> any
On Friday, June 21, 2002, 4:40:00 PM, Lance wrote:
> yes, and it did show me whats wrong. but i have no idea why is that the
> case...
> 127.0.0.1 SMTPSVC1 RCPT - +TO:<[EMAIL PROTECTED]> 250
> 127.0.0.1 SMTPSVC1 RCPT - +TO: 501
> i don't understand why the Cc is been treated as a recipient in TO
On Monday, June 24, 2002, 3:46:02 AM, "èdy kurniawan" wrote:
> The manual doesn't show how we can execute kind of oracle store procedure ..
I know nothing about using Oracle from PHP, but a quick search on Google
revealed the following: http://www.phpworld.com/manual/ref.oci8.html - example
2 sho
On Saturday, June 29, 2002 at 10:03:16 PM, Chase wrote:
> I am *very* new to PHP, so this may seem like a stupid question... I am
> trying to generate dynamic drop-down lists for use in an HTML form, but
> I have done something wrong with my code. Instead of getting one list
> box with three o
On Wednesday, July 3, 2002, 1:47:05 PM, "Adrian Murphy" wrote:
> whats wrong with this.
> it's getting stuck somewhere
"Somewhere" isn't very helpful. When asking for help be sure to include as much
information as possilble.
Laying out your code so the structure can be seen...
http://";, strtol
On Wednesday, July 3, 2002, 4:12:02 PM, Analysis & Solutions wrote:
> 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 internatio
On Saturday, July 6, 2002 at 5:35:26 PM, "BrettM" wrote:
> I wanna be able to do some stuff, which involves getting data from my phpBB
> board.
> Member Count: (this section should autoupdate)
> Number Of Forums: (this section should autoupdate)
> Highest Post Count: (this section shouldauto upd
On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
> I just found a site where they have integrated a usenet forum into their own
> forum. I am wondering how this is technicaly done? The postings seem to be
> pretty up to date ( I did compare them with the usenet ones)
> Here is the link:
> http:
On Monday, July 15, 2002, 2:42:24 PM, Stuart Dallas wrote:
> On Monday, July 15, 2002, 1:55:44 PM, "Andy" wrote:
>> Has anybody an idea how they do this.
It would be relatively straight-forward to have a PHP script run periodically,
read from an NNTP server and add new p
Please don't contact me privately unless you want to hire me.
On Monday, July 15, 2002, 5:13:35 PM, "andy" wrote:
> ok sounds logical. Don't have any experiance on doing anything nntp related
> in php.
>
> There are some questions I am wondering about:
>
> - do I have to compile php with a specia
On Monday, July 15, 2002, 6:00:44 PM, I wrote:
> You can do it 2 ways: either using the sockets or with the IMAP functions. I'm
> not too sure about sockets, but the IMAP function require the IMAP module to be
> loaded.
D'oh, forgot the link: http://www.php.net/manual/en/ref.imap.php
--
Stuart
On Monday, July 15, 2002, 6:49:06 PM, Leif K-Brooks wrote:
> I'm making a web site with a friend. For now, we're stuck on a free
> host with no cron. We need it, and I tried www.webcron.org, but it
> seems to be down. Does anyone here know of similar services? Thanks
> for any help.
I don't
José León Serna <[EMAIL PROTECTED]> wrote:
> Hello:
> How could I disable the browser cache?, I have a script that
> generates an image and shows it via . The problem
> is if I change the image, the browser doesn't reflect the changes
> until I push refresh. I supose is sending a header, but w
Good description. One minor addition I would suggest: That schema only
allows for one level of replies. Add a parentpostid to the posts table and
you can easily handle replies to replies to replies to replies (etc) to a
thread.
Stuart
-Original Message-
From: Kevin Stone [mailto:[EMAIL P
ROBERT MCPEAK <[EMAIL PROTECTED]> wrote:
> In other words:
>
> basename(/usr/blah/doh/yuck/wow/abigfile.html)
>
> resolves to : abigfile.html
>
> but
>
> basename(adirectory\onawindowsbox\abigfile.html)
>
> does not resovle to abigfile.html.
>
> Does anybody have a workaround for this?
Conv
Almost all the databases I work with have a table called vars. This table
consists of two fields, strkey and strval, both VARCHAR(255). I then have 2
functions defined in the global include file for the site called GetVar and
SetVar. This solution works well for me.
--
Stuart
-Original Messa
$incfilename = "Calc".$state.".class.inc";
if (file_exists($incfilename))
include($incfilename);
else
echo "Please select a State.\n";
--
Stuart
-Original Message-
From: Jim Long [mailto:[EMAIL PROTECTED]]
Sent: 27 April 2002 20:00
To: php
Subject: [PHP] simplify if/t
If $arr is your array, something like...
foreach ($arr as $key=>$val)
{
if (strlen($val) == 0)
unset($arr[$key]);
}
HTH,
Stuart
-Original Message-
From: Craig Westerman [mailto:[EMAIL PROTECTED]]
Sent: 28 April 2002 15:37
To: php-general-list
Subject: [PHP] Removing empty el
All header calls need to be made before any content is sent back to the
browser. Try this...
-- BEGIN CODE --
Equipments' Detail
body {scrollbar-face-color : #9ca6a5 ;
scrollbar-shadow-color : #eaebcf ;
scrollbar-darkshadow-color : #eaebcf ;
scrollbar-highlight-color : #eaebcf ;
scrollbar-3d
Replace the die("...") with die(mysql_error()) and the message should tell
you what's wrong.
Stuart
-Original Message-
From: Joshua E Minnie [mailto:[EMAIL PROTECTED]]
Sent: 29 April 2002 20:11
To: [EMAIL PROTECTED]
Subject: [PHP] Deleting from a SQL db
Can anyone help me understand wh
: 29 April 2002 20:21
To: [EMAIL PROTECTED]
Subject: Re: [PHP] Deleting from a SQL db
"Stuart Dallas" <[EMAIL PROTECTED]> wrote:
> Replace the die("...") with die(mysql_error()) and the message should tell
> you what's wrong.
It never gets to the die(".
> mssql_affected_rows()
Sorry, that should be mssql_rows_affected().
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On 1 May 2002 at 18:39, Randum Ian wrote:
> I want to link to a page like this:
>
> http://www.danceportal.co.uk/charts.php?wk0001-fri-18-jan-2002
>
> How do I get the information into a script?
The variable $_SERVER["QUERY_STRING"] will contain "wk0001-fri-18-jan-2002".
--
Stuart
--
PHP Ge
On 3 May 2002 at 11:36, Julio Nobrega Trabalhando wrote:
> $searched = "Joe Doe";
> $original = "Joe Cougar Doe";
> $final = "Joe Cougar Doe";
>
> Any ideas about how can I achieve this result? I am currently using
> eregi_replace($searched, "$searched", $original), so that's why
> it only acce
On 3 May 2002 at 12:04, ROBERT MCPEAK wrote:
> $blah=2002-05-02;
> $thedate = date("D, M d, Y", strtotime($blah));
> $echo "$thedate";
$blah will = 1995. Try putting quotes around the date...
$blah = "2002-05-02";
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscr
On 3 May 2002 at 12:48, Anthony Rodriguez wrote:
> PROBLEM
>
> When a php script uses mail() and sendmail, if the e-mail address is
> not right, the e-mail is returned to the envelope sender (the hosting
> provider), NOT to the "From", "Reply-To", "Return-Path", or any other
> additional headers
On 3 May 2002 at 14:11, Gary wrote:
> Does anyone know of how to put a Word file on a web page without the
> user being able to save it to their hard drive? And also another issue
> of making it so they can't print it.
If they can read it, they can save it and print it. Nothing you can do to stop
On 3 May 2002 at 21:51, Maciej Uhlig wrote:
> What you could do, is to produce ten digits [0..9] icons as gifs using
> commercial software and then display them randomly using the best PHP
> script :-)
The only problem with that is that it would be pretty easy for a script to parse the
page and
On 3 May 2002 at 15:42, Miguel Cruz wrote:
> There are browsers that are still in somewhat common use that cannot
> gracefully display PNGs. Try IE 4.5 on a Mac, for instance.
In that case, use JPEGs, or am I missing something?
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To un
On 4 May 2002 at 18:22, Alex Francis wrote:
> Warning: open(/tmp\sess_51d4849918d3ffe4d2cc70013d678f6b, O_RDWR)
> failed: No such file or directory (2)
Does the directory it's trying to write to exist? Seeing as you've posted this
question, I'll
assume that you don't understand the error messag
On 5 May 2002 at 14:12, Kyle Gibson wrote:
> Warning: Cannot execute using backquotes in safe mode in test.php on
> line 2
Your ISP has safe mode turned on which means you cannot use backquotes. Read all
about it at http://www.php.net/manual/en/features.safe-mode.php.
--
Stuart
--
PHP Genera
On 6 May 2002 at 20:30, Craig Westerman wrote:
> File is on another server. Is there a way to check if file exists on
> another server?
I wrote the following function a while ago to do this. It works with http URLs and
should also
work with https and ftp, but I have only tested http. I hope it'
Jason Wong <[EMAIL PROTECTED]> wrote:
>> I've tried changing the /tmp permissions, but the combinations
>> are considerable, and I don't have time to try them all. I was hoping
>> someone could point me in the right direction.
>
> Set it world readable/writeable?
Oooh, nasty. That should be your
On 10 May 2002 at 16:07, Bert Buckley wrote:
> I would like very much to retrieve data from an
> https server using the file function, but it only
> supports an http call.
>
> 1. Can someone suggest a good alternative
http://www.php.net/curl
--
Stuart
--
PHP General Mailing List (http://www
On Sun, 12 May 2002 00:39:21 +0200, you wrote:
>How can I read all files in a directory, when I don't know which files are
>there?
http://www.php.net/manual/en/class.dir.php
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Sat, 11 May 2002 21:21:27 -0400, you wrote:
>Trying to get accustomed to PHP 4.2.0 and PHP's preference for
>register_globals off, I have register_globals off.
>
>However, when I try to use $PHP_AUTH_USER and $PHP_AUTH_PW, my script fails
>(attempting to validate username and password credectia
Collins, Robert <[EMAIL PROTECTED]> wrote:
> Put something like this in the top of each of the pages that have
> common functions
>
> if(file_exists("/path/to/file/core_functions.php")){
> $core_functions = "/path/to/file/core_functions.php";
> }else{
>
Gerard Samuel <[EMAIL PROTECTED]> wrote:
> With register_globals off, switch() has a little handicap.
> ie
> switch($foo)
> {
>
> break;
> }
>
> $foo, is now illegal/not set.
Why can't you just use switch($_POST['foo'])? Or did I leave my brain at
home today?
--
Stuart
--
PHP Gen
Gerard Samuel <[EMAIL PROTECTED]> wrote:
> foo can also be $_GET['foo'] in the same script
In that case use $_REQUEST['foo'].
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
notoriousvic_ca <[EMAIL PROTECTED]> wrote:
> Is there anyway I can get all the file and directories in a specific
> directory?
http://www.php.net/readdir
--
Stuart
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Stuart Dallas <[EMAIL PROTECTED]> wrote:
> notoriousvic_ca <[EMAIL PROTECTED]> wrote:
>> Is there anyway I can get all the file and directories in a specific
>> directory?
>
> http://www.php.net/readdir
And I'd suggest that you read this to avoid sarcast
1 - 100 of 548 matches
Mail list logo