[PHP] Intro to PHP question

2007-03-08 Thread Jonathan Kahan

Hi all,

I am using a linux server. When the php file below (uri.php) is run from the 
command line I get the following error. Any ideas on what I could do 
differently?


Thanks for any help,

Jonathan

../uri.php: line 1: syntax error near unexpected token `newline'
../uri.php: line 1: `'






Kind Regards
Jonathan Kahan

Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018

Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com 


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



Re: [PHP] Intro to PHP question

2007-03-08 Thread Jonathan Kahan
Unfortunately not. I used the vi editor within Linux to create the file. I am 
using a windows machine locally but the server I am doing this all in is a 
Linux server which I am accessing through putty. 
  - Original Message - 
  From: Tijnema ! 
  To: Jonathan Kahan 
  Cc: php-general@lists.php.net 
  Sent: Thursday, March 08, 2007 12:03 PM
  Subject: Re: [PHP] Intro to PHP question


  Your probably created it from a windows machine. Try converting the file 
first with dos2unix
  dos2unix ../uri.php

  Tijnema

   
  On 3/8/07, Jonathan Kahan <[EMAIL PROTECTED]> wrote: 
Hi all,

I am using a linux server. When the php file below (uri.php) is run from the
command line I get the following error. Any ideas on what I could do 
differently?

Thanks for any help,

Jonathan

../uri.php: line 1: syntax error near unexpected token `newline'
../uri.php: line 1: `'






Kind Regards
    Jonathan Kahan 

Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018
 
Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com

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





Re: [PHP] Intro to PHP question

2007-03-08 Thread Jonathan Kahan
Hi all,

Dave,

I am attempting to use html for learning purposes. My goal is to begin working 
on a website. 

Tijnema,

I tried the below and got the following errors. I can't imagine the error on 
line 3 is a tag issue.

Jonathan

[EMAIL PROTECTED] cgi-bin]# ./uri.php
./uri.php: line 2: ?php: No such file or directory
./uri.php: line 3: syntax error near unexpected token `"D"'
./uri.php: line 3: `$d=date("D");'
[EMAIL PROTECTED] cgi-bin]# vi uri.php
[EMAIL PROTECTED]  cgi-bin]# vi uri.php


  - Original Message - 
  From: Dave Goodchild 
  To: Tijnema ! 
  Cc: Jonathan Kahan ; php-general@lists.php.net 
  Sent: Thursday, March 08, 2007 12:43 PM
  Subject: Re: [PHP] Intro to PHP question


  If you are running that from the command line, why do you need html? Not sure 
why you're doing that. 

Re: [PHP] Intro to PHP question

2007-03-08 Thread Jonathan Kahan
Hi all,

I went to a website called php-cli.com and found that i needed to type 
#!/usr/bin/php -q in the header line. Once I typed that, my script without the 
HTML tags executed. 

Thanks again,

Jonathan
  - Original Message - 
  From: Tijnema ! 
  To: Jonathan Kahan 
  Cc: Dave Goodchild ; php-general@lists.php.net 
  Sent: Thursday, March 08, 2007 12:54 PM
  Subject: Re: [PHP] Intro to PHP question


  AFAIK you can't run a php file directly, or you need to add #!/bin/php or 
something to the first line, but you can run it with 
  php ../uri.php
  but i suggest you to run it from a webserver like apache.

  *if you don't have it, i can give you a few MB to try PHP out

  Tijnema

   
  On 3/8/07, Jonathan Kahan <[EMAIL PROTECTED]> wrote: 
Hi all,

Dave,

I am attempting to use html for learning purposes. My goal is to begin 
working on a website. 

Tijnema,

I tried the below and got the following errors. I can't imagine the error 
on line 3 is a tag issue.

Jonathan

[EMAIL PROTECTED] cgi-bin]# ./uri.php
./uri.php: line 2: ?php: No such file or directory
./uri.php: line 3: syntax error near unexpected token `"D"'
./uri.php: line 3: `$d=date("D");' 
[EMAIL PROTECTED] cgi-bin]# vi uri.php
[EMAIL PROTECTED]  cgi-bin]# vi uri.php


  - Original Message - 
  From: Dave Goodchild 
  To: Tijnema ! 
  Cc: Jonathan Kahan ; php-general@lists.php.net 
  Sent: Thursday, March 08, 2007 12:43 PM
  Subject: Re: [PHP] Intro to PHP question

   
  If you are running that from the command line, why do you need html? Not 
