php-general Digest 9 Sep 2003 04:03:37 -0000 Issue 2286

Topics (messages 161999 through 162033):

Re: Passing query parameter which has value "###"
        161999 by: murugesan

Re: Creating a Calender
        162000 by: Curt Zirzow
        162023 by: Sn!per

upload problems
        162001 by: Doug Parker
        162002 by: Marek Kilimajer
        162003 by: Dan Anderson

Re: Dynamic Form checking
        162004 by: Dan Anderson

site with linux binaries??
        162005 by: John Ryan

Simple Selection Box
        162006 by: Scott Miller
        162007 by: Jay Blanchard
        162008 by: Scott Miller

Re: Try/Catch
        162009 by: Jay Blanchard

adodb and php5
        162010 by: Gilberto Garcia Jr.
        162011 by: Jay Blanchard
        162012 by: CPT John W. Holmes
        162013 by: Jay Blanchard
        162014 by: Gilberto Garcia Jr.

php,up2date and mcrypt
        162015 by: Steve Buehler

Beta Testers Needed - Free software opportunity
        162016 by: Matt Palermo
        162017 by: Bogdan Stancescu
        162020 by: andu
        162022 by: Chris Shiflett
        162025 by: andu

Re: Linux Issues
        162018 by: Stephen Craton

curl and sent headers
        162019 by: John Ryan
        162029 by: John Ryan
        162031 by: Chris Shiflett
        162032 by: John Ryan

countries,states and cities
        162021 by: Augusto Cesar Castoldi

Mail() question
        162024 by: Ryan A

Database sessions and file sessions
        162026 by: CDitty
        162028 by: Chris Shiflett

tv programme lineup
        162027 by: Sn!per

Re: Problem Coding a Tutorial
        162030 by: Stephen Tiano

Single Quotes vs Double Quotes
        162033 by: micro brew

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
Thanks for the reply.It is working

-Murugesan
----- Original Message -----
From: "Chris Hayes" <[EMAIL PROTECTED]>
To: "murugesan" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 5:15 PM
Subject: Re: [PHP] Passing query parameter which has value "###"


> At 13:04 8-9-03, you wrote:
> >I passed value
> >main.php?name=$name&id=$id&id1=$id1  to next page
> >where $id has value "###"
> >In the next page I was not able to get the $id and $id1 values
> >and I am able to get the two values $id1 and $name when I used
> >main.php?name=$name&id1=$id1
> >What might be the problem?
>
>
> The # in a url is used for the in-page anchors, e.g. if you have an anchor
> in your page <a name="chapter2"></a>, then a url such as
page.html#chapter2
> will jump to that location in the page. So the part after the # is cut off
> by the browser, i suppose.
>
>
> Try this:
> <?php
> echo '<a href="main.php?name='.$name.'&id='. urlencode($id).'">';
> ?>
> This changes the # to a code (% followed by some number)
>
> (check urlencode in the manual)
>

