[PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
Good morning,

I have a PHP form that I have been using for some time now on a Macbook Pro 
running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this 
morning, when I submitted (it is a journaling application) it came up with the 
following error: 

No such file or directory 

Can anyone point me in the right direction to fix this? Have you ever seen this 
before?

Thanks,

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



Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
 div id='menu';

while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
	extract ( $line );
			$LimitChars = substr($prayer, 0, 65);

echo div id='view_date' align='left'$view - $date/div;

}
echo /div;

?
/div
/body
/htmlI downloaded and installed the iPhone SDK to develop some iPhone apps.This form has worked forever. Perhaps the SDK install did something?Thanks,
--Steve MarquezMarquez Designe-mail: smarq...@marquez-design.comweb: http://www.marquez-design.comphone: 479-648-0325

On Jun 3, 2010, at 8:59 AM, Ashley Sheridan wrote:

On Thu, 2010-06-03 at 08:56 -0500, Steve Marquez wrote:

Good morning,

I have a PHP form that I have been using for some time now on a Macbook Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this morning, when I submitted (it is a journaling application) it came up with the following error: 

No such file or directory 

Can anyone point me in the right direction to fix this? Have you ever seen this before?

Thanks,

Steve Marquez



Do you have any examples of code at all? It sounds like a file it's requiring is missing, but you haven't given the full error there either.




Thanks,
Ash
http://www.ashleysheridan.co.uk









Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
Strangest thing... it just started working again. Odd.

Is there an easy way to view the error logs? As you can tell, I am still a 
novice at this. 
I am on Apache2

Thanks for your help.

-- 
Steve Marquez
Marquez Design
e-mail: smarq...@marquez-design.com
web: http://www.marquez-design.com
phone: 479-648-0325 


On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote:

 Steve Marquez wrote:
 Good morning,
 
 I have a PHP form that I have been using for some time now on a Macbook Pro 
 running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But this 
 morning, when I submitted (it is a journaling application) it came up with 
 the following error: 
 
 No such file or directory 
 
 Can anyone point me in the right direction to fix this? Have you ever seen 
 this before?
 
 Thanks,
 
 Steve Marquez
 
 Where exactly did you see this error?
 
 1) In your browser when you tried loading the form?
 2) In your browser when you submitted the form?
 3) In the error logs of your web server?
 
 Other questions:
 
 What type of web server are you running?
 
 Did your cat stomp on your keyboard?
 
 Are the files stored locally or are they on a network/remote drive?
 
 Children doing things they should not be doing? (Happened to me once...)
 
 Are you accessing the files via http://localhost/... ?? or as a local file?
 
 -- 
 Jim Lucas
 
 A: Maybe because some people are too annoyed by top-posting.
 Q: Why do I not get an answer to my question(s)?
 A: Because it messes up the order in which people normally read text.
 Q: Why is top-posting such a bad thing?



Re: [PHP] PHP Form submitting to MySQL not working...

2010-06-03 Thread Steve Marquez
I am on Mac OS 10.6
I found the logs using the console. It was pretty easy and displays nicely.

I am reviewing the entries now.

Thanks for your help.

-- 
Steve Marquez
Marquez Design
e-mail: smarq...@marquez-design.com
web: http://www.marquez-design.com
phone: 479-648-0325 