sure why you're doing that. 



[PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan

Hi all,

I am attempting to start the mysql rpm in Red hat as a first step prior to 
downloading and activating the php-mysql rpm. I was attempting to follow 
steps based on the link below. the php rpm is loaded and activated as I have 
been able to execute php scripts. When I attempt to follow those directions, 
I get the below errors. Does anyone know why I got the below errors or can 
help me through this process?


Thanks

http://kbase.redhat.com/faq/FAQ_39_3633.shtm


[EMAIL PROTECTED] var]# rpm -q mysql-server
mysql-server-4.1.20-1.FC4.1
[EMAIL PROTECTED] var]# rpm -q mysql
mysql-4.1.20-1.FC4.1
[EMAIL PROTECTED]  var]# up2date mysql
bash: up2date: command not found
[EMAIL PROTECTED]  var]# up2date mysql-server
bash: up2date: command not found
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No such file or directory
[EMAIL PROTECTED] var]# ./up2date mysql-server
bash: ./up2date: No such file or directory
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No such file or directory
[EMAIL PROTECTED]  var]#


Kind Regards
Jonathan Kahan


Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018

Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com 


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



Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan

http://www.die.net/doc/linux/man/man8/yum.8.html

I checked the above page on 'Yum" and see no up2date command as you point 
out. However when I  tried update in the format suggested in the link, it 
still gives a command not found error.




"Brad Bonkoski" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]

I think up2date is *not* up2date ;-)
Google for 'yum' and all its flags for usage...

-B

Jonathan Kahan wrote:

Hi all,

I am attempting to start the mysql rpm in Red hat as a first step prior 
to downloading and activating the php-mysql rpm. I was attempting to 
follow steps based on the link below. the php rpm is loaded and activated 
as I have been able to execute php scripts. When I attempt to follow 
those directions, I get the below errors. Does anyone know why I got the 
below errors or can help me through this process?


Thanks

http://kbase.redhat.com/faq/FAQ_39_3633.shtm


[EMAIL PROTECTED] var]# rpm -q mysql-server
mysql-server-4.1.20-1.FC4.1
[EMAIL PROTECTED] var]# rpm -q mysql
mysql-4.1.20-1.FC4.1
[EMAIL PROTECTED]  var]# up2date mysql
bash: up2date: command not found
[EMAIL PROTECTED]  var]# up2date mysql-server
bash: up2date: command not found
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No such file or directory
[EMAIL PROTECTED] var]# ./up2date mysql-server
bash: ./up2date: No such file or directory
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No such file or directory
[EMAIL PROTECTED]  var]#


Kind Regards
Jonathan Kahan


Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018

Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com
- Original Message - 
From: "Brad Bonkoski" <[EMAIL PROTECTED]>

To: "Jonathan Kahan" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, March 12, 2007 4:30 PM
Subject: Re: [PHP] Installing php and mysql on linux



I think up2date is *not* up2date ;-)
Google for 'yum' and all its flags for usage...

-B

Jonathan Kahan wrote:

Hi all,

I am attempting to start the mysql rpm in Red hat as a first step prior 
to downloading and activating the php-mysql rpm. I was attempting to 
follow steps based on the link below. the php rpm is loaded and activated 
as I have been able to execute php scripts. When I attempt to follow 
those directions, I get the below errors. Does anyone know why I got the 
below errors or can help me through this process?


Thanks

http://kbase.redhat.com/faq/FAQ_39_3633.shtm


[EMAIL PROTECTED] var]# rpm -q mysql-server
mysql-server-4.1.20-1.FC4.1
[EMAIL PROTECTED] var]# rpm -q mysql
mysql-4.1.20-1.FC4.1
[EMAIL PROTECTED]  var]# up2date mysql
bash: up2date: command not found
[EMAIL PROTECTED]  var]# up2date mysql-server
bash: up2date: command not found
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No such file or directory
[EMAIL PROTECTED] var]# ./up2date mysql-server
bash: ./up2date: No such file or directory
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No such file or directory
[EMAIL PROTECTED]  var]#


Kind Regards
Jonathan Kahan


Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018

Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com






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



Re: [PHP] Installing php and mysql on linux

