Hi guys,
I'm new to PHP and i'm trying to set it up so that i can use the mail()
function to send emails. I'm using Mac OS X 10.1.3, PHP 4.1.2 and
Apache/1.3.20.
I've copied the php.ini-dist to usr/local/lib and renamed it php.ini
I have also uncommented the following lines from the
sorry...i should have mentioned also that I am not using the internal
mail server but i am using an external mail server
On Wednesday, March 20, 2002, at 05:24 PM, Jennifer wrote:
Hi guys,
I'm new to PHP and i'm trying to set it up so that i can use the mail()
function to send emails. I'm
:
Warning: php_hostconnect: connect failed in
/usr/local/apache/htdocs/514parser.php on line 135
Warning:
fopen(http://www.thedeal.com/NASApp/cs/ContentServer?pagename=TheDeal/xmlfeed;,
r) - Bad file number in /usr/local/apache/htdocs/514parser.php on line 135
Any suggestions?
-jennifer
--
PHP
i looked at the php.ini file and f wrapper is configured. thanks for the
suggestion. i am still looking for any suggestions anyone has. thanks.
-jennifer
Miguel Cruz wrote:
Sounds like maybe the fopen url wrapper is not installed. I've never taken
any particular steps to install it, so I'm
Jennifer wrote:
it seems to ignore the color that I specify and always came out
grey. (Of course now if I use ImageColorClosest(), some colors
work because they are in my image.)
Any idea on how solutions?
Oops. I didn't read far enough. I found the following in a
separate thread
I'm experiencing a strange problem and difficult to diagnose because
it's random. I have built an application that sends out an email with
a nice amount of text (don't have exact char count, but could get it).
On the html email, a random whitespace appears in the content, but
always toward
can do this
locally without having root access?
Jennifer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
When I do phpinfo() on my server one of the things it says is
PHP_DL
Dynamic Library support enabled.
What does that mean?
Jennifer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact
I wanted to use is_null, but it isn't available in my version
(4.0B2)
What would be an equivalent? I'm fairly new to PHP.
I was using isset, but sometimes it is set to Null.
Null values are unacceptable, but zero is a perfectly acceptable
value for what I want.
Jennifer
--
PHP General
to work?
Jennifer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
?
session_register should return true if the variable was
successfully registered?
The variable name and it's value should be written to the file
with the same name as session_id()?
Jennifer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands
.
Jennifer
Johnson, Kirk wrote:
-Original Message-
From: Jennifer [mailto:[EMAIL PROTECTED]]
Do you need to register a variable with the session before you
assign it a value?
Not in my experience.
session_register should return true if the variable was
successfully
make it easy.
Jennifer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]
This is bad, bad, bad. I tried using another browser as you
suggested (since I was using Netscape 4.7) and the
session_register worked. I still got different results than you
though.
Read throughout for more comments.
Johnson, Kirk wrote:
Jennifer, there are at least two of us totally
Johnson, Kirk wrote:
-Original Message-
From: Jennifer [mailto:[EMAIL PROTECTED]]
Subject: Re: [PHP] session_register()
1. What browser are you using? I, and others, have seen
erratic results with
sessions using Netscape 4.x. If this is your browser, try
your code
Jennifer wrote:
I thought of a workaraound for Netscape and would like some
feedback on how to do it and whether it is a good idea.
I manually edited the session file and Netscape was able to read
the variable on subsequent pages. It just can't seem to write
it.
So I thought, until
?rowid=$foobar' . $foo/a . | );
echo(/font);
}
?
thanks in advance,
jennifer
and the txt file contains one line of bogus txt. you can see my results
here: http://www.villany2k1.com/text.php.
if anyone has any info as to what i am doing wrong, i would really
appreciate it.
thanks so much
jennifer
([EMAIL PROTECTED])
--
PHP General Mailing List (http://www.php.net
I think you can do it using
strftime
%V - The ISO 8601:1988 week number of the current year as a decimal number,
range 01 to 53, where week 1 is the first week that has at least 4 days in
the current year, and with Monday as the first day of the week.
%W - week number of the current year as a
that wasn't the answer);
}
?
Any help would be appreciated.
Thanks in advance
Jennifer Downey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi all,
I am no DHTML expert and don't even know the language also didn't know where
to post this. But after today I am going to learn.
I downloaded a tetris game from Dynamic Drive:
http://www.dynamicdrive.com/dynamicindex12/tetris/index.htm
Have a look. I would add it here but it's too long.
',
num_pets int(1) NOT NULL default '0',
) TYPE=MyISAM;
Thanks
Jennifer Downey
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
());
}
}
TIA
Jennifer
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi everyone,
I have a question about this code. The way it sits now it always shows the
last record in the table.
in other words if the user has 6 items, like:
item id 1
item id 2
item id 5
item id 6
item id 7
item id 8
it will only show the last record item id 8.
I believe it has something to
My apologies for putting this in the wrong list.
Jennifer
Jennifer Downey [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
Hi everyone,
I have a question about this code. The way it sits now it always shows the
last record in the table.
in oth
on proper code formatting and got back a tutorial that was
extremely hard to understand. While lots of people have screamed at me for
my coding format no one has supplied an understandable answer. That is
until this morning.
From Paul Burney :
Hi Jennifer,
The first thing you should do is properly
disk space, 10 to 15gig /m transfer, of course
PHP and MySQL, ftp, ssh or telnet, cgi/perl, free domain transfer, at least
15 POP3 email accounts, cron support.
Thanks
Jennifer
--
The sleeper has awaken
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http
one submit button how do I get this to update
all items that are listed?
TIA
Jennifer
--
The sleeper has awaken
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
--
PHP General
s:[EMAIL PROTECTED]...
user price[] as the name
you'll also need to pass the ids as $id[]
so you know which one you're updating
-Original Message-
From: Jennifer Downey [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 17, 2002 11:51 AM
To: [EMAIL PROTECTED]
Subject: [PHP] Using on
];
$ret = mysql_query($query) or die(mysql_error());
}
else
{
echo TD width=30%font size=2CENTERinput=\hidden\
name=\id[$i]\ value=\$id\input type=\text\ value=\\
name=\price[$i]\ size='8' MAXLENGTH='8'BR/a/CENTER/font/TD;
Jennifer
Kevin Stone [EMAIL PROTECTED] wrote
];
$ret = mysql_query($query) or die(mysql_error());
}
else
{
echo TD width=30%font size=2CENTERinput=\hidden\
name=\id[$i]\ value=\$id\input type=\text\ value=\\
name=\price[$i]\ size='8' MAXLENGTH='8'BR/a/CENTER/font/TD;
Jennifer
Jason Wong [EMAIL PROTECTED] wrote in message
if that condition 1
echo that it can't be found
else
echo the form
But in this case even if the condition 1 it still echoes the form.
I am not understanding this.
Thanks for your time and help
Jennifer
--
The sleeper has awaken
---
Outgoing mail is certified Virus Free.
Checked by AVG anti
)
echo can't be found;
else
{
echo first line of form;
echo second line of form;
}
This is what I have:
if($quantity 1)
{
echo Sorry I can't seem to locate this item;
}
else
{
do this
}
So yes I have done exactly as you have stated and it still shows the form.
Jennifer
It shows both.
Natalie Leotta [EMAIL PROTECTED] wrote in message
7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG">news:7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC3@SSIMSEXCHNG...
Does it show the message and the form or just the message?
-Natalie
-Original Message-
From:
PLEASE TAKE THIS OUT OF MY THREAD.
I am trying to get an answer to my question. Not yours.
Thank you
Jennifer
Stuart Dallas [EMAIL PROTECTED] wrote in message
000d01c1eae5$96243450$de01420a@stuart">news:000d01c1eae5$96243450$de01420a@stuart...
José León Serna [EMAIL PROTECTED] wrote:
that is not the case.
I have used this code through out my site and this is the only part it does
this on and I am not understanding why.
Jennifer
Natalie Leotta [EMAIL PROTECTED] wrote in message
7546CB15C0A1D311BF0D0004AC4C4B0C024ABFC4@SSIMSEXCHNG">news:7546CB15C0A1D311BF0D0004AC4C4B0C
No this is the first if statement but there are nested if's after that. I'd
post the code but everyone yells at me about my coding style.
If you promise not to yell I will post it.
Jennifer
-Bd- [EMAIL PROTECTED] wrote in message
001d01c1eae9$d58f4360$[EMAIL PROTECTED]">news:001d
='discard'Discard this item/OPTION;
echo OPTION VALUE='donate'Donate this item/OPTION;
echo /SELECT;
echo INPUT TYPE='submit' VALUE='Submit' NAME='submit';
echo /FORM;
}
Jennifer
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351
rd, have you printed out all the values fetched via
mysql_fetch_array()
to ensure they contain valid data?
- Original Message -
From: Jennifer Downey [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, April 23, 2002 12:48 PM
Subject: Re: [PHP] If else question
Ok y
Ok I have hard coded $quantity so it does = 0 and else still prints.
Maxim Maletsky ) [EMAIL PROTECTED] wrote in message
004701c1eaf1$c915c6b0$92e3021a@machine52">news:004701c1eaf1$c915c6b0$92e3021a@machine52...
Try this, Jennifer:
Without messing the rest of your code, change
this item/OPTION;
echo /SELECT;
echo INPUT TYPE='submit' VALUE='Submit' NAME='submit';
echo /FORM;
}
}
}
and it worked perfectly!
Thank you ALL for your time and help!
Jennifer
P.S. You people are wonderfull!
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system
Hi all,
Would you please direct your attention to this URL
http://testphp.netfirms.com/code1.html
Look at the bottom where the big orange commented syntax is and explain what
is going on there?
Thanks
Jennifer
--
The sleeper has awaken
---
Outgoing mail is certified Virus Free.
Checked
Jennifer
--
The sleeper has awaken
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net
BRINPUT TYPE='submit' VALUE='Send Report' NAME='submit';
echo /FORM;
}
Thanks
Jennifer
--
The sleeper has awaken
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.351 / Virus Database: 197 - Release Date: 4/19/2002
--
PHP
]BR
;
echo table cellSpacing=0 cellPadding=0 width=\100%\ border=0trtd
width = \100\$display_block/td;
if ($column 5)
{
echo /trtr;
$column = 1;
}
echo/table;
}
}
Thanks for your time and help
Jennifer
--
The sleeper has awaken
---
Outgoing mail
out fine.
Could the data that's failing strtotime have been corrupted on data-entry?
Why does is_string on this data tell me it's a string?
--Jennifer Koenig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
It was staring me right in the face - the data that wasn't working was typed
(by Europeans) as 6.30 instead of 6:30. So it was a string whose format was
unacceptable as a Unix timestamp format.
--Jennifer Koenig
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http
likely as a problem?
thanks.
-jennifer
--- Kevin Stone [EMAIL PROTECTED] wrote:
Jennifer, works just fine here..
-
$fp =
fopen(http://www.thedeal.com/NASApp/cs/ContentServer?pagename=TheDeal/xmlfe
ed,r);
if ($fp !== FALSE)
echo The file exists!;
else
echo The file does
-- Original message --
From: Richard Lynch [EMAIL PROTECTED]
On Thu, May 12, 2005 4:43 pm, Chris Shiflett said:
From me:
The fact that it uses the character set of your current connection to
MySQL means that what your escaping function considers to be a
-- Original message --
From: Tom Rawson [EMAIL PROTECTED]
I have many places where I use references like this:
if ($fields['flags']['someflag']) ...
or perhaps
if ($_POST['checkboxfieldname']) ...
If there is no value for 'someflag', or if
-- Original message --
From: Jason Barnett [EMAIL PROTECTED]
T.J. Mahaffey wrote:
First time post, please be gentle.
You will probably find parse_url() to be useful:
http://www.php.net/manual/en/function.parse-url.php
?php
$url =
-- Original message --
From: Niels [EMAIL PROTECTED]
Hi list,
I'm doing an intranet website for managing users. I need to be able to
change passwords, move files and folders around and that kind of thing.
What is the best way?
I wouldn't use system calls
-- Original message --
From: Niels [EMAIL PROTECTED]
Jennifer Goodie wrote:
I wouldn't use system calls to move files around. PHP has built in file
system functions. Why shell out to do something that is built in?
Well, the apache user really shouldn't
It would be helpful if you posted that error. You can get it by changing
the die to
$queryr = mysql_query($query) or die(mysql_error());
Without knowing the error, you problem will be harder for everyone to debug.
-Original Message-
From: Nuno Lopes [mailto:[EMAIL PROTECTED]]
Sent:
Off the top of my head, try using OR in your query rather than AND
day=\2\ or day=\3\
day probably won't equal both 2 and 3, which is why you are getting 0.
Also, if you group by item name, you are going to get the total for each
itemname, is that what you want, or just the overall total?
! am trying to count the number of items in this table. The table
has one field in it.
The code I am using is:
$dbquerymeal = select COUNT(*) from mealtype;
$resultmeal = mysql_db_query($dbname,$dbqueryshipping1);
if(mysql_error()!=){echo mysql_error();}
$mealcount =
Without seeing what you have in your includes, it will be hard to determine
where your scope is messed up.
?php
$subnav = home;
include(incHeader.php);
?
!--- CONTENT AREA ---
The content would go here.
!--- END CONTENT AREA ---
?php include (incFooter.php); ?
Now, when I try to
$uploaddir = 'C:\Inetpub\wwwroot\pix';
$filnamn=$_FILES['userfile']['name'];
I thought of just adding a backslash at the very end of the $uploaddir
variable but that just leaves me with this error-message instead:
Parse error: parse error, unexpected T_STRING in
Actually, what you see is *exactly* the code being used. Nothing
has changed
about it. And whether the variable is regarded as a string or a
number, it
gives me the same stupid issue. Not recognizing it as a True
statement. :\
Is there any way possible that this could be the client's
I have the following chunk of code:
$sql = SELECT setting from settings where name='display_rows';
include(connect.inc.php);
print $sql;
$row = mysql_fetch_row($result);
$path = $row[0];
print $path;
It always prints out 1
But if I run the code at
The only setting contained in that table is the one im calling for,
and its value is 25.
see what print_r($row) outputs, then you'll at least know what is in the
array.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
select * from main
left join fof on main.id = fof.id
left join pub on main.id = pub.id
left join gov on main.id = gov.id
left join med on main.id = med.id
left join ngo on main.id = ngo.id
left join own on
Hi everyone,
Can I replace Submit buttons on forms with a text button?
I need to be able to click on a link:
a href=index.php?option=editEdit/a
and have it submit the form. The form only contains one
field...does anyone
know how to do this? I've been searching google for an answer,
I have this:
$query = LOAD DATA LOCAL INFILE '/home/data.txt' INTO TABLE
mytable FIELDS
TERMINATED BY ',' ENCLOSED BY ' . '' . ' ;
$result = MYSQL_QUERY($query);
PRINT br$query2br;
The query doesn't take ... but if I cut and paste the printed
response into
the mysql server manually ...
if (isset($page)) {
include $$_GET['page'];
} else {
$page = $home;
include $page;
}
would that be right?
or should i use
if (isset($page)) {
include $$_GET['page'];
} else {
include $home;
}
hopefully that's right. if so, pretty good for a n00b
I don't think I'd let someone
Is there a way to have your html table represent one color,
Cause when I click the link it turnes purple, and I want it to stay
336699
no matter what state.
I tried to use css, but it does the whole page.
And I want the 336699 to be in this table alone.
Can anyone help me out with this
if(!($rs = mysql_query($q))) // querying
{ echo Query failed. mysql_error(); exit; }
$n = 0;
while ($line = mysql_fetch_assoc($rs)) { //dumping into an array
foreach ($line as $field = $value) {
$data[$field][$n] = $value;
}
$n++;
}
and this is how i use
Been working on this one for a while but can't get it working properly.
I need a regular expression to match if address is
1. PO Box
2. P.O. Box
3. P.O.Box
I got it working with 1 2, but it's still not matching 3. Any
suggestions?
if(preg_match( /p[\.]o\.* +box/i,
--- Beauford.2005 [EMAIL PROTECTED] wrote:
FORM ACTION=teams-write.php action=post name=inputs
You misspelled method. :-)
Hope that helps.
Chris
It seems like this exact same problem has been addressed before.
http://marc.theaimsgroup.com/?l=php-generalm=105900603231518w=2
I am trying to specify a single php file to contain all the
variables and I
just call this file where necessary. What I am running into is
that I want
to do this for all the built in functions (i.e. mssql_query) as
well. I've
tried numerous attempts but can't get it to operate without
I am using php mail and setting all my $headers info to show From:, To:,
What does your call to mail() look like? How are you formatting you
headers?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Here is what my header look like:
$headers .= MIME-Version: 1.0\r\n;
$headers .= Content-type: text/plain;
charset=us-ascii\r\n;
$headers .= From: .$name. .$email.\r\n;
$headers .= To: .$myname.
Not to beat a dead horse, but...
From two separate responses:
And as for Google, I don't feel like I have time to wade through pages and
pages of irrelevant links until I find what I'm looking for when I have a
better resource right here.
I've actually learned quite a few useful things
strtotime( '+1 month', mktime( 0, 0, 0, 1, 1, 2003 ));
I get back the timestamp for 1/31/2003 and not 2/1/2003.
Are you sure?
Yeah, but I missed something in my above example. If I did this:
strtotime( '+1 month GMT', mktime( 0, 0, 0, 1, 1, 2003 ));
It came back with 1/31/2003 and
Ok, here is my query and the bit of code I can't figure out:
$query = SELECT * from apt_user_t a, apt_company_t b ;
$query .= WHERE a.user_cd = b.user_cd ;
$query .= ORDER BY a.username;
$search_results = mysql_query($query) or die(Select
Failed!);
while ($search_result2
Tried this and it returns errors of type:
Warning: Wrong parameter count for mssql_result() in
c:\inetpub\wwwroot\webpage10\example\utilities\dsp_del_images.php
on line 78
Warning: mssql_result(): supplied argument is not a valid MS SQL-result
resource in
strtotime( '+1 month', mktime( 0, 0, 0, 1, 1, 2003 ));
I get back the timestamp for 1/31/2003 and not 2/1/2003.
Are you sure?
I tried it on my system (php 4.2.3 freeBSD 4.6.2) and this is the output I
got...
# php
?php
echo date(Y-m-d, mktime( 0, 0, 0, 1, 1, 2003 )).\n;
echo
// the query
$verify = select ft.topic_id, ft.topic_title from forum_posts as fp left
join forum_topics as ft on fp.topic_id = ft.topic_id where fp.post_id =
$_GET[post_id];
...
My question: why - or how can - the columns ft.topic_id and ft.topic_title
come from
Hi
For a few days or maybe even a week or two I'm getting this error
message in my site.
This happens when i do : mysql_select_db()
This doesn't happen all the time and there are pages that it happens
more than others
so it seems.
I looked in the manual and the explanation there doesn't
Anyway, in the textbook and the zip her mySQL query reads:
...
$verify = select ft.topic_id, ft.topic_title from forum_posts as fp left
join forum_topics as ft on fp.topic_id = ft.topic_id where fp.post_id =
$_GET[post_id];
.
The part that I'm confused about
I am currently using a php class that uses the following syntax:
$value= htmlcleaner::cleanup($value);
What exactly is the :: used for? Is there a different syntax for :: ?
The manual has an entire section on this
(http://www.php.net/manual/en/keyword.paamayim-nekudotayim.php) have you
read
What is posted [ from phpinfo() ]:
_POST[color-1] on
_POST[color-4] on
_POST[color-6] on
Parser:
foreach($_POST as $ThisVar=$ThisVal){
if(ereg(color-, $ThisVar) AND $ThisVal==on OR $ThisVal==1){
$newVarA=explode(-, $ThisVar);
I have a problem with the date function
?
$theday = date(Y-m-d, time());
echo date((w), $theday);
?
I'm pretty sure the optional second argument for date is a unix timestamp
that you would generate by using either time or mktime or strtotime. You
are passing it something in the form of
I have a 163 line file. I get a parse error on line 164. Ideas?
You're probably missing a } somewhere.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi All,
I hope you can help me with this:
I have a tabel in my database like this
TEST
fieldnameValue's
testid 1
testf1 3
testf2 4
testf3 0
testf4 2
testf5 0
(so this is one record!)
I want to display the lowest
BUT how can i make the function loop through the whole
result?
---
if (mysql_num_rows($result3) 0)
{
$test = mysql_fetch_array($result3);
echo minnum($test);
}
--
Someone will probably come up with something a little
setcookie(UserName, $HTTP_POST_VARS['UserName'],
time()+(60*10), /,
$HTTP_SERVER_VARS['SERVER_NAME']);
setcookie(Password, $password, time()+(60*10), /,
$HTTP_SERVER_VARS['SERVER_NAME']);
print login - set cookie;
sorry for kinda answering my own post... but anyway...
93 # When deserialized we are called and need to check if the
stored IP address equals the client's
94 function __wakeup() {
95 global $Log;
96 if ($_SERVER['REMOTE_ADDR'] !=
$this-Night['IP']) {
97
?php /*
your mixed html and php code here
*/ ?
that way php will take everything inside the ?php ? tags and
comment them
out, regardless of if they are html or php or whatever.
This won't work is your PHP code has comments using /* */ syntax in it
already. I always just through an
Is there a way to output PHP to MS Excel format?
Send the headers for the appropriate application type and then format your
output as HTML with Excel's styles. In order to get a feel for what my
output should be, I just create a sample of what I want in Excel, save as
html and then open the
This doesnt work as expected.
if ( $var === TEST ONE || TEST TWO || TEST THREE) {
do something;
}
It returns true on all strings. Ive tried using the or operator
and the == but these fail as well. Any Ideas?
It behaves exactly as expected. Try checking the manual section on
How to use file() function with an HTTPS:\\www.example.com
?php
$lines = file ('https://www.example.com/');
foreach ($lines as $line_num = $line) {
echo Line #b{$line_num}/b : . htmlspecialchars($line)
. br\n;
}
My interpretation of the manual page
I have a section of my script where I call gethostbyname($hostname) .
For some host names that are not registered (according to register.com)
I am still getting an IP address returned?
What is happening?
Well, try only the toplevel domain... For example, I have like
Hi, is there a way to create excel files with php?
Thanks.
This was answered yesterday and I'm way too lazy to type out my reply again.
Here is an archive search on the word 'excel'
http://marc.theaimsgroup.com/?l=php-generalw=2r=1s=excelq=b
Here is yesterday's thread
And I get this:
[snip]
Violation Information:
The subject violated the content filtering rule PHP as subject is a
malacious code - Not Allowed. No attempt was made to repair.
[/snip]
How can PHP be a code so powerfull it is not even allowed in the
subject? I thought PHP was a drug.
can't seem to figure
out how to get the number of days integrated in here for $hh that
are 24.
to days:hours:minutes:seconds... This function works for what it
does, can
someone embelish it to handle days too?
function convertToHHMMSS($seconds)
{
$hoursPerDay= 24;
Ive used this
$query = (SELECT username, password, DATE_FORMAT(timestamp,
'%d%m%y') FROM
custlogon);
But I recieve unknown index timestamp. *shrug*
You are receiving the error on an array returned by fetch_array? If so, it
is because the index is DATE_FORMAT(timestamp, '%d%m%y'), not
Jennifer, you're right, I am using fetch_array... I tried to use your
suggestion, and it failing as well, It wont even execute
Do you have a better method of looping through all these records??
There's probably an error in my SQL syntax. What is mysql_error() telling
you? If it was my
try this:
$query = SELECT username, password,
DATE_FORMAT(CURRENT_TIMESTAMP(), '%d%m%y') FROM custlogon;
or if that doesnt work try:
$query = SELECT username, password, DATE_FORMAT(NOW(), '%d%m%y')
FROM custlogon;
[snip]
original query as posted:
SELECT username, password,
Jennifer, you're right, I am using fetch_array... I tried to use your
suggestion, and it failing as well, It wont even execute
There's probably an error in my SQL syntax. What is
mysql_error() telling
you?
I dont believe it to be an error because Ive run this from the CLI
1 - 100 of 190 matches
Mail list logo