On Jun 3, 2010, at 1:55 PM, Shreyas wrote:

 Steve,
 
 Do you know where Apache is installed? If yes, you have something like 
 error.log and access.log. Find them and nail them them down. 
 
 I am a novice, too and the best way to learn is to answer here and getting 
 corrected by other PHP gurus! So, all in the name of learning! :)
 
 --Shreyas
 
 On Thu, Jun 3, 2010 at 11:28 PM, Steve Marquez smarq...@marquez-design.com 
 wrote:
 Strangest thing... it just started working again. Odd.
 
 Is there an easy way to view the error logs? As you can tell, I am still a 
 novice at this.
 I am on Apache2
 
 Thanks for your help.
 
 --
 Steve Marquez
 Marquez Design
 e-mail: smarq...@marquez-design.com
 web: http://www.marquez-design.com
 phone: 479-648-0325
 
 
 On Jun 3, 2010, at 9:53 AM, Jim Lucas wrote:
 
  Steve Marquez wrote:
  Good morning,
 
  I have a PHP form that I have been using for some time now on a Macbook 
  Pro running PHP 5.3.1 and MySQL 5.0.5 and everything was working fine. But 
  this morning, when I submitted (it is a journaling application) it came up 
  with the following error:
 
  No such file or directory
 
  Can anyone point me in the right direction to fix this? Have you ever seen 
  this before?
 
  Thanks,
 
  Steve Marquez
 
  Where exactly did you see this error?
 
  1) In your browser when you tried loading the form?
  2) In your browser when you submitted the form?
  3) In the error logs of your web server?
 
  Other questions:
 
  What type of web server are you running?
 
  Did your cat stomp on your keyboard?
 
  Are the files stored locally or are they on a network/remote drive?
 
  Children doing things they should not be doing? (Happened to me once...)
 
  Are you accessing the files via http://localhost/... ?? or as a local file?
 
  --
  Jim Lucas
 
  A: Maybe because some people are too annoyed by top-posting.
  Q: Why do I not get an answer to my question(s)?
  A: Because it messes up the order in which people normally read text.
  Q: Why is top-posting such a bad thing?
 
 
 
 
 -- 
 Regards,
 Shreyas



[PHP] PHP Auth

2008-10-30 Thread Steve Marquez

Greetings,

What is the best way to create authentication for MySQL info  
displayed on PHP pages.


Thanks,

--
Steve Marquez
Marquez Design
e-mail: [EMAIL PROTECTED]
web: http://www.marquez-design.com
phone: 479-648-0325



Re: [PHP] PHP Auth

2008-10-30 Thread Steve Marquez
I have a form that I use to authenticate users stored in a MySQL  
database. I want to be able to ensure that no body will be able to  
bookmark a page and be able to return to that page without  
authenticating. But I also want the authenticated user to be able to  
use all the subsequent pages without having to re-authenticate during  
that session.


Does this make sense?

--
Steve Marquez
Marquez Design
e-mail: [EMAIL PROTECTED]
web: http://www.marquez-design.com
phone: 479-648-0325

On Oct 30, 2008, at 3:38 PM, Jay Blanchard wrote:


[snip]
What is the best way to create authentication for MySQL info
displayed on PHP pages.
[/snip]

I personally like the Magic MySQL Authentication thingie, but I  
digress.


Welcome to the list Steve, it is always nice to see new faces. I fear
that your question is just a little too vague though, can you be more
specific about what you're trying to do? You'll find a group of very
helpful and intelligent folks here who would love to help you, but you
have to provide more detail.




[PHP] Variable not showing up.

2008-07-02 Thread Steve Marquez

Greetings,

The following code works in every way except one. The variable,  
$linkspage, in the link, will not replace with information from the  
database for some reason. No matter what else I put in $id_num,  
$filename or whatever it replaces, but not $linkspage. The variable  
does work above, in the query.


Does this make sense? I hope so.

Thanks for any help.

?

include '../cms/cnx.php';
$linkspage = $_GET[linkspage];

/* Performing SQL query */
$query = SELECT * FROM cms_pages WHERE linkspage='$linkspage' ORDER  
BY id_num DESC;

$result = mysql_query($query) or die(Query failed);
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) {
extract ( $line );

?
			a class=subnav href=?php print $filename?linkspage= 
$linkspage; ?

?

 if ($filename = str_replace('.php','',$filename)) {

echo ''.$filename.'';
}
echo '  /a';

}

?

--
Steve Marquez
Marquez Design
e-mail: [EMAIL PROTECTED]
web: http://www.marquez-design.com



[PHP] Most viewed?

2008-04-15 Thread Steve Marquez
Greetings,

Can any of you point me in the right direction on how to use PHP to create a
most viewed or most clicked articles list? Can it be done with PHP?

Thank you so much,

Steve Marquez
[EMAIL PROTECTED]


[PHP] Directory