--- End Message ---
--- Begin Message ---
* Thus wrote Dave Dash ([EMAIL PROTECTED]):
> 
> begin 666 cal.css
> M+F-A;&5N9&%R('L*"6)O<F1E<[EMAIL PROTECTED]&AI;B!S;VQI9#L*"6UA<F=I;BUL969T

Please dont send attachments to the list.

Curt
-- 
"I used to think I was indecisive, but now I'm not so sure."

--- End Message ---
--- Begin Message ---
PEAR Date Calc is your friend.

rgds.

--

Quoting "CPT John W. Holmes" <[EMAIL PROTECTED]>:

> From: "Dan Anderson" <[EMAIL PROTECTED]>
> 
> 
> > Does anybody know how to generate calendars easily?  (i.e. print out
> > complete calenders from the current month on)
> 
> I'd check out PEAR or phpclasses.org. I'm sure something is already written,
> but I don't know of any personally.
> 
> ---John Holmes...
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 





---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------

--- End Message ---
--- Begin Message ---
I'm trying to do some uploading on my server, and I'm not getting any value
for my "tmp" upload setting - meaning this code:

$source = $_FILES['cat1_thumb']['tmp_name'];
echo $source;

returns nothing.   The form is fine - meaning that the text input name is
correct and I am indeed selecting a file.  I realized that our
upload_tmp_dir setting was not set, so I had the admin set it, but it still
returns nothing.  Is there another setting I should check?

Thanks

--



------------------------------------------------------------
http://www.phreshdesign.com

--- End Message ---
--- Begin Message ---
Does the form contain
<form enctype="multipart/form-data" ...>?

Doug Parker wrote:
I'm trying to do some uploading on my server, and I'm not getting any value
for my "tmp" upload setting - meaning this code:

$source = $_FILES['cat1_thumb']['tmp_name'];
echo $source;

returns nothing.   The form is fine - meaning that the text input name is
correct and I am indeed selecting a file.  I realized that our
upload_tmp_dir setting was not set, so I had the admin set it, but it still
returns nothing.  Is there another setting I should check?

Thanks

--



------------------------------------------------------------
http://www.phreshdesign.com


--- End Message ---
--- Begin Message ---
If you go to the PHP site they have a nice section on file uploads:

http://us2.php.net/features.file-upload

Double check that $_FILES['cat1_thumb']['error'] == 0

See: http://us2.php.net/manual/en/features.file-upload.errors.php

-Dan

--- End Message ---
--- Begin Message ---
if $quantity isn't filled you get NULL or FALSE.

so you could use:

if ($_POST['variable'])

etc.

Try posting less code and more question to the list.  Nobody's going to
wade through 5 pages of code to analyze it and give you an answer.

-Dan

On Mon, 2003-09-08 at 03:41, Aris Santillan wrote:
> hi
> 
> this is the dynamic forms
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> for($s=0;$s<$num;$s++)
>   {
>     $result = mssql_fetch_array($query);
> 
> $result[2] = number_format($result[2], 2);
> 
> 
> 
> echo    "<tr border=1>";
> echo        "<td><input type=\"text\" name=\"item\" size=40 value=$result[0] 
> disabled> </td>";
> echo        "<td><input type=\"text\" name=\"amount\" size=7 value=$result[2] 
> disabled></td>";
> echo        "<td><input type=\"text\" name=\"quantity[]\" size=7></td>";
> echo        "<td><input type=\"text\" name=\"discount[]\" size=7 value=\"0\"></td>";
> echo          "<input type=\"hidden\" name=\"part_no[]\" value=\"$result[0]\">";
> echo          "<input type=\"hidden\" name=\"price[]\" value=\"$result[2]\">";
> echo          "<input type=\"hidden\" name=\"salesperson_code[]\" 
> value=$salesperson_code>";
> echo          "<input type=\"hidden\" name=\"customer_code[]\" 
> value=$customer_code>";
> echo          "<input type=\"hidden\" name=\"ship_to_code[]\" value=$ship_to_code>";
> echo          "<input type=\"hidden\" name=\"date[]\" value=\"$date\">";
> echo          "<input type=\"hidden\" name=\"status[]\" value=\"0\">";
> 
> echo        "<td><input type=\"checkbox\" name=\"check[]\" value=\"$s\"></td>";
> echo    "</tr>";
> 
> 
>   }
> 
> 
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> this the code that will get items that are checked
> 
> 
> foreach($check as $checkitem)
>  {
> 
> 
> 
> echo $quantity[$checkitem] .  " " . $discount[$checkitem] . " " . 
> $part_no[$checkitem] . " " . $price[$checkitem] . " " . 
> $salesperson_code[$checkitem] . " " . $customer_code[$checkitem] . " " . 
> $ship_to_code[$checkitem] . " " . " " . $status[$checkitem] . " " .  
> $date[$checkitem] . "<br>";
> 
> 
>  }
>  
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
> 
> 
> the problems / situation
> 
> 
> how can i check or validate
> 
> it should be. if someone filled up the $quantity[] field, she / he must check the 
> $check[] field or if a use check the $check[] field
> he must put something on the $quantity[] field. and 
> 
> otherwise empty $quantity[] field and empty $check[] field is allowed,  
> 
> 
> 
> 
> 
> 
> thanks in advance
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 

--- End Message ---
--- Begin Message ---
hi,

i wanna upgrade php, but i dont have, and can never have root access on my
server, plus no gcc or anything, so is there any site with binaries of php
for linux-x86, with pretty much, all extras and modules!

--- End Message ---
--- Begin Message ---
I"m attempting to create a simple selection box in PHP, but to no avail.  It
keeps giving me an error:

You have an error in your SQL syntax near '; City='Eureka/'' at line 6

Here's a snip from my code:
<!-- newuser.php -->
<html>
<head>
<title> Add New User </title>
</head>
<body>
<?php

if (isset($_POST['submit'])):
  // A new user has been entered
  // using the form below.


  $dbcnx = @mysql_connect('xxx.xxx.xxx','xxxxxxxx','lxxxxxxxxxx');
mysql_select_db('xxxxxxxxxx');


  $sql = "INSERT INTO My_Table_Name SET
          First_Name='$fname',
          Last_Name='$lname',
          Username='$username',
          Password='$password',
          Phone_Number='$phone';
          City='$city'";
  if (@mysql_query($sql)) {
    echo('<p>New user added</p>');
  } else {
    echo('<p>Error adding new user: ' .
         mysql_error() . '</p>');
  }

?>

<p><a href="<?=$_SERVER['PHP_SELF']?>">Add another User</a></p>
<p><a href="add-user.php">Return to Users list</a></p>

<?php
else: // Allow the user to enter a new User
?>

<form action="<?=$_SERVER['PHP_SELF']?>" method="post">
<p>Enter the new User:<br />
First Name: <input type="text" name="fname" size="20" maxlength="255" /><br
/>
Last Name: <input type="text" name="lname" size="20" maxlength="255" /><br
/>
UserName: <input type="text" name="username" size="20" maxlength="255" /><br
/>
Password: <input type="text" name="password" size="20" maxlength="255" /><br
/>
Phone: <input type="text" name="phone" size="20" maxlength="255" /><br />

City:<SELECT ID="City" NAME="city"/>
      <OPTION VALUE=Eureka/>Eureka</OPTION/>
      <OPTION VALUE=Rexford/>Rexford</OPTION/>
      <OPTION VALUE=Trego/>Trego</OPTION/>
      <OPTION VALUE=Fortine/>Fortine</OPTION/>
      <OPTION VALUE=Other City/>Other City</OPTION/>
     </SELECT/><br />


<input type="submit" name="submit" value="SUBMIT" /></p>
</form>

<?php endif; ?>

</body>
</html>


I've read and read - searched through other's posts, but haven't come up
with what I'm doing wrong.  If anyone could give me a hand, I would greatly
appriciate it.

Scott

--- End Message ---
--- Begin Message ---
[snip]
You have an error in your SQL syntax near '; City='Eureka/'' at line 6

  $sql = "INSERT INTO My_Table_Name SET
          First_Name='$fname',
          Last_Name='$lname',
          Username='$username',
          Password='$password',
          Phone_Number='$phone';
          City='$city'";
[/snip]

You left out a comma

          Phone_Number='$phone';
should be
          Phone_Number='$phone',

--- End Message ---
--- Begin Message ---
AAHH - stupid mistake - thanks!

Guess I better re-read PHP-101

Thanks,
Scott

----- Original Message ----- 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Scott Miller" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 1:54 PM
Subject: RE: [PHP] Simple Selection Box


> [snip]
> You have an error in your SQL syntax near '; City='Eureka/'' at line 6
> 
>   $sql = "INSERT INTO My_Table_Name SET
>           First_Name='$fname',
>           Last_Name='$lname',
>           Username='$username',
>           Password='$password',
>           Phone_Number='$phone';
>           City='$city'";
> [/snip]
> 
> You left out a comma
> 
>           Phone_Number='$phone';
> should be
>           Phone_Number='$phone',

--- End Message ---
--- Begin Message ---
[snip]
Try/Catch

Well, may question is about the Scope of Throwed
Execeptions. 
[/snip]

What version of PHP are you running? Only V5 has this kind of exception
handling. See http://www.php.net/zend-engine-2.php

HTH!

--- End Message ---
--- Begin Message ---
Does anyone had tested ADODB with php5?


I can make a query, print the recordcount but when i try to show the result i got 
nothing

<?
require ("some\\adodb.inc.php");

$conn =& ADONewConnection('mysql');
$conn->PConnect('some', 'some', 'some', 'some');

$seleciona = "
select campo
from tabela
";

$qry =& $conn->Execute($seleciona);

if (!$qry) {
echo $conn->ErrorMsg();
echo "erro";
}
else {
while (!$qry->EOF) {
echo $qry->fields['campo'] . "<br>";

$qry->MoveNext();
}
}
?>





any help?



thanks

--- End Message ---
--- Begin Message ---
[snip]
Does anyone had tested ADODB with php5?


I can make a query, print the recordcount but when i try to show the
result i got nothing

<?
require ("some\\adodb.inc.php");

$conn =& ADONewConnection('mysql');
$conn->PConnect('some', 'some', 'some', 'some');
[/snip]

You do not need the ADODB connection if you are using MySQL. Are you
connecting to Access or MS SQL? If you are using MySQL look at
http://www.php.net/mysql_connect . For instance, the function you use
above ADONewConnection() does not exist as a PHP function. Do you
declare the function in adodb.inc.php?

--- End Message ---
--- Begin Message ---
From: "Gilberto Garcia Jr." <[EMAIL PROTECTED]>


> Does anyone had tested ADODB with php5?
> I can make a query, print the recordcount but when i try to show the
result i got nothing
>
> while (!$qry->EOF) {
> echo $qry->fields['campo'] . "<br>";
>
> $qry->MoveNext();
> }

You might want to ask on the adodb forums:
http://phplens.com/lens/lensforum/topics.php?id=4

Does this work?

while($r = $qry->FetchRow($qry))
{ echo $r['campo']; }

---John Holmes...

--- End Message ---
--- Begin Message ---
[snip]
Does anyone had tested ADODB with php5?
[/snip]

D'oh **slapping forhead** I shouldn't be driving this late on Monday
afternoon.

--- End Message ---
--- Begin Message ---
I use adodb cause I need an abstraction layer for database cause the
application can run under mysql, mssql, oracle and pgsql. so i have one
config file that has the parameters for the conection.

this is the reason for me use adodb layer.

now, about ADONewConnection(), this function is from adodb layer.

php.weblogs.com/adodb


----- Original Message ----- 
From: "Jay Blanchard" <[EMAIL PROTECTED]>
To: "Gilberto Garcia Jr." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Monday, September 08, 2003 5:45 PM
Subject: RE: [PHP] adodb and php5


[snip]
Does anyone had tested ADODB with php5?


I can make a query, print the recordcount but when i try to show the
result i got nothing

<?
require ("some\\adodb.inc.php");

$conn =& ADONewConnection('mysql');
$conn->PConnect('some', 'some', 'some', 'some');
[/snip]

You do not need the ADODB connection if you are using MySQL. Are you
connecting to Access or MS SQL? If you are using MySQL look at
http://www.php.net/mysql_connect . For instance, the function you use
above ADONewConnection() does not exist as a PHP function. Do you
declare the function in adodb.inc.php?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

--- End Message ---
--- Begin Message --- I have a new RedHat Linux v.9 server that gets its php through 'up2date'. I want the ability to use mcrypt with php. I thought that I read somewhere a way to do this without having to recompile PHP. Can anybody point me to the right place or explain to me how to do this?

Thanks
Steve

--- End Message ---
--- Begin Message ---
First, I would like to thank all of you who have helped me with my questions
in the past.  I am going to return the favor by giving you an opportunity to
receive a free copy of the latest version of a calendar program, called
TotalCalendar.  SweetPHP.com will be giving out free copies of this software
to the first 5 people who agree to help with the beta testing and half-price
copies to anyone else who helps beta test.  After the beta testing phase is
complete, all beta testers will receive the full, final version at no
additional cost. If you would like to know more about this software, please
visit:



http://sweetphp.com/



There, you will find all the information, as well as a running demo of the
software. If you would like to sign up and become a beta testing, please
contact us at:



[EMAIL PROTECTED]



and we will send you the necessary information needed.  Thanks again to
everyone who has helped me out.



Matt Palermo

[EMAIL PROTECTED]

http://sweetphp.com

--- End Message ---
--- Begin Message --- I think you could adjust your business model a bit, there are quite a few GPL projects offering a lot more than what you do, in a better groupware environment. For instance you could check out http://www.guydavis.ca/opt/ for a demo of a GPL project at least a few orders of magnitude above the one you propose.

Just my 2c, obviously,
Bogdan

Matt Palermo wrote:

First, I would like to thank all of you who have helped me with my questions
in the past.  I am going to return the favor by giving you an opportunity to
receive a free copy of the latest version of a calendar program, called
TotalCalendar.  SweetPHP.com will be giving out free copies of this software
to the first 5 people who agree to help with the beta testing and half-price
copies to anyone else who helps beta test.  After the beta testing phase is
complete, all beta testers will receive the full, final version at no
additional cost. If you would like to know more about this software, please
visit:



http://sweetphp.com/



There, you will find all the information, as well as a running demo of the
software. If you would like to sign up and become a beta testing, please
contact us at:



[EMAIL PROTECTED]



and we will send you the necessary information needed.  Thanks again to
everyone who has helped me out.



Matt Palermo

[EMAIL PROTECTED]

http://sweetphp.com

--- End Message ---
--- Begin Message ---
On Tue, 09 Sep 2003 00:58:07 +0300
Bogdan Stancescu <[EMAIL PROTECTED]> wrote:

> I think you could adjust your business model a bit, there are quite a 
> few GPL projects offering a lot more than what you do, in a better 
> groupware environment. For instance you could check out 
> http://www.guydavis.ca/opt/ for a demo of a GPL project at least a few 
> orders of magnitude above the one you propose.
> 
> Just my 2c, obviously,
> Bogdan

Experience proves that his business model has worked in the past as well as
present (not that I support or practice it), just count the number of people
still buying and using Windows (or OSX for that matter) when Linux has been around
for all these years. And that is just for day to day basic desktop and
development.

> 
> Matt Palermo wrote:
> 
> > First, I would like to thank all of you who have helped me with my questions
> > in the past.  I am going to return the favor by giving you an opportunity to
> > receive a free copy of the latest version of a calendar program, called
> > TotalCalendar.  SweetPHP.com will be giving out free copies of this software
> > to the first 5 people who agree to help with the beta testing and half-price
> > copies to anyone else who helps beta test.  After the beta testing phase is
> > complete, all beta testers will receive the full, final version at no
> > additional cost. If you would like to know more about this software, please
> > visit:
> > 
> > 
> > 
> > http://sweetphp.com/
> > 
> > 
> > 
> > There, you will find all the information, as well as a running demo of the
> > software. If you would like to sign up and become a beta testing, please
> > contact us at:
> > 
> > 
> > 
> > [EMAIL PROTECTED]
> > 
> > 
> > 
> > and we will send you the necessary information needed.  Thanks again to
> > everyone who has helped me out.
> > 
> > 
> > 
> > Matt Palermo
> > 
> > [EMAIL PROTECTED]
> > 
> > http://sweetphp.com
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


____
Regards, Andu Novac

--- End Message ---
--- Begin Message ---
--- andu <[EMAIL PROTECTED]> wrote:
> Experience proves that his business model has worked in the past as
> well as present (not that I support or practice it), just count the
> number of people still buying and using Windows (or OSX for that
> matter) when Linux has been around for all these years.

That's not quite the same. Windows didn't have to penetrate the market while
Linux was around as a viable (better?) alternative. At the time, Windows was
the best choice for a desktop OS for many people. Now that it has such a
dominant market position, it no longer has to prove itself to remain on top.
That job is left to Linux, Mac OS X, etc.

In this case, the PHP application being advertised must penetrate an existing
market, which means the competition is heavier. This is why the first responder
was pointing out some of the that competition.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

--- End Message ---
--- Begin Message ---
On Mon, 8 Sep 2003 16:48:24 -0700 (PDT)
Chris Shiflett <[EMAIL PROTECTED]> wrote:

> --- andu <[EMAIL PROTECTED]> wrote:
> > Experience proves that his business model has worked in the past as
> > well as present (not that I support or practice it), just count the
> > number of people still buying and using Windows (or OSX for that
> > matter) when Linux has been around for all these years.
> 
> That's not quite the same. Windows didn't have to penetrate the market while
> Linux was around as a viable (better?) alternative. At the time, Windows was
> the best choice for a desktop OS for many people. Now that it has such a
> dominant market position, it no longer has to prove itself to remain on top.
> That job is left to Linux, Mac OS X, etc.
> 
> In this case, the PHP application being advertised must penetrate an existing
> market, which means the competition is heavier. This is why the first responder
> was pointing out some of the that competition.

It is and it isn't the same, people buy because they don't know better, which was
my point. 

> 
> Chris
> 
> =====
> Become a better Web developer with the HTTP Developer's Handbook
> http://httphandbook.org/
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 
> 


____
Regards, Andu Novac

--- End Message ---
--- Begin Message ---
Thanks for the email but I found the reason for it all not working. I have
an ATI Radeon 9800 Pro and it's not supported by the Linux Kernel yet so...

Thanks anyway,
Stephen


----- Original Message ----- 
From: "Viraj Kalinga Abayarathna" <[EMAIL PROTECTED]>
To: "Stephen Craton" <[EMAIL PROTECTED]>
Cc: "andu" <[EMAIL PROTECTED]>; "PHP List" <[EMAIL PROTECTED]>
Sent: Sunday, September 07, 2003 11:12 PM
Subject: Re: [PHP] Linux Issues


> Stephen,
> Try Debian Woody (3.0) with latest stable KDE desktop.
> You will be ammazed with the GUI, it's like a Dream.. very fancy
> , smooth and colourfull.
>
> regards
> Viraj
>
> Stephen Craton wrote:
> >
> > Well, I'm wanting one with a really nice GUI and great functionality.
I'll
> > check into Debian and Slackware later today after church. Any other good
> > recomendations?
> >
> > Thanks,
> > Stephen Craton
> > ----- Original Message -----
> > From: "andu" <[EMAIL PROTECTED]>
> > Cc: "PHP List" <[EMAIL PROTECTED]>
> > Sent: Saturday, September 06, 2003 11:02 PM
> > Subject: Re: [PHP] Linux Issues
> >
> > > On Sat, 6 Sep 2003 22:41:29 -0500
> > > "Stephen Craton" <[EMAIL PROTECTED]> wrote:
> > >
> > > > Thanks for the replies.
> > > >
> > > > I've tried both 8.1 and 9.1 versions of Mandrake Linux with no luck
(I
> > > > bought the 8.1 CDs a while back)
> > > >
> > > > I've also tried making a floppy disk but still no luck with 8.1. In
9.1,
> > I
> > > > can't get the autorun screen to make the floppy disk.
> > >
> > > Try another distro, I recommend Slackware or Debian. Another option is
to
> > get one
> > > of the distros which run from the cd with the option to copy it to
hard
> > drive like
> > > Knoppix, they have more advanced auto-configuration software.
> > >
> > > >
> > > > Thanks,
> > > > Stephen Craton
> > > >
> > > > ----- Original Message -----
> > > > From: "Dan Anderson" <[EMAIL PROTECTED]>
> > > > To: "Stephen Craton" <[EMAIL PROTECTED]>
> > > > Cc: "PHP List" <[EMAIL PROTECTED]>
> > > > Sent: Saturday, September 06, 2003 10:09 PM
> > > > Subject: Re: [PHP] Linux Issues
> > > >
> > > >
> > > > > Oh also make sure you are using /9.1/ and NOT /9.2 RC1/!
> > > > >
> > > > > -Dan
> > > > >
> > > > > On Sat, 2003-09-06 at 22:51, Stephen Craton wrote:
> > > > > > Hello,
> > > > > >
> > > > > > This isn't really a PHP issue but I have no where else to go to
get
> > help
> > > > really. Hopefully someone here can still help me.
> > > > > >
> > > > > > I am running Windows XP and have decided to install Mandrake
Linux
> > on
> > > > top of it just for the heck of it. So, Friday I downloaded the
latest
> > ISO
> > > > files from an FTP server and today I put in the burnt CDs and it
takes
> > me to
> > > > the boot screen for it. I push enter (as it says to enter the setup)
and
> > it
> > > > takes me to a blank screen and just sits there, doing nothing except
> > > > flashing the Caps Lock and Scroll Lock lights on my keyboard.
> > > > > >
> > > > > > I went to the online manual for Mandrake and it said to add the
text
> > > > "noauto" which I did for the boot sequence. Same error. Any ideas
what's
> > > > going on and how to fix it?
> > > > > >
> > > > > > Thanks,
> > > > > > Stephen Craton
> > > > >
> > > > > --
> > > > > PHP General Mailing List (http://www.php.net/)
> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > > > --
> > > > PHP General Mailing List (http://www.php.net/)
> > > > To unsubscribe, visit: http://www.php.net/unsub.php
> > > >
> > > >
> > > >
> > >
> > >
> > > ____
> > > Regards, Andu Novac
> > >
> > > --
> > > PHP General Mailing List (http://www.php.net/)
> > > To unsubscribe, visit: http://www.php.net/unsub.php
> > >
> > >
> > >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>

--- End Message ---
--- Begin Message ---
is there any way of seeing exactly what headers cURL sent in a transfer,
with PHP?

--- End Message ---
--- Begin Message ---
i found out myself if anyone wants to know...


"John Ryan" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> is there any way of seeing exactly what headers cURL sent in a transfer,
> with PHP?

--- End Message ---
--- Begin Message ---
--- John Ryan <[EMAIL PROTECTED]> wrote:
> is there any way of seeing exactly what headers cURL sent in a
> transfer, with PHP?

--- John Ryan <[EMAIL PROTECTED]> wrote:
> i found out myself if anyone wants to know...

Yes, please. It is always helpful (and courteous) to mention how you solved
your original problem when interacting with this list. This allows you to
contribute back to the list, and ultimately the PHP community. :-)

Even if the answer someone else gave is sufficient, it is nice to quote that
answer and give a quick "that worked" for archival purposes. This way when
someone references the archive seeking the answer to the same question, they
can see which answer worked for you (the person they will likely relate to the
most).

And, though it doesn't apply to you in this case, it is nice to thank the
person who helped you solve a particular problem. The only motivation for
pouring a lot of effort into responding to the questions here is to feel like
you're helping a lot of people. John Holmes comes to mind as a frequent
contributor, as do many others (is there a list?).

Thanks for your help.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

--- End Message ---
--- Begin Message ---
yeah, sure.

well, for archival purposes, i couldnt do it with PHP. the verbose option
didnt work with PHP, CURLOPT_VERBOSE. but it did work on the command line.
so i logged in and re-created my curl transfer on the command line with an
added -v, for verbose. and it gave me back the headers it sent to the site,
i saw my problem straight away, and modified the PHP script.

"Chris Shiflett" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> --- John Ryan <[EMAIL PROTECTED]> wrote:
> > is there any way of seeing exactly what headers cURL sent in a
> > transfer, with PHP?
>
> --- John Ryan <[EMAIL PROTECTED]> wrote:
> > i found out myself if anyone wants to know...
>
> Yes, please. It is always helpful (and courteous) to mention how you
solved
> your original problem when interacting with this list. This allows you to
> contribute back to the list, and ultimately the PHP community. :-)
>
> Even if the answer someone else gave is sufficient, it is nice to quote
that
> answer and give a quick "that worked" for archival purposes. This way when
> someone references the archive seeking the answer to the same question,
they
> can see which answer worked for you (the person they will likely relate to
the
> most).
>
> And, though it doesn't apply to you in this case, it is nice to thank the
> person who helped you solve a particular problem. The only motivation for
> pouring a lot of effort into responding to the questions here is to feel
like
> you're helping a lot of people. John Holmes comes to mind as a frequent
> contributor, as do many others (is there a list?).
>
> Thanks for your help.
>
> Chris
>
> =====
> Become a better Web developer with the HTTP Developer's Handbook
> http://httphandbook.org/

--- End Message ---
--- Begin Message ---
hi...

where can I download a database with all countries and
states and cities?

like:
http://www.datingplace.com/servlet/NewRegistration

thanks,

Augusto

_______________________________________________________________________
Desafio AntiZona: participe do jogo de perguntas e respostas que vai
dar um Renault Clio, computadores, cāmeras digitais, videogames e muito
mais! www.cade.com.br/antizona

--- End Message ---
--- Begin Message ---
Hi everyone,
I am trying to create a new newsletter software as the ones i found on
hotscripts were just not good enough or mucho $$ which i dont have :-(

Have finished the basics but need some advise now.
I am using a mysql database instead of text files.

I have a table with the fields "name" and "email", my questions are,
1:is it better to use a for loop and then send each mail?
2:should i first put all the names and addresses into an array?
3:Is it better to send each mail independantly or use BCC? (one mail
blast....., will it work?)



Please note that i I intend to add a kind of word merge functionality later
on.
eg:
Dear <::name::>,
thank you for subscribing your email address: <::email::>
etc etc

Am expecting the list to grow to around 5000 or more.

When replying if possible please give program examples or links as am not
very familier with this.

Thanks in advance,
-Ryan





We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com

--- End Message ---
--- Begin Message --- Can database sessions and file system sessions co-exist on the same server. I have 2 applications that use sessions. One uses the standard php sessions and the other uses sessions that are stored in the database. Neither of these can be changed.

Can anyone offer any advice on this?

Chris
--- End Message ---
--- Begin Message ---
--- CDitty <[EMAIL PROTECTED]> wrote:
> Can database sessions and file system sessions co-exist on the same 
> server.

Sure, and it is trivial to do unless you are wanting to use the data from both
sessions with the same application, though that is still possible.

If you need to share data, you can just register your own session functions
using session_register() and share the data however you want. In fact, it would
be pretty easy to convert the sessions to use one way or the other in this
manner. You can read the session from both sources and store in whichever
source you are converting to.

Hope that helps.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/

--- End Message ---
--- Begin Message ---
nebody know where i can find a script that does something like:

(the admin module)
- add/edit/delete tv programme lineup daily/weekly/monthly
- lineup will include things like programme title, episode, time, synopsis etc

(the public portion)
- can perform search
- calendar
- hilights
- etc

pls advise.


---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------

--- End Message ---
--- Begin Message ---
Kae,

Excuse my being dense, but I just want to get your meaning with the
lines you added. You're saying to substitute

if($_POST['submit']=='Sign!')

for

if ($submit == "Sign!")

and  to try ('$_POST[name]', ...  (and not $_POST['name'])?

Thank you.

Steve Tiano

--- End Message ---
--- Begin Message ---
Hi everyone,

Could somebody please explain to me the difference
between single quotes and double quotes in PHP.  It
seems like they can be used interchangeably a lot in
PHP but not always. For example:

This works:
header('Location: http://somedomain.com')

This does not work:
header('Location: $url')

This works:
header("Location: $url")


Why???  Sorry if this has been asked before, but I
didn't find a suitable answer in the archives.  TIA.

Mike

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

--- End Message ---

Reply via email to