2007-03-12 Thread Jonathan Kahan
Your point are well taken. I was ale to follow directions from the mysql 
website to start getting mysql to work instead of the linux site which was 
the basis for my original post. Does anyone know where I can go to download 
(aside from the red hat site where i would need to gather license info) a 
php-mysql rpm?
- Original Message - 
From: "Edward Vermillion" <[EMAIL PROTECTED]>

To: "Jonathan Kahan" <[EMAIL PROTECTED]>
Cc: "php Lists" 
Sent: Monday, March 12, 2007 6:27 PM
Subject: Re: [PHP] Installing php and mysql on linux


You've either got path problems or up2date is not installed. That's  what 
'command not found' means, it can't find the 'up2date' command.


Do you just want to start the MySQL server? Or are you trying to  update 
the MySQL rpm?


You should be able to start the server with a '/etc/init.d/mysql  start', 
as root. If that doesn't work try 'mysqld' in place of  'mysql'. I don't 
remember which one Fedora uses.


If you're trying to update the rpm then make sure you have up2date 
installed. 'rmp -qa | grep up2date' should get you something. If it  is 
installed then try to ad the complete path to up2date, I can't  remember 
where it is off the top of my head but '/usr/bin/up2date' or 
'/usr/sbin/up2date' should get it.


I would also suggest you either look online or get a good book on  linux 
administration, especially if this system is doing anything  important. As 
root you can really mess it up if you don't know what  you're doing. And 
you could probably find a good used book fairly  cheap. You shouldn't need 
to get the latest and greatest as the basic  administration stuff has been 
relatively standard for quite a few  years now.


Good Luck!

Ed

On Mar 12, 2007, at 3:56 PM, Jonathan Kahan wrote:


http://www.die.net/doc/linux/man/man8/yum.8.html

I checked the above page on 'Yum" and see no up2date command as you 
point out. However when I  tried update in the format suggested in  the 
link, it still gives a command not found error.




"Brad Bonkoski" <[EMAIL PROTECTED]> wrote in message news: 
[EMAIL PROTECTED]

I think up2date is *not* up2date ;-)
Google for 'yum' and all its flags for usage...

-B

Jonathan Kahan wrote:

Hi all,

I am attempting to start the mysql rpm in Red hat as a first step 
prior to downloading and activating the php-mysql rpm. I was 
attempting to follow steps based on the link below. the php rpm  is 
loaded and activated as I have been able to execute php  scripts. When 
I attempt to follow those directions, I get the  below errors. Does 
anyone know why I got the below errors or can  help me through this 
process?


Thanks

http://kbase.redhat.com/faq/FAQ_39_3633.shtm


[EMAIL PROTECTED] var]# rpm -q mysql-server
mysql-server-4.1.20-1.FC4.1
[EMAIL PROTECTED] var]# rpm -q mysql
mysql-4.1.20-1.FC4.1
[EMAIL PROTECTED]  var]# up2date mysql
bash: up2date: command not found
[EMAIL PROTECTED]  var]# up2date mysql-server
bash: up2date: command not found
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No such file or directory
[EMAIL PROTECTED] var]# ./up2date mysql-server
bash: ./up2date: No such file or directory
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No such file or directory
[EMAIL PROTECTED]  var]#


Kind Regards
Jonathan Kahan


Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018
--------
Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com
- Original Message - From: "Brad Bonkoski" 
<[EMAIL PROTECTED]>

To: "Jonathan Kahan" <[EMAIL PROTECTED]>
Cc: 
Sent: Monday, March 12, 2007 4:30 PM
Subject: Re: [PHP] Installing php and mysql on linux



I think up2date is *not* up2date ;-)
Google for 'yum' and all its flags for usage...

-B

Jonathan Kahan wrote:

Hi all,

I am attempting to start the mysql rpm in Red hat as a first step 
prior to downloading and activating the php-mysql rpm. I was 
attempting to follow steps based on the link below. the php rpm  is 
loaded and activated as I have been able to execute php  scripts. When 
I attempt to follow those directions, I get the  below errors. Does 
anyone know why I got the below errors or can  help me through this 
process?


Thanks

http://kbase.redhat.com/faq/FAQ_39_3633.shtm


[EMAIL PROTECTED] var]# rpm -q mysql-server
mysql-server-4.1.20-1.FC4.1
[EMAIL PROTECTED] var]# rpm -q mysql
mysql-4.1.20-1.FC4.1
[EMAIL PROTECTED]  var]# up2date mysql
bash: up2date: command not found
[EMAIL PROTECTED]  var]# up2date mysql-server
bash: up2date: command not found
[EMAIL PROTECTED]  var]# ./up2date mysql
bash: ./up2date: No s