2008-02-07 Thread Steve Marquez
Greetings,

Could someone please point me in the right direction? I am trying to have
PHP find out if a directory has files in it and then if it does, display and
include, if it does not, then not display the include.

I have looked at the Manual and did not really know where to look.

Thanks,

--
Steve M.


[PHP] Not Null?

2007-10-31 Thread Steve Marquez
Greetings,

I have a script that looks for the variable to be NULL and then execute. Is
there a way for the script to look for anything or something in the variable
and then execute?

Ex: 

If (Œ$a¹ == Œ ANYTHING¹) {

some action

}else{

some other action

}

Thank you for any help.

--
Steve M.


[PHP] Alternate Colors in Rows

2007-10-03 Thread Steve Marquez
Greetings,

I am attempting to alternate the colors of the container DIV. Anyone know
how to do this? 

  ?php
  
$study_title = stripslashes($study_title);
$study_title = nl2br($study_title);
  
  while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
  extract ( $row );
  
  print 
div id=\e_options_container\
style=\background-color:#66;\
div id=\e_options\ style=\width: 100px; \$optone/div
div id=\e_options\ style=\width: 50px; \a
href=\$edit_item\Edit/a/div
div id=\e_options\ style=\width: 50px; \a
href=\$delete_item\ onclick=\return confirm('Are you sure you want to
delete?')\Delete/a/div
div id=\e_options\ style=\width: 250px;
\$study_title/div
div id=\e_options\ style=\width: 75px; \$date/div
/div;
  }
?

Thank you very much,

--
Steve M.


[PHP] Conditional jump menu

2007-09-27 Thread Steve Marquez
Does anyone know how to create a field based on a menu choice?

When the menu is selected, then another field is created with an associated
number. 

For instance:

Selection = Collie   Field = 1
Selection = AkitaField = 2

And so on...

Thanks,

--
Steve M.


[PHP] GD Library

2007-09-13 Thread Steve Marquez
Greetings,

I am running PHP 4.4.7 without the GD Library and need it to run.
I am very novice on PHP, and am using a Mac with 10.3.9.
Can anyone point me in the right direction?

Thank you so much,

--
Steve M.



[PHP] Sorting files in a directory

2007-08-08 Thread Steve Marquez
Greetings,

I have some code that opens a directory and displays the files. I want to
display the files in Alphabetical order.

I know this code does not work, but I was curious if someone can take a look
and tell me what is wrong? Thank you so much.

form name=select_page method=post action=
?php

// set pattern
$pattern = .html*|.php*;

// open directory and parse file list
if (is_dir(files/))
{
if ($dh = opendir(files/))

{
echo select name=\file\ size=\8\;
//echo option value=\$file\ selected$file/option;

// iterate over file list
while (($file = readdir($dh)) !== false)
{
// if filename matches search pattern, print it
if (ereg($pattern, $file))
   if(strpos($file,'.')0)
   
//  if ($filename = str_replace('.html','',$filename))

{
$file_array = array($file);
sort ($file_array);

foreach($file_array as $key = $value) {
echo option value=\$value\.$value./option;
}
}
}
echo /select;

// close directory
closedir($dh);
}
}
?
p
  input type=submit name=Submit value=Submit
/p
/form

--
Steve Marquez


[PHP] PHP not working after Mac 10.3.9 install

2007-07-23 Thread Steve Marquez
Greetings,

I am a very novice user of PHP. I have run PHP 4 on my Powerbook for about
three years. When I installed Mac OS 10.3.9, PHP does not work. I forgot how
to get it running again.

Can anyone help me with this?

Thanks,

--
Steve Marquez


[PHP] Patterns

2007-06-07 Thread Steve Marquez
Greetings. I just want to say thanks for the help over the past couple of
days.

I am trying to get a form to delete a file.

If the file ends in .php, then I want it to unlink from a certain folder.
However, if the file ends in .html or .htm, I want it to unlink from another
folder.

Is there any way to do this?

Thanks,

--
Steve M.


[PHP] Image Information

2007-06-06 Thread Steve Marquez
Greetings,

