[google-appengine] Re: guestbook can't open file (php)

2015-04-19 Thread Adam
You can't write the the local filesystem in App Engine. You need to use 
Cloud Storage. See:

Reading and Writing Files
https://cloud.google.com/appengine/docs/php/googlestorage/#writing_files_from_your_app

On Sunday, April 19, 2015 at 1:37:24 PM UTC-4, Bảo Nguyên wrote:

 run guestbook localhost good.
 but upload app engine error can't open file.
 code:
 html
 headtitleMy Guestbook/title/head
 body
 h1Welcome to My Guestbook/h1
 h2Please write me a little note below/h2
 form action= method=POST
 input type=text name=user placeholder=Name /
 br /
 textarea cols=40 rows=5 name=note placeholder=Comments 
 wrap=virtual/textarea
 br /
 input type=submit name=submit value=Submit /
 /form
 ?php

 if (isset($_POST['submit'])){

 $user = $_POST['user'];
 $note = $_POST['note'];

 if(!empty($user)  !empty($note)) {
 $msg = $user . ' : ' . $note;
 //will open a file
 $fp = fopen(notes.txt,a) or die(Can't open file);
 //will write to a file
 fwrite($fp, $msg.\n);
 fclose($fp);
 }
 }
 ?
  
 h2The entries so far:/h2
 ?php
 $file = fopen(notes.txt, r) or exit(Unable to open file!);
 //Output a line of the file until the end is reached
 while(!feof($file))
   {
   //will return each line with a break
   echo fgets($file). 'br /';
   }
 fclose($file);
 ? 
 /body
 /html


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dd8b898c-5b76-4b36-ac17-1cd8b8cdf026%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] Re: guestbook can't open file (php)

2015-04-19 Thread Bảo Nguyên
abcd-1990.appspot.com