[PHP] 2 errors I can not understand

2007-03-13 Thread Jonathan Kahan

Hi all,

Please see my output  below followed by the code. I have been trying for 
some to figure out why


1) I can not get a line feed to work in the web page that i am using to 
display the output as I am not running from the commad line


2) Why my loop is only executing 3 times when i want it to execute 50

Any help would be greatly appreciated.

Jonathan

The next line is all that displays on the output html page:

Output: The number 0 is 0 The number 1 is 0 The number 2 is 1 The number 3 
is 1


php script:







"tjon2.php" 78L, 447C written

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



Re: [PHP] 2 errors I can not understand

2007-03-13 Thread Jonathan Kahan

That worked in answering part 1 now i got to figure out part 2

- Original Message - 
From: "Tijnema !" <[EMAIL PROTECTED]>

To: "Jonathan Kahan" <[EMAIL PROTECTED]>
Cc: "php Lists" 
Sent: Tuesday, March 13, 2007 5:55 PM
Subject: Re: [PHP] 2 errors I can not understand



On 3/13/07, Jonathan Kahan <[EMAIL PROTECTED]> wrote:

Hi all,

Please see my output  below followed by the code. I have been trying for
some to figure out why

1) I can not get a line feed to work in the web page that i am using to
display the output as I am not running from the commad line

Line feed in a browser is made with the HTML tag br
instead of printint "\r\n" you should try ""


2) Why my loop is only executing 3 times when i want it to execute 50

I don't see any error in that loop, on my test server it is executing
50 times...


Any help would be greatly appreciated.

Jonathan

The next line is all that displays on the output html page:

Output: The number 0 is 0 The number 1 is 0 The number 2 is 1 The number 
3

is 1

php script:







"tjon2.php" 78L, 447C written

--
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] 2 errors I can not understand

2007-03-13 Thread Jonathan Kahan

This did fix the problem but I am amazed that

$s%$d=0 would be interpereted as a statement assigning d to 0 since there is 
some other stuff in front of d... I would think that would produce an error 
at compile time since $s%$d is an illegal variable name. Normally when my 
php script errors at compile time nothing will display to the screen.



- Original Message - 
From: "Myron Turner" <[EMAIL PROTECTED]>

To: "Matt Carlson" <[EMAIL PROTECTED]>
Cc: "Jonathan Kahan" <[EMAIL PROTECTED]>; "php Lists" 


Sent: Tuesday, March 13, 2007 6:22 PM
Subject: Re: [PHP] 2 errors I can not understand



Matt Carlson wrote:

I think you have an issue with the line
while($d<$s) when it comes to the number 3.

$d will NEVER be < $s if $s = 3.

I think you want $d<=$s??  Or maybe a switch for the number 3?

- Original Message 
From: Jonathan Kahan <[EMAIL PROTECTED]>
To: php Lists 
Sent: Tuesday, March 13, 2007 4:30:45 PM
Subject: [PHP] 2 errors I can not understand

Hi all,

Please see my output  below followed by the code. I have been trying for 
some to figure out why


1) I can not get a line feed to work in the web page that i am using to 
display the output as I am not running from the commad line


2) Why my loop is only executing 3 times when i want it to execute 50

Any help would be greatly appreciated.

Jonathan

The next line is all that displays on the output html page:

Output: The number 0 is 0 The number 1 is 0 The number 2 is 1 The number 
3 is 1


php script:







"tjon2.php" 78L, 447C written



You have an infinite loop going:

  if ($s%$d=0)  should be:   if ($s%$d==0)
--otherewise your loop keeps going:
 while ($d<$s)
since $d (0) will be less and $s


--

_
Myron Turner
http://www.room535.org
http://www.bstatzero.org
http://www.mturner.org/XML_PullParser/






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



Re: [PHP] 2 errors I can not understand

2007-03-14 Thread Jonathan Kahan
Thanks for alll the feedback. I also needed to correct a logic issue with 
this code to check that a number not be divisible by 2 as my function was 
stating all perfect powers of 2 were prime. I need to remeber as I move from 
other languages the difference between = and ==. Of course I will be more 
careful about this next time.



- Original Message - 
From: "Robert Cummings" <[EMAIL PROTECTED]>