I am trying to get information (width, height, file size) from an image
before it is uploaded. Is there a way to do that?

Thank you,

--
Steve Marquez


[PHP] Strings

2007-06-05 Thread Steve Marquez
The following code works:

?php

$image = ³²;

if ($image == NULL) {
print ³False!²;
}else{
print ³$var²;
}

?

However, this does not:

?php

$image = ³²;

if ($image == NULL) {
print ³False!²;
}else{
print ³img src=\²$var\²²;
}

?

It seems that if I add a string, rather than just the variable, then does
not work. I am getting an unexpected T_IS_EQUAL error.

--
Thanks,
Steve Marquez


Re: [PHP] Strings

2007-06-05 Thread Steve Marquez
I got it to work! I just had to place the HTML elements outside of the PHP
code.

Thanks for your help.

--
Steve Marquez

on 6/5/07 2:02 PM Jochem Maas ([EMAIL PROTECTED]) wrote:

 Robert Cummings wrote:
  On Tue, 2007-06-05 at 19:57 +0200, Jochem Maas wrote:
  do you notice the totally weird string delimiters in your original post?
  using either single quotes or double quotes (if you want variables named
 inside
  the string to be interpolated). read up on php strings here:
 
  http://php.net/string
  
  He's probably using MS-Word to write code... those look very similar to
  dumb-quotes. Have you notice they open with a superscript 3 and close
  with a superscript 2?
 
 I did notice what chars they were, but couldn't be sure how/why they were
 there.
 I was hoping 'weird' was a close enough approximation :-P
 
  
  Cheers,
  Rob.
 




[PHP] GD2

2006-09-07 Thread Steve Marquez
Does anyone know anything about the gd2 for imagecreatetruecolor?

I have written a script that uploads an image to a directory and displays a
thumbnail of the image to the viewer. It works when I am using the live
site, but on the testing server, on my machine, it does not work. We will be
using an in-house machine for future use and we were wondering if anyone has
run into this issue before.

Could it be that we need to create a module in the php.ini file?

I am kind of new to the back-end of PHP. You could probably tell. I
appreciate any help.

Thanks,

Steve Marquez


[PHP] Database.table issue

2006-09-07 Thread Steve Marquez
Greetings,

I have a script that uploads images to a directory and information into a
MySQL database. It works on an external server, but it does not work on our
in-house server. 

I am getting the following error:

Table Œphoto_archive.categories¹ doesn¹t exist

I know that the DB Œphoto_archive¹ and the Table Œcategories¹ exists. I have
been able to use the shell to insert info into the table and it works fine,
even on the in-house server.

Does anyone know what this could be?

Thanks,

--
Steve Marquez


[PHP] Link to content of Directory

2005-02-02 Thread Marquez Design: Steve Marquez
Greetings all,

I am currious if someone could point me to a script to list the content of a
directory, then link to each file in that directory.

Example:

The directory contains 80 .GIF files. I want to create a page that will have
links to each file.

Is this possible? 

Thank you very much,

--
Steve Marquez
[EMAIL PROTECTED]

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



[PHP] Id_num =

2005-01-24 Thread Steve Marquez
Greetings!

If I do the following, it gives me a blank page. However, instead of using
the variable, if I put in $id_num = 191 Then it will display the
information. 

Does anyone know what I am doing wrong? I hope you understand my question...

Thank you in advance!



Here is the link I use to this page:

a href=view_prayer.php?id_num=191view/a

---

? 

// log into our local server using the MySQL root user.
$dbh = mysql_connect( localhost, username, password );

// select the database.
mysql_select_db( prayer ) or die ( mysql_error() . \n );

$prayer = $_POST[prayer];
$id_num = $_POST[id_num];

//and read it back for printing purposes.
$get_table_data = SELECT * FROM prayer WHERE id_num= \$id_num\;

$response = mysql_query( $get_table_data, $dbh );

//now print it out for the user.
if ( $one_line_of_data = mysql_fetch_array( $response ) ) {
extract ( $one_line_of_data );
}

?

html
head
titlePrayer for ? echo $date\n; ?/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1



/head

body

?PHP

$prayer = nl2br ($prayer);
$prayer = stripslashes ($prayer);

echo $prayer\n;

?
/body
/html


---

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



[PHP] Delete files from the server

2004-12-16 Thread Steve Marquez
Greetings everyone,

I have uploaded some pictures and thumbnails using a PHP form into a
particular directory. I would like to be able to select the name of the
picture and then chose to delete that picture and its thumbnail from the
server using another form.

The name of the picture is in the MySQL database.

Is there any way to do this?

Thanks!

--
Steve Marquez

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


[PHP] UPDATE

2004-12-15 Thread Steve Marquez
I am trying to insert information into the database, have it automatically
place an ID Number, then update that particular record and replace the word
delete with the link.

The mysql_insert_id() does seem to be working. It does put in an id number
of 0 However, the code in general gives me an error everytime. It says
that it is near 'delete = a href...'

Can anyone help me with this?

Thanks!

--
Steve

?php

// log into our local server using the MySQL root user.
   $dbh = mysql_connect( localhost, username, password );

   // select the database.
   mysql_select_db( imagesdb ) or die ( mysql_error() . \n );

?

-- snip --

?php

//This is for the text description of the gallery and the link
$insert_data2 = INSERT into images_upload_description (delete, name,
description)
VALUES ('delete', 'a
href=\http://www.domain.org/gallery/bomb/bottom_images.php?gallery_name=$ga
llery_name\ target=\bottom\$name/a', '$description');;
$response = mysql_query( $insert_data2, $dbh );

$id_num = mysql_insert_id();

$update_data = UPDATE images_upload_description SET delete = a
href=\http://www.domain.org/gallery/admin/delete.php?gallery_name=$gallery_
nameid_num=$id_num\ target=\bottom\Delete/a WHERE id_num =
\$id_num\;

$response = mysql_query( $update_data, $dbh );
if(mysql_error()) die ('database error'. mysql_error());

?

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


[PHP] Loops

2004-12-14 Thread Steve Marquez
Greetings. I am trying to display looped information from a MySQL database
in a PHP file. 

Loop

$name (witht a br /) then
$description

End of loop

I would like to loop the multiple variables rather than put all the
variables into a single variable with an array. I can not figure out how to
do this.

I have very little knowledge of PHP but am learning. Let me know if more
information is needed.

Thank you for any help.

--
Steve Marquez
[EMAIL PROTECTED]

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



[PHP] Re: Loops (Thank you very much!)

2004-12-14 Thread Steve Marquez
This is the code I went with and it works like a charm! Thank you very much
M. Sokolewicz!

echo {$row['name']}br /{$row['description']};
would work, just like all of the following would also:
echo $row[name]br /$row[description];
echo $row['name'].br /.$row['description'];

and a couple of others

--
Steve Marquez

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



[PHP] Forms Question: Options

2004-12-11 Thread Steve Marquez
Hi everyone!

Can someone help me with this question?

I created a photo upload utility with individual galleries that images can
be uploaded into. In the MySQL database, there are multiple names of
galleries, some are the same. I want to have a select menu to show just the
unique names of the galleries.

I have used:

Select DISTINCT gallery_names from images_upload;

I have about 15 records, ten are GALLERY1 and 5 are GALLERY2. When I use
the DISTINCT, two are output. It works perfectly in the MySQL terminal.

However, when I use the same in PHP as a web page, it only outputs one, the
one with only 5 records.

Here is the code:

?php 

// log into our local server using the MySQL root user.
   $dbh = mysql_connect( hostname, username, password );

   // select the database.
   mysql_select_db( db ) or die ( mysql_error() . \n );

   //and read it back for printing purposes.
   $get_table_data = SELECT DISTINCT gallery_name FROM images_upload ORDER
BY gallery_name DESC;
   
   $response = mysql_query( $get_table_data, $dbh );

   //now print it out for the user.
   if ( $one_line_of_data = mysql_fetch_array( $response ) ) {
 extract ( $one_line_of_data );
 }

 ?


-- Snip --


  ?php
  
   while ( $data = mysql_fetch_array( $response, MYSQL_ASSOC)) {
 print select name=\gallery_name\;
 foreach ( $data as $option_value ) {
 print option
value=\$option_value\$option_value/option;
  
 }  print /select;
   }
  
  ?


-- Snip --

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


[PHP] PHP to HTML

2003-12-08 Thread Steve Marquez
Greetings!

Is there a way to have PHP write an HTML file? What I would like to do is
have a user fill out a form, then have the information write an HTML file
and then save the file either for the first time, or overwrite the existing
one.

I hope this makes sense. Can anyone help?

--

Steve Marquez
Marquez Design

[EMAIL PROTECTED]

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



[PHP] Calendar

2003-11-12 Thread Steve Marquez
Hi,

I am looking for a simple easy to edit php calendar program. Does anyone
know where I can find one?

Thanks for your help.

--

Steve Marquez
[EMAIL PROTECTED]

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



[PHP] if and...

2003-06-30 Thread Steve Marquez
I am trying to get php to use two conditions.

?php

if ($biz = my_business and $id_num = 1){

echo stuff 

}

if ($biz = my_business and $id_num =2){

echo other stuff

}

?

My question Is, I am not sure if the and is correct, it does not work. Is
there another way to do this? I have tried a plus (+), a (,) and nothing
seems to work.

Could someone please help?

Thanks!

Steve Marquez

Marquez Design
[EMAIL PROTECTED]

www.marquez-design.com


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



[PHP] php.ini

2003-06-25 Thread Steve Marquez
I am running MacOSX and can not find my php.ini file. Does anyone know where
it is located on a mac?

I looked at my phpinfo file, and it says /usr/lib/ but does not have the
php.ini file in it.

Can anyone help?


Steve Marquez
Marquez Design
[EMAIL PROTECTED]

www.marquez-design.com


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



Re: [PHP] php.ini

2003-06-25 Thread Steve Marquez
Yes,

But I had a question that is php and mac specific. I used the info in the
discussion all morning, and could not find the file, I thought that some of
you great gurus could help with that.

Does the php.ini file always go in the same place no matter the OS? I did a
locate in the shell, and nothing came up. I could find .ini files, or php.
files, but no php.ini files.

Can the file be called anything else?

Thanks,
Steve

 [snip]
 I am running MacOSX and can not find my php.ini file. Does anyone know
 where
 it is located on a mac?
 
 I looked at my phpinfo file, and it says /usr/lib/ but does not have the
 php.ini file in it.
 
 Can anyone help?
 [/snip]
 
 I just want to make sure that I have not lost my mind, but haven't we
 been discussing the location of the php.ini all morning long? I thought
 we were, but I could be mistaken.
 
 Jay
 
 --
 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



Re: [PHP] php.ini

2003-06-25 Thread Steve Marquez
I did a search for php.ini-dist and found nothing. This is really strange to
me. It does have to exist, right?

I have done all the searches possible. Could it be under a different name?

Thanks

-Steve

 Hi
 
 I had this problem when i installed php on my linux box.  Because I hadn't
 copied  renamed php.ini-dist to php.ini, PHP seems to use a default setup
 and lists php.ini in the path where it expects to find it.
 
 I resolved it by copying php.ini-dist from the php source dir to the new dir
 and renaming it to php.ini - then modifying that.
 
 HTH
 Andrew McCombe
 
 
 
 
 Steve have you tried to search the entire drive for the php.ini file?
 
 
 - Original Message -
 From: Steve Marquez [EMAIL PROTECTED]
 To: PHP eMail List [EMAIL PROTECTED]
 Sent: Wednesday, June 25, 2003 8:59 AM
 Subject: [PHP] php.ini
 
 
 I am running MacOSX and can not find my php.ini file. Does anyone know
 where
 it is located on a mac?
 
 I looked at my phpinfo file, and it says /usr/lib/ but does not have the
 php.ini file in it.
 
 Can anyone help?
 
 
 
 


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



Re: [PHP] quotes

2003-06-25 Thread Steve Marquez
I had the same problem. I had my ISP turn magic quotes on in the php.ini
file on their server.

As soon as they did that, everything worked just fine.


-Steve Marquez
Marquez Design
[EMAIL PROTECTED]

www.marquez-design.com


 it doesnt work,  i just tried it. the text is still cut off after the quote
 
 
 Just try htmlentities()!  A textarea is for multiple lines of text!
 
 
 _
 Tired of spam? Get advanced junk mail protection with MSN 8.
 http://join.msn.com/?page=features/junkmail
 


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



Re: [PHP] php.ini

2003-06-25 Thread Steve Marquez
Thanks guys, I downloaded the source and created a php.ini file. It worked
great!

Thanks for all your help and patience.

-Steve

 Does the php.ini file always go in the same place no matter the OS? I
 did a
 locate in the shell, and nothing came up. I could find .ini files, or
 php.
 files, but no php.ini files.
 
 In all likelihood, you don't have a php.ini file on your computer,
 which is why searching for it using conventional methods won't help. To
 create a php.ini file, you could download the PHP source code, take its
 php.ini and drop it in /usr/local/lib
 
 Larry
 


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



[PHP] .htaccess files

2003-06-18 Thread Steve Marquez
Hello everyone,

Could someone point me in the direction of some info on .htaccess files?
Could someone send me one, tell me where to put it in my
server? I hope this is not a stupid question. I am running Apache on a Mac
with Jaguar OSX.

Thanks for your help,

-Steve Marquez
[EMAIL PROTECTED]


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



[PHP] Is this possible?

2003-06-11 Thread Steve Marquez
Hello PHP List,

I would like to use links such as:

a href=index.php?tablename=tabletable/a

The resulting page would have a line on it like such:

$query = SELECT * FROM $table;

Is this possible? If so, is there maybe a better way to do this?

Also, is it possible to show the names of the tables in PHP page?

Thanks,

-Steve Marquez


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



[PHP] Table issue

2003-06-10 Thread Steve Marquez
I am attempting to insert an article into a MySQL table on a remote server,
via a PHP Forms script.

I am able to insert the article on my server, and PHP MyAdmin works on both
servers, however, when I use my script on the remote server it does not
allow for long articles. (The articles have not more than 5 paragraphs at
the most.)

Is there anyone that has run into this problem before? Any suggestions?

-Steve Marquez
[EMAIL PROTECTED]


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



Re: [PHP] Table issue

2003-06-10 Thread Steve Marquez
Yes,

I am assuming that because PHP MyAdmin works with the long article that it
is my script that is the issue.

The table is a longtext table. All permissions are correct. The exact same
script works perfectly on my server.

The funny thing is that every single line text field inserts into the DB,
however, the multi line does not.

If I write the article in the multi-line field, it works (as far as I know,
I have only attempted about 40 lines), but when I copy and paste the article
in, it does not.

This is really strange...

-Steve



 [snip]
 I am attempting to insert an article into a MySQL table on a remote
 server, via a PHP Forms script.
 
 I am able to insert the article on my server, and PHP MyAdmin works on
 both servers, however, when I use my script on the remote server it does
 not allow for long articles. (The articles have not more than 5
 paragraphs at the most.)
 
 Is there anyone that has run into this problem before? Any suggestions?
 [/snip]
 
 
 Have you checked all of the usual suspects? Permissions? Database
 configuration (is the article column large enough)? What errors have you
 trapped?
 
 HTH!
 
 Jay
 
 --
 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



[PHP] magic_quotes_gpc

2003-06-10 Thread Steve Marquez
Anyone know how to change the magic_quotes_gpc? I need it to be on in PHP.

Running PHP 4.1.2

Thanks,

Steve Marquez
[EMAIL PROTECTED]


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



[PHP] Characters

2003-06-10 Thread Steve Marquez
I am inserting a file via a PHP form. It works great, however, if there is a
word that has quotes in it, then it does not work at all.

Is there a way to make it so that MySQL will receive a word with quotes?

Thanks

-Steve Marquez
[EMAIL PROTECTED]


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