Vào 00:37:24 UTC+7 Thứ Hai, ngày 20 tháng 4 năm 2015, Bảo Nguyên đã viết:

 run guestbook localhost good.
 but upload app engine error can't open file.
 code:
 html
 headtitleMy Guestbook/title/head
 body
 h1Welcome to My Guestbook/h1
 h2Please write me a little note below/h2
 form action= method=POST
 input type=text name=user placeholder=Name /
 br /
 textarea cols=40 rows=5 name=note placeholder=Comments 
 wrap=virtual/textarea
 br /
 input type=submit name=submit value=Submit /
 /form
 ?php

 if (isset($_POST['submit'])){

 $user = $_POST['user'];
 $note = $_POST['note'];

 if(!empty($user)  !empty($note)) {
 $msg = $user . ' : ' . $note;
 //will open a file
 $fp = fopen(notes.txt,a) or die(Can't open file);
 //will write to a file
 fwrite($fp, $msg.\n);
 fclose($fp);
 }
 }
 ?
  
 h2The entries so far:/h2
 ?php
 $file = fopen(notes.txt, r) or exit(Unable to open file!);
 //Output a line of the file until the end is reached
 while(!feof($file))
   {
   //will return each line with a break
   echo fgets($file). 'br /';
   }
 fclose($file);
 ? 
 /body
 /html


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/2f036444-5452-4595-b0f1-07407b2e7cb4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


[google-appengine] guestbook can't open file (php)

2015-04-19 Thread Bảo Nguyên
run guestbook localhost good.
but upload app engine error can't open file.
code:
html
headtitleMy Guestbook/title/head
body
h1Welcome to My Guestbook/h1
h2Please write me a little note below/h2
form action= method=POST
input type=text name=user placeholder=Name /
br /
textarea cols=40 rows=5 name=note placeholder=Comments 
wrap=virtual/textarea
br /
input type=submit name=submit value=Submit /
/form
?php

if (isset($_POST['submit'])){

$user = $_POST['user'];
$note = $_POST['note'];

if(!empty($user)  !empty($note)) {
$msg = $user . ' : ' . $note;
//will open a file
$fp = fopen(notes.txt,a) or die(Can't open file);
//will write to a file
fwrite($fp, $msg.\n);
fclose($fp);
}
}
?
 
h2The entries so far:/h2
?php
$file = fopen(notes.txt, r) or exit(Unable to open file!);
//Output a line of the file until the end is reached
while(!feof($file))
  {
  //will return each line with a break
  echo fgets($file). 'br /';
  }
fclose($file);
? 
/body
/html

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/78b4e793-0bda-4391-924f-68d36bd8d30e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


app.yaml
Description: Binary data
attachment: guestbook.php
DSFDF : d
Nguyên : Xin Chào!
baonguyen : chán!
hùng : abcncjf
hùng : abcncjf
b : àbsdfsk
nguyen1 : 
nguyen1 : 
nguyen2 : fsdfsnac : dgdgdfngfh : fghg/ngfh : fghg
fgd : fdgf
dds : sâ


[google-appengine] Re: Request was aborted after waiting too long to attempt to service your request. sprees

2015-04-19 Thread Kaan Soral
I started regularly getting 200-1000 of these in batches

Not sure what to do about them

My other app that handles more requests never has them, I'm guessing they 
are related to instance bursts, the app that experiences the issue probably 
bursts instances too much

I don't think the issue is memory related, as in that case, the instances 
usually die with the critical memory error

On Tuesday, April 14, 2015 at 10:58:20 AM UTC+3, Mario wrote:

 Hi Kaan,

 This error is sometimes created by your requests going over the memory 
 limit of your instance. You could try to update the instance to F4 or to 
 make your requests to process data in smaller chunks. 

 Mario

 On Monday, April 13, 2015 at 11:52:19 PM UTC+2, Kaan Soral wrote:

 Hi Cody

 That makes an extreme amount of sense, it would also explain a lot of the 
 inconsistent behaviours of appengine, especially invisibly exhausted 
 taskqueue retries

 I checked the logs, however, although my log storage is more than enough, 
 for some reason the phrase aborted/.*aborted.* didn't produce any 
 results, didn't pursue the issue further, the log routines are annoying at 
 best

 Mario, the instances are:
 instance_class: F2
 automatic_scaling:
   min_idle_instances: 1
   max_idle_instances: 1
   max_pending_latency: 900ms

 The issue has been happening in bursts lately

 On Monday, April 13, 2015 at 10:28:00 PM UTC+3, Cody Landgrebe wrote:

 Kaan,

 Looking at the SDK release notes and current version of GAE console app 
 engine release 1.9.19 notes have not been published yet; but from 
 research my assumption is that the logging level was changed from info to 
 error in the latest version. If you look through your logs prior to the 
 move to .19 I assume that you will have the same messages but logged as 
 info.

 On Saturday, April 11, 2015 at 12:02:34 PM UTC-5, Kaan Soral wrote:

 Request was aborted after waiting too long to attempt to service your 
 request.

 I've been seeing these messages a lot lately, momentarily many requests 
 log these errors, it floods the error logs

 Anyone else?



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/dd95effc-f4a9-46c5-8e06-630b8072093e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] how to set a country based IP address

2015-04-19 Thread Vinny P
On Fri, Apr 17, 2015 at 5:44 AM, TEMP TEMP tempora...@gmail.com wrote:

 I'm an italian guy leaving in Germany. I'd like to bypass the country
 copyright restriction to view the Italian television.
 The TV webapp recognize a German IP address so it denied the vision. Is
 there a way, using GAE - proxy  to exit with an italian IP address?



You can't pick the IP addresses that GAE uses for URLFetch, so the short
answer is no. If you're willing to use a Compute Engine
https://cloud.google.com/compute/ machine, you can configure a proxy
server and run your connection through that:
http://www.makeuseof.com/tag/set-proxy-server-ubuntu-linux/



-
-Vinny P
Technology  Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALSvALBPX80TicS8gxt6BQZ8UApwG79qw6AAPDochJTwcqVASw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: [google-appengine] Account renamed = project ownership lost?

2015-04-19 Thread Vinny P
On Tue, Apr 14, 2015 at 4:47 PM, renamed_account funda...@old.fsma.pl
 wrote:

 Now, renaming user1's domain resulted in apparent loss of ownership over
 the project!

 All attempts to open the Permissions page in Google Developers Console
 return an error (You do not have sufficient permissions to view this
 page). The project cannot be renamed or deleted from the Projects tab.
 Surprisingly, it likely can be deleted from the Settings tab.

 How can we regain ownership of this project?

 Second question: If it went for deletion, is there a way to preserve or
 reuse project ID (with a different owner)?




You can't regain ownership of the project automatically - you'll probably
need to have Google manually remap the project's permissions. You can file
a production issue
https://code.google.com/p/googleappengine/issues/entry?template=Production%20issue
or
send in this form
https://support.google.com/cloud/contact/cloud_platform_billing?hl=en#cft=3
.

As for your second question, once a project is deleted you can't reuse or
recover the ID.



-
-Vinny P
Technology  Media Consultant
Chicago, IL

App Engine Code Samples: http://www.learntogoogleit.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/CALSvALC%2BeLFmGbjauU9RoqhUQcfijYTbHM_rCgcfHQdUESDDtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.