Newsgroups: php.general
To: "Myron Turner" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "Jonathan Kahan" <[EMAIL PROTECTED]>; "php Lists" 


Sent: Wednesday, March 14, 2007 8:29 AM
Subject: Re: [PHP] 2 errors I can not understand



On Wed, 2007-03-14 at 06:52 -0500, Myron Turner wrote:

Richard Lynch wrote:
> On Tue, March 13, 2007 6:04 pm, Jonathan Kahan wrote:
>
>> This did fix the problem but I am amazed that
>>
>> $s%$d=0 would be interpereted as a statement assigning d to 0 since
>> there is
>> some other stuff in front of d... I would think that would produce an
>> error
>> at compile time since $s%$d is an illegal variable name. Normally when
>> my
>> php script errors at compile time nothing will display to the screen.
>>
>
> You still have not correctly puzzled out what $s % $d = 0 is doing...
>
> The = operator takes precedence, and $d is set to 0.
>



But why?  According to the manual, the modulus operator has precedence
over the equals!


Must be a bug... parenthesis will help to not find the bug :)

Cheers,
Rob.
--
..
| InterJinn Application Framework - http://www.interjinn.com |
::
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for   |
| creating re-usable components quickly and easily.  |
`' 


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



[PHP] MYSQLyog

2007-03-20 Thread Jonathan Kahan

Hi all,

As part of PHP, I have downloaded a windows program called SQLyog which is 
supposed to a free web program I can use to run against MYSQL located in a 
remote Linux server. My problem is that I can not seem to connect to it. I 
am attempting to use a SQL account I created. I typed in the below commands 
of course the passwords here are fake.


GRANT ALL PRIVILEGES ON *.* TO 'jonkah'@'localhost' IDENTIFIED BY 
'newpassword1' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 
'jonkah'@'ip-208-109-85-170.ip.secureserver.net' IDENTIFIED BY 
'newpassword2' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'jonkah'@'*' IDENTIFIED BY 'newpassword2' 
WITH GRANT OPTION;


Locally using putty I was able to successfully use the 1st of these 
accounts. I am unable to connect remotely using SQLyog. We use SSH, and I 
attempted to do this with my firewalls turned off-still did not work. Any 
help would be greatly appreciated.


Kind Regards
Jonathan Kahan

Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018

Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com 


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



Re: [PHP] MYSQLyog

2007-03-20 Thread Jonathan Kahan
I will look at Jim's suggestion. I tried the % and it still failed. FYI-I 
have seen posts here much less related to PHP than my own without such 
responses. And yes in my mind this is part of  PHP in that PHP interacts 
with MYSQL and thus this has a bearing on my ability to write PHP programs 
in the future. I have already written a few PHP programs without using the 
mysql functions which yes are a part of PHP. This is an email support 
group-I am not attempting a masters thesis here.
- Original Message - 
From: "Jochem Maas" <[EMAIL PROTECTED]>

To: "Stut" <[EMAIL PROTECTED]>
Cc: "Jonathan Kahan" <[EMAIL PROTECTED]>; 
Sent: Tuesday, March 20, 2007 11:58 AM
Subject: Re: [PHP] MYSQLyog



Stut wrote:

Jonathan Kahan wrote:

As part of PHP, I have downloaded a windows program called SQLyog which

  ^^ -> Yeah, but it's not really is it?!!

is supposed to a free web program I can use to run against MYSQL
located in a remote Linux server. My problem is that I can not seem to
connect to it. I am attempting to use a SQL account I created. I typed
in the below commands of course the passwords here are fake.

GRANT ALL PRIVILEGES ON *.* TO 'jonkah'@'localhost' IDENTIFIED BY
'newpassword1' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO
'jonkah'@'ip-208-109-85-170.ip.secureserver.net' IDENTIFIED BY
'newpassword2' WITH GRANT OPTION;
GRANT ALL PRIVILEGES ON *.* TO 'jonkah'@'*' IDENTIFIED BY
'newpassword2' WITH GRANT OPTION;

Locally using putty I was able to successfully use the 1st of these
accounts. I am unable to connect remotely using SQLyog. We use SSH,
and I attempted to do this with my firewalls turned off-still did not
work. Any help would be greatly appreciated.


The wildcard for the hostname is not * it's %.

-Stut


your being friendly today Stut, wassup with that ;-)









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



[PHP] Re: Keep the PHP list ON TOPIC! (was: [PHP] MYSQLyog)

2007-03-21 Thread Jonathan Kahan

Understood.

I will think harder next time before posting.

- Original Message - 
From: "Jim Moseby" <[EMAIL PROTECTED]>
To: "'Jochem Maas'" <[EMAIL PROTECTED]>; "Jonathan Kahan" 
<[EMAIL PROTECTED]>

Cc: "Stut" <[EMAIL PROTECTED]>; 
Sent: Wednesday, March 21, 2007 9:17 AM
Subject: Keep the PHP list ON TOPIC! (was: [PHP] MYSQLyog)




Jonathan Kahan wrote:
> I will look at Jim's suggestion. I tried the % and it still failed.
> FYI-I have seen posts here much less related to PHP than my
own without
> such responses.

so that make's your totally offtopic question okay then does?
I suppose you condone murder also because, heck, others have
done it before, right?

> And yes in my mind this is part of  PHP in that PHP
> interacts with MYSQL and thus this has a bearing on my
ability to write
> PHP programs in the future.

your mind seems rather clouded or just plain narrow.
you can't connect to a mysql server using some window gui app
... there is
no php there, period.

> I have already written a few PHP programs
> without using the mysql functions which yes are a part of PHP.

technically the mysql wrapper functions are part of a php extension.
there are plenty of people who run php without the mysql
extension btw.

> This is
> an email support group-I am not attempting a masters thesis here.

this is general php support list - please do come back when
you have trouble
with mysql_connect(), mysql_query() and the like.

otherwise go get your help from the correct source, I'm sure there is
plenty to be found at mysql.com for example (or webyog.com???).



Put another (kinder? gentler?) way:

While the fine folks of the PHP General list might be able to make a 
pretty

good guess as to the solution to your non-PHP problem, you would find much
better, quicker, more accurate (and less prickly) advice from the MYSQLyog
or MYSQL support lists.

The more we can keep the topic focused on PHP here, the better the 
perpetual

archive will be for PHP knowledge seekers going forward.

JM




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



[PHP] Debugging includes

2007-03-26 Thread Jonathan Kahan

Hi all,

I am attmepting to run a php scrip and this is the error i keep on getting. 
The scripts first 4 lines are below the errors. When errors are returned, 
does that mean that the error is local or in one of the include scripts? I 
have tried to reverse the order of the includes but when i do this the 
errors still are the same it seems. Any help would be greatly appreciated.


Thanks.

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in 
C:\WebSites\www\springsystems\Portal\processfiles.inc on line 3


Warning: Unexpected character in input: '\' (ASCII=92) state=1 in 
C:\WebSites\www\springsystems\Portal\processfiles.inc on line 4


Parse error: parse error, unexpected T_STRING in 
C:\WebSites\www\springsystems\Portal\processfiles.inc on line 4


This is the beginning of the file 
C:\WebSites\www\springsystems\Portal\processfiles.inc: .


Web: http://www.estrintech.com 


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



[PHP] PHP editor

2007-04-11 Thread Jonathan Kahan

Hi all,

I beleive this is in the realm of php (I have learned my lesson from last 
time). Does anyone have recomendation for any free (I.E. permanently free 
not 30 day trial) of a good php editor. The ones i am seeing all only allow 
usage for a limited time.


Kind Regards
Jonathan Kahan

Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018

Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com 


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



[PHP] PHP excel capability

2007-04-18 Thread Jonathan Kahan

Hi all,

Can PHP be used to generate an excel file that A) Contains Macros B) Allows 
Graphics to be attached C) where cells can contain borders as well as cells 
being merged. I know there is some PHP excel functionality so i am assume 
basics like underlines, italics and i am hoping vertical alignments can be 
done.


If the answer is no, then can a template that has all of these be opened and 
read using php where all that needs to be done is simply place in certain 
cells whatever values it is that I want to place.


Lastly, do only newer versions of PHP contain excel/pdf functionality?

I am in a bit of a time crunch so I apologize if this is not considered PHP 
stuff or if I could have found my answer easily online. I could not find 
this discussed in any other posts. Thanks in advance for any help you can 
give.



Kind Regards
Jonathan Kahan


Systems Developer
Estrin Technologies, inc.
1375 Broadway, 3rd Floor, New York, NY, 10018

Email: [EMAIL PROTECTED]
Web: http://www.estrintech.